]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:42 +0000 (12:50 +0100)
commit0e5ea98edc3b81af3165430e3cae0b97237d258e
tree9675dbc2538199d13543bf989b3177a376f3b7af
parent60f54f0d4ea530950549a8263e6fdd70a40490a4
ipv4: add RCU protection to ip4_dst_hoplimit()

[ Upstream commit 469308552ca4560176cfc100e7ca84add1bebd7c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/route.h