io_uring: allow iov_len = 0 for recvmsg and buffer select
authorDylan Yudaken <dylany@fb.com>
Thu, 30 Jun 2022 09:12:22 +0000 (02:12 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:46:58 +0000 (08:46 -0600)
commit14810ccc6051e13d987e1c2796bf27f95652f06d
tree37d5fbf635619cadeed086d6780661791e3a584b
parent678575394c97a3c962b9d4521e9acf4598e094c3
io_uring: allow iov_len = 0 for recvmsg and buffer select

When using BUFFER_SELECT there is no technical requirement that the user
actually provides iov, and this removes one copy_from_user call.

So allow iov_len to be 0.

Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220630091231.1456789-4-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c