]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv4: use RCU protection in ip_dst_mtu_maybe_forward()
authorEric Dumazet <edumazet@google.com>
Wed, 5 Feb 2025 15:51:11 +0000 (15:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 13:01:40 +0000 (14:01 +0100)
commitdfe542e745fcedbe46f964d5fb6c954aada823b1
treeb209cca49721ce9799a5cbb1c6f525df570069bb
parentcb4d7fbc937e37b99082fc76945ae1d4d98435ab
ipv4: use RCU protection in ip_dst_mtu_maybe_forward()

[ Upstream commit 071d8012869b6af352acca346ade13e7be90a49f ]

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

Fixes: f87c10a8aa1e8 ("ipv4: introduce ip_dst_mtu_maybe_forward and protect forwarding path against pmtu spoofing")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250205155120.1676781-4-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/ip.h