Commit a3f331c9 authored by Jens Axboe's avatar Jens Axboe Committed by sanglipeng
Browse files

io_uring/net: clear msg_controllen on partial sendmsg retry

stable inclusion
from stable-v5.10.186
commit 826ee9fa3647785e45ca87aa70511b72d25c2588
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8L5XP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=826ee9fa3647785e45ca87aa70511b72d25c2588



--------------------------------

Commit b1dc4920 upstream.

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: cac9e441 ("io_uring/net: save msghdr->msg_control for retries")
Reported-by: default avatarStefan Metzmacher <metze@samba.org>
Reviewed-by: default avatarStefan Metzmacher <metze@samba.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent f1c35114
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment