]> git.itanic.dy.fi Git - linux-stable/commit
io_uring/net: unify how recvmsg and sendmsg copy in the msghdr
authorJens Axboe <axboe@kernel.dk>
Mon, 19 Feb 2024 21:16:47 +0000 (14:16 -0700)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:16:29 +0000 (18:16 -0400)
commitee4949726e62ec6ae4fb7be558d74bc5e41e3d5f
tree0d84d29de45e0a5dd7ab55ba9ac59dd3064d0286
parent10b6e8412dc03d691bd950cd1681e42c18b48eea
io_uring/net: unify how recvmsg and sendmsg copy in the msghdr

[ Upstream commit 52307ac4f2b507f60bae6df5be938d35e199c688 ]

For recvmsg, we roll our own since we support buffer selections. This
isn't the case for sendmsg right now, but in preparation for doing so,
make the recvmsg copy helpers generic so we can call them from the
sendmsg side as well.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Stable-dep-of: 8ede3db5061b ("io_uring/net: fix overflow check in io_recvmsg_mshot_prep()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
io_uring/net.c