OSDN Git Service

netfilter: nft_set_rbtree: skip elements in transaction from garbage collection
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 14 Jan 2023 22:49:46 +0000 (23:49 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 23 Jan 2023 20:38:33 +0000 (21:38 +0100)
commit5d235d6ce75c12a7fdee375eb211e4116f7ab01b
tree8b5aadbc9be93d2be211d9e3254d46338d324d0e
parentc9e6978e2725a7d4b6cd23b2facd3f11422c0643
netfilter: nft_set_rbtree: skip elements in transaction from garbage collection

Skip interference with an ongoing transaction, do not perform garbage
collection on inactive elements. Reset annotated previous end interval
if the expired element is marked as busy (control plane removed the
element right before expiration).

Fixes: 8d8540c4f5e0 ("netfilter: nft_set_rbtree: add timeout support")
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_rbtree.c