]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv4: add RCU protection to ip4_dst_hoplimit()
authorEric Dumazet <edumazet@google.com>
Wed, 5 Feb 2025 15:51:10 +0000 (15:51 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 7 Feb 2025 00:14:14 +0000 (16:14 -0800)
commit469308552ca4560176cfc100e7ca84add1bebd7c
tree5cfe694bd89e86f6172b3f836a6a6c2fc009b77c
parent482ad2a4ace2740ca0ff1cbc8f3c7f862f3ab507
ipv4: add RCU protection to ip4_dst_hoplimit()

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

Fixes: fa50d974d104 ("ipv4: Namespaceify ip_default_ttl sysctl knob")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250205155120.1676781-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/route.h