net: separate out the msghdr copy from ___sys_{send,recv}msg()
authorJens Axboe <axboe@kernel.dk>
Mon, 25 Nov 2019 21:27:34 +0000 (14:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2019 21:30:43 +0000 (22:30 +0100)
commit78df03e4c892a09ebfd9045a427d656805964552
tree5a1997a815955860c452f7f758a9a6d8583fc1a7
parent8387e3688aa9e06a12b58abbcfe2cbfd0cf0f589
net: separate out the msghdr copy from ___sys_{send,recv}msg()

[ Upstream commit 4257c8ca13b084550574b8c9a667d9c90ff746eb ]

This is in preparation for enabling the io_uring helpers for sendmsg
and recvmsg to first copy the header for validation before continuing
with the operation.

There should be no functional changes in this patch.

Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/socket.c