summaryrefslogtreecommitdiffstats
path: root/include/net/pie.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2022-06-21 14:01:41 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2022-06-27 19:03:37 +0200
commit05907f10e235680cc7fb196810e4ad3215d5e648 (patch)
tree86ed120de0ef116f27b9aa350df0996f93c84c5e /include/net/pie.h
parentcb8092d70a6f5f01ec1490fce4d35efed3ed996c (diff)
downloadlinux-05907f10e235680cc7fb196810e4ad3215d5e648.tar.bz2
netfilter: nft_dynset: restore set element counter when failing to update
This patch fixes a race condition. nft_rhash_update() might fail for two reasons: - Element already exists in the hashtable. - Another packet won race to insert an entry in the hashtable. In both cases, new() has already bumped the counter via atomic_add_unless(), therefore, decrement the set element counter. Fixes: 22fe54d5fefc ("netfilter: nf_tables: add support for dynamic set updates") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/pie.h')
0 files changed, 0 insertions, 0 deletions