]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 18 Nov 2022 14:21:32 +0000 (15:21 +0100)
commit33c7aba0b4ffd6d7cdab862a034eb582a5120a38
tree8960a681bc263e809b444026df3b3c0bc1591aa9
parent52d1aa8b8249ff477aaa38b6f74a8ced780d079c
netfilter: nf_tables: do not set up extensions for end interval

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>
net/netfilter/nf_tables_api.c