diff options
| author | Eric Dumazet <edumazet@google.com> | 2025-02-05 15:51:16 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-21 14:01:42 +0100 |
| commit | 3c925321a574362f6065dd97e6e764fc5985f0d5 (patch) | |
| tree | 7f4b0c71b863288df1ff754789136dd745c99814 /scripts/patch-kernel | |
| parent | 4583748b65dee4d61bd50a2214715b4237bc152a (diff) | |
| download | linux-3c925321a574362f6065dd97e6e764fc5985f0d5.tar.gz linux-3c925321a574362f6065dd97e6e764fc5985f0d5.tar.bz2 linux-3c925321a574362f6065dd97e6e764fc5985f0d5.zip | |
ipv4: icmp: convert to dev_net_rcu()
[ Upstream commit 4b8474a0951e605d2a27a2c483da4eb4b8c63760 ]
__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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
