Commit e774e89
committed
netfilter: nf_tables: split async and sync catchall in two functions
jira VULN-430
cve CVE-2023-4244
commit-author Pablo Neira Ayuso <pablo@netfilter.org>
commit 8837ba3
list_for_each_entry_safe() does not work for the async case which runs
under RCU, therefore, split GC logic for catchall in two functions
instead, one for each of the sync and async GC variants.
The catchall sync GC variant never sees a _DEAD bit set on ever, thus,
this handling is removed in such case, moreover, allocate GC sync batch
via GFP_KERNEL.
Fixes: 93995bf ("netfilter: nf_tables: remove catchall element in GC sync path")
Reported-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
(cherry picked from commit 8837ba3)
Signed-off-by: Marcin Wcisło <marcin.wcislo@conclusive.pl>1 parent 1b3a51c commit e774e89
1 file changed
+34
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9296 | 9296 | | |
9297 | 9297 | | |
9298 | 9298 | | |
9299 | | - | |
9300 | | - | |
9301 | | - | |
| 9299 | + | |
| 9300 | + | |
9302 | 9301 | | |
9303 | | - | |
| 9302 | + | |
9304 | 9303 | | |
9305 | | - | |
9306 | 9304 | | |
9307 | 9305 | | |
9308 | | - | |
| 9306 | + | |
9309 | 9307 | | |
9310 | 9308 | | |
9311 | 9309 | | |
| |||
9315 | 9313 | | |
9316 | 9314 | | |
9317 | 9315 | | |
9318 | | - | |
9319 | | - | |
9320 | | - | |
9321 | | - | |
| 9316 | + | |
| 9317 | + | |
| 9318 | + | |
| 9319 | + | |
| 9320 | + | |
| 9321 | + | |
| 9322 | + | |
| 9323 | + | |
| 9324 | + | |
9322 | 9325 | | |
| 9326 | + | |
| 9327 | + | |
| 9328 | + | |
| 9329 | + | |
| 9330 | + | |
| 9331 | + | |
| 9332 | + | |
| 9333 | + | |
| 9334 | + | |
| 9335 | + | |
| 9336 | + | |
| 9337 | + | |
| 9338 | + | |
| 9339 | + | |
| 9340 | + | |
| 9341 | + | |
| 9342 | + | |
9323 | 9343 | | |
9324 | 9344 | | |
9325 | 9345 | | |
9326 | 9346 | | |
9327 | | - | |
9328 | | - | |
9329 | | - | |
9330 | | - | |
9331 | 9347 | | |
9332 | | - | |
9333 | | - | |
9334 | | - | |
| 9348 | + | |
| 9349 | + | |
9335 | 9350 | | |
| 9351 | + | |
| 9352 | + | |
9336 | 9353 | | |
9337 | 9354 | | |
9338 | 9355 | | |
9339 | 9356 | | |
9340 | 9357 | | |
9341 | 9358 | | |
9342 | | - | |
9343 | | - | |
9344 | | - | |
9345 | | - | |
9346 | | - | |
9347 | | - | |
9348 | | - | |
9349 | | - | |
9350 | | - | |
9351 | | - | |
9352 | | - | |
9353 | 9359 | | |
9354 | 9360 | | |
9355 | 9361 | | |
| |||
0 commit comments