]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfilter: ipset: annotate "pos" for concurrent readers/writers
authorJozsef Kadlecsik <kadlec@netfilter.org>
Thu, 14 May 2026 08:55:13 +0000 (10:55 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 16 May 2026 11:21:42 +0000 (13:21 +0200)
commit7f7445840b7771338618930e45ee641104b38ed8
tree3c7c98f9cc0782060da68e9fea2a1fd6b00b5aff
parent2358f7427ccd6ec8867a48205d8fcec973683a3f
netfilter: ipset: annotate "pos" for concurrent readers/writers

The "pos" structure member of struct hbucket stores the first
free slot in the hash bucket of a hash type of set and there
are concurrent readers/writers. Annotate accesses properly.

Fixes: 18f84d41d34f ("netfilter: ipset: Introduce RCU locking in hash:* types")
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipset/ip_set_hash_gen.h