diff options
| author | Jozsef Kadlecsik <[email protected]> | 2025-05-07 15:01:59 +0000 |
|---|---|---|
| committer | Pablo Neira Ayuso <[email protected]> | 2025-05-07 21:57:31 +0000 |
| commit | 8478a729c0462273188263136880480729e9efca (patch) | |
| tree | 056118cab6e2f9604dea91b13d8b03c8f6b8d265 /net/unix/af_unix.c | |
| parent | ipvs: fix uninit-value for saddr in do_output_route4 (diff) | |
| download | kernel-8478a729c0462273188263136880480729e9efca.tar.gz kernel-8478a729c0462273188263136880480729e9efca.zip | |
netfilter: ipset: fix region locking in hash types
Region locking introduced in v5.6-rc4 contained three macros to handle
the region locks: ahash_bucket_start(), ahash_bucket_end() which gave
back the start and end hash bucket values belonging to a given region
lock and ahash_region() which should give back the region lock belonging
to a given hash bucket. The latter was incorrect which can lead to a
race condition between the garbage collector and adding new elements
when a hash type of set is defined with timeouts.
Fixes: f66ee0410b1c ("netfilter: ipset: Fix "INFO: rcu detected stall in hash_xxx" reports")
Reported-by: Kota Toda <[email protected]>
Signed-off-by: Jozsef Kadlecsik <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
