]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/net: simplify compat selbuf iov parsing
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 26 Feb 2025 11:41:16 +0000 (11:41 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Feb 2025 14:27:37 +0000 (07:27 -0700)
commit0fc5a589aff7f9e613ff94fd3dd0a6686ffcb706
tree56112a4d86e2836092a468fae42507a6b82935b6
parent80b3de7da7d2525c4a5f20fb7248366d42b4e4fb
io_uring/net: simplify compat selbuf iov parsing

Use copy_from_user() instead of open coded access_ok() + get_user(),
that's simpler and we don't care about compat that much.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/e51f9c323a3cd4ad7c8da656559bdf6237f052fb.1740569495.git.asml.silence@gmail.com
[axboe: fold in bogus < 0 check for tmp_iov.iov_len]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c