netfilter: nft_set_rbtree: Add missing expired checks
authorPhil Sutter <phil@nwl.cc>
Mon, 11 May 2020 13:31:41 +0000 (15:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 May 2020 06:20:25 +0000 (08:20 +0200)
commitda532ce587c7ee9911e9418af426cbbb065dc912
tree4d7b6f0f3a61867630fc1517d830ca668eb29802
parent1c235d0eb1f0884403d00634ebd8801e891135b5
netfilter: nft_set_rbtree: Add missing expired checks

[ Upstream commit 340eaff651160234bdbce07ef34b92a8e45cd540 ]

Expired intervals would still match and be dumped to user space until
garbage collection wiped them out. Make sure they stop matching and
disappear (from users' perspective) as soon as they expire.

Fixes: 8d8540c4f5e03 ("netfilter: nft_set_rbtree: add timeout support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nft_set_rbtree.c