Commit 54e39cc
committed
netfilter: nf_tables: remove catchall element in GC sync path
JIRA: https://issues.redhat.com/browse/RHEL-1720
JIRA: https://issues.redhat.com/browse/RHEL-1721
Upstream Status: commit 93995bf
Conflicts: net/netfilter/nf_tables_api.c
Series lacks commit
0e1ea65 ("netfilter: nf_tables: shrink memory consumption of set elements"),
so we need to pass set_elem container struct instead of "elem_priv".
commit 93995bf
Author: Pablo Neira Ayuso <[email protected]>
Date: Mon Nov 6 10:53:09 2023 +0100
netfilter: nf_tables: remove catchall element in GC sync path
The expired catchall element is not deactivated and removed from GC sync
path. This path holds mutex so just call nft_setelem_data_deactivate()
and nft_setelem_catchall_remove() before queueing the GC work.
Fixes: 4a9e12e ("netfilter: nft_set_pipapo: call nft_trans_gc_queue_sync() in catchall GC")
Reported-by: lonial con <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>1 parent 71f4dce commit 54e39cc
1 file changed
+21
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6198 | 6198 | | |
6199 | 6199 | | |
6200 | 6200 | | |
| 6201 | + | |
| 6202 | + | |
| 6203 | + | |
| 6204 | + | |
| 6205 | + | |
| 6206 | + | |
6201 | 6207 | | |
6202 | 6208 | | |
6203 | 6209 | | |
| |||
6206 | 6212 | | |
6207 | 6213 | | |
6208 | 6214 | | |
6209 | | - | |
6210 | | - | |
| 6215 | + | |
6211 | 6216 | | |
6212 | 6217 | | |
6213 | 6218 | | |
| |||
9270 | 9275 | | |
9271 | 9276 | | |
9272 | 9277 | | |
9273 | | - | |
| 9278 | + | |
9274 | 9279 | | |
| 9280 | + | |
9275 | 9281 | | |
9276 | 9282 | | |
9277 | | - | |
| 9283 | + | |
9278 | 9284 | | |
9279 | 9285 | | |
9280 | 9286 | | |
| |||
9292 | 9298 | | |
9293 | 9299 | | |
9294 | 9300 | | |
9295 | | - | |
| 9301 | + | |
| 9302 | + | |
| 9303 | + | |
| 9304 | + | |
| 9305 | + | |
| 9306 | + | |
| 9307 | + | |
| 9308 | + | |
| 9309 | + | |
| 9310 | + | |
| 9311 | + | |
9296 | 9312 | | |
9297 | 9313 | | |
9298 | 9314 | | |
| |||
0 commit comments