Skip to content
Commit f95c9e70 authored by Yick Xie's avatar Yick Xie Committed by Liu Jian
Browse files

udp: preserve the connected status if only UDP cmsg

stable inclusion
from stable-v4.19.313
commit 4fc0b7838c253cf443de3a40a9acb224377740e6
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IA7EK1

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



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

commit 680d11f6e5427b6af1321932286722d24a8b16c1 upstream.

If "udp_cmsg_send()" returned 0 (i.e. only UDP cmsg),
"connected" should not be set to 0. Otherwise it stops
the connected socket from using the cached route.

Fixes: 2e8de857 ("udp: add gso segment cmsg")
Signed-off-by: default avatarYick Xie <yick.xie@gmail.com>
Cc: stable@vger.kernel.org
Reviewed-by: default avatarWillem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20240418170610.867084-1-yick.xie@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarYick Xie <yick.xie@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarLiu Jian <liujian56@huawei.com>
parent 6e63e449
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment