diff options
author | Eric Dumazet <edumazet@google.com> | 2025-02-05 15:51:16 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-02-06 16:14:15 -0800 |
commit | 4b8474a0951e605d2a27a2c483da4eb4b8c63760 (patch) | |
tree | 98933625c94e9fdb5265f304b6f60959bb9bc417 /scripts/lib/kdoc/kdoc_files.py | |
parent | 139512191bd06f1b496117c76372b2ce372c9a41 (diff) |
ipv4: icmp: convert to dev_net_rcu()
__icmp_send() must ensure rcu_read_lock() is held, as spotted
by Jakub.
Other ICMP uses of dev_net() seem safe, change them to dev_net_rcu()
to get LOCKDEP support.
Fixes: dde1bc0e6f86 ("[NETNS]: Add namespace for ICMP replying code.")
Closes: https://lore.kernel.org/netdev/20250203153633.46ce0337@kernel.org/
Reported-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250205155120.1676781-9-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions