diff options
author | Jozsef Kadlecsik <kadlec@netfilter.org> | 2025-05-06 10:26:03 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2025-05-17 15:43:42 +0200 |
commit | 70b372679a0031a03a248e668c17f147c3d83466 (patch) | |
tree | c231485cceed13aacb5289878f6edce85f611ca2 /ChangeLog | |
parent | 7153bdda964fc64e6fa20b8e9e9a9ecfb7f768ca (diff) |
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 <kota.toda@gmo-cybersecurity.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Diffstat (limited to 'ChangeLog')
0 files changed, 0 insertions, 0 deletions