]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
netfilter: nf_tables: do not set up extensions for end interval
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 Nov 2022 10:31:54 +0000 (11:31 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Dec 2022 13:00:26 +0000 (14:00 +0100)
commit5fadbc2e02b7c3a7b4fbbb427c46f4fa683ef077
treee445017bd8729998183c4f75dad36a8e574e6e45
parent6f168492fb227cf38a43563025851a37e5135fef
netfilter: nf_tables: do not set up extensions for end interval

[ Upstream commit 33c7aba0b4ffd6d7cdab862a034eb582a5120a38 ]

Elements with an end interval flag set on do not store extensions. The
global set definition is currently setting on the timeout and stateful
expression for end interval elements.

This leads to skipping end interval elements from the set->ops->walk()
path as the expired check bogusly reports true.

Moreover, do not set up stateful expressions for elements with end
interval flag set on since this is never used.

Fixes: 65038428b2c6 ("netfilter: nf_tables: allow to specify stateful expression in set definition")
Fixes: 8d8540c4f5e0 ("netfilter: nft_set_rbtree: add timeout support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 0600615d010f61d98f6fd340eca7a125c7f91b0a)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
net/netfilter/nf_tables_api.c