Commit c085531
committed
netfilter: nf_tables: do not set up extensions for end interval
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2189550
Upstream Status: commit 33c7aba
Conflicts: net/netfilter/nf_tables_api.c
Context only: CS9 already gained the READ_ONCE(), keep that as-is.
commit 33c7aba
Author: Pablo Neira Ayuso <[email protected]>
Date: Mon Nov 14 11:31:54 2022 +0100
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: 6503842 ("netfilter: nf_tables: allow to specify stateful expression in set definition")
Fixes: 8d8540c ("netfilter: nft_set_rbtree: add timeout support")
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>1 parent 344967d commit c085531
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5918 | 5918 | | |
5919 | 5919 | | |
5920 | 5920 | | |
5921 | | - | |
| 5921 | + | |
| 5922 | + | |
5922 | 5923 | | |
5923 | 5924 | | |
5924 | 5925 | | |
| |||
5984 | 5985 | | |
5985 | 5986 | | |
5986 | 5987 | | |
5987 | | - | |
| 5988 | + | |
| 5989 | + | |
5988 | 5990 | | |
5989 | 5991 | | |
5990 | 5992 | | |
| |||
0 commit comments