diff options
author | Kuniyuki Iwashima <kuniyu@google.com> | 2025-07-04 09:23:51 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-10 03:52:26 +0300 |
commit | 706cc36477139c1616a9b2b96610a8bb520b7119 (patch) | |
tree | f271517639cd87b2b098666eadb6010e510ddcfb /scripts/gdb/linux/xarray.py | |
parent | 3c78f91e82d65d8927dc7976636bc5fae666370a (diff) | |
download | linux-706cc36477139c1616a9b2b96610a8bb520b7119.tar.xz |
atm: clip: Fix potential null-ptr-deref in to_atmarpd().
atmarpd is protected by RTNL since commit f3a0592b37b8 ("[ATM]: clip
causes unregister hang").
However, it is not enough because to_atmarpd() is called without RTNL,
especially clip_neigh_solicit() / neigh_ops->solicit() is unsleepable.
Also, there is no RTNL dependency around atmarpd.
Let's use a private mutex and RCU to protect access to atmarpd in
to_atmarpd().
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250704062416.1613927-2-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions