netfilter: nft_set_rbtree: skip end interval element from gc
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 7 Feb 2024 17:49:51 +0000 (18:49 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 8 Feb 2024 11:10:19 +0000 (12:10 +0100)
commit60c0c230c6f046da536d3df8b39a20b9a9fd6af0
treea2b4665771dff942fc3e783cab32ec3213d0e859
parentf82777e8ce6c039cdcacbcf1eb8619b99a20c06d
netfilter: nft_set_rbtree: skip end interval element from gc

rbtree lazy gc on insert might collect an end interval element that has
been just added in this transactions, skip end interval elements that
are not yet active.

Fixes: f718863aca46 ("netfilter: nft_set_rbtree: fix overlap expiration walk")
Cc: stable@vger.kernel.org
Reported-by: lonial con <kongln9170@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_rbtree.c