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>
Mon, 25 Jul 2022 00:39:16 +0000 (18:39 -0600)
commit5702196e7d9d1232c41769e197eb33ba78a9b463
treea408c2f25cb698e9f7804e20ed7893b4ac123fa6
parent32f3c434b14238a2eee0c726a1918de58c07faf6
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