]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJakub Kicinski <kuba@kernel.org>
Fri, 7 Feb 2025 00:14:14 +0000 (16:14 -0800)
commit71b8471c93fa0bcab911fcb65da1eb6c4f5f735f
treed6070ac620f7f8b8c01c6e76a1037e78bff59199
parent071d8012869b6af352acca346ade13e7be90a49f
ipv4: use RCU protection in ipv4_default_advmss()

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>
net/ipv4/route.c