]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: use RCU protection in ip6_default_advmss()
authorEric Dumazet <edumazet@google.com>
Wed, 5 Feb 2025 15:51:18 +0000 (15:51 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 7 Feb 2025 00:14:15 +0000 (16:14 -0800)
commit3c8ffcd248da34fc41e52a46e51505900115fc2a
treead7b64e8bb9bbcb3d092e770f1aa04a4eb0e6948
parentafec62cd0a4191cde6dd3a75382be4d51a38ce9b
ipv6: use RCU protection in ip6_default_advmss()

ip6_default_advmss() needs rcu protection to make
sure the net structure it reads does not disappear.

Fixes: 5578689a4e3c ("[NETNS][IPV6] route6 - make route6 per namespace")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250205155120.1676781-11-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/route.c