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

[ Upstream commit dd205fcc33d92d54eee4d7f21bb073af9bd5ce2b ]

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

Fixes: e84f84f27647 ("netns: place rt_genid into struct net")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250205155120.1676781-6-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/route.c