]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv4: start using dst_dev_rcu()
authorEric Dumazet <edumazet@google.com>
Thu, 28 Aug 2025 19:58:23 +0000 (19:58 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Aug 2025 02:36:32 +0000 (19:36 -0700)
commit6ad8de3cefdb6ffa6708b21c567df0dbf82c43a8
tree2c8e7f3348c118943fec8933dbd1462224555985
parentb62a59c18b692f892dcb8109c1c2e653b2abc95c
ipv4: start using dst_dev_rcu()

Change icmpv4_xrlim_allow(), ip_defrag() to prevent possible UAF.

Change ipmr_prepare_xmit(), ipmr_queue_fwd_xmit(), ip_mr_output(),
ipv4_neigh_lookup() to use lockdep enabled dst_dev_rcu().

Fixes: 4a6ce2b6f2ec ("net: introduce a new function dst_dev_put()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20250828195823.3958522-9-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/icmp.c
net/ipv4/ip_fragment.c
net/ipv4/ipmr.c
net/ipv4/route.c