OSDN Git Service

netfilter: nft_set_rbtree: skip sync GC for new elements in this transaction
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 4 Sep 2023 00:14:36 +0000 (02:14 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 6 Sep 2023 16:09:12 +0000 (18:09 +0200)
commit2ee52ae94baabf7ee09cf2a8d854b990dac5d0e4
tree29abf0bbac9d4fdfa3660754d5b0cfdec1a63da9
parentfdc04cc2d5fd0bb9c17f36d0a895cf3e151109e6
netfilter: nft_set_rbtree: skip sync GC for new elements in this transaction

New elements in this transaction might expired before such transaction
ends. Skip sync GC for such elements otherwise commit path might walk
over an already released object. Once transaction is finished, async GC
will collect such expired element.

Fixes: f6c383b8c31a ("netfilter: nf_tables: adapt set backend to use GC transaction API")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nft_set_rbtree.c