io_uring/net: clear msg_controllen on partial sendmsg retry
authorJens Axboe <axboe@kernel.dk>
Mon, 19 Jun 2023 15:35:34 +0000 (09:35 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Jun 2023 13:33:48 +0000 (07:33 -0600)
commitb1dc492087db0f2e5a45f1072a743d04618dd6be
treed4ec57dcab876abd5a2c4ecbc1859bdce36a5568
parentef7dfac51d8ed961b742218f526bd589f3900a59
io_uring/net: clear msg_controllen on partial sendmsg retry

If we have cmsg attached AND we transferred partial data at least, clear
msg_controllen on retry so we don't attempt to send that again.

Cc: stable@vger.kernel.org # 5.10+
Fixes: cac9e4418f4c ("io_uring/net: save msghdr->msg_control for retries")
Reported-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c