]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv4: use RCU protection in ipv4_default_advmss()
authorEric Dumazet <edumazet@google.com>
Wed, 5 Feb 2025 15:51:12 +0000 (15:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 12:50:07 +0000 (13:50 +0100)
commitffd8bed1b4f511b6712482703fcc8da744a441fd
tree168cac74d6ebca66c9c67396ad743d82521b9f38
parente2b01044d94ec895c065e0e48115e6ce01432152
ipv4: use RCU protection in ipv4_default_advmss()

[ Upstream commit 71b8471c93fa0bcab911fcb65da1eb6c4f5f735f ]

ipv4_default_advmss() must use RCU protection to make
sure the net structure it reads does not disappear.

Fixes: 2e9589ff809e ("ipv4: Namespaceify min_adv_mss sysctl knob")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250205155120.1676781-5-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/route.c