io_uring/net: fix non-zc send with address
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 29 Sep 2022 00:03:29 +0000 (01:03 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Sep 2022 01:29:12 +0000 (19:29 -0600)
commit04360d3e05e885621a5860f987c6a8a2eac4bb27
treed3002690e582aa2da547d73e18bd6f1305064502
parent6ae91ac9a6aa7d6005c3c6d0f4d263fbab9f377f
io_uring/net: fix non-zc send with address

We're currently ignoring the dest address with non-zerocopy send because
even though we copy it from the userspace shortly after ->msg_name gets
zeroed. Move msghdr init earlier.

Fixes: 516e82f0e043a ("io_uring/net: support non-zerocopy sendto")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/176ced5e8568aa5d300ca899b7f05b303ebc49fd.1664409532.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c