diff options
| author | Kuniyuki Iwashima <kuniyu@google.com> | 2025-07-16 22:08:16 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-17 16:25:21 -0700 |
| commit | b9c89fa128fa41e56300434dfca1138459b29384 (patch) | |
| tree | bd5b6056c01ffe8d7be8ebd2b7c8106029f49e29 /net/unix/sysctl_net_unix.c | |
| parent | neighbour: Drop read_lock_bh(&tbl->lock) in pneigh_dump_table(). (diff) | |
| download | linux-b9c89fa128fa41e56300434dfca1138459b29384.tar.gz linux-b9c89fa128fa41e56300434dfca1138459b29384.zip | |
neighbour: Use rcu_dereference() in pneigh_get_{first,next}().
Now pneigh_entry is guaranteed to be alive during the
RCU critical section even without holding tbl->lock.
Let's use rcu_dereference() in pneigh_get_{first,next}().
Note that neigh_seq_start() still holds tbl->lock for the
normal neighbour entry.
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250716221221.442239-12-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
