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

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>
include/net/ip.h