Commit c4fdaba
committed
netfilter: nf_tables: don't write table validation state without mutex
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2189550
Upstream Status: commit 9a32e98
commit 9a32e98
Author: Florian Westphal <[email protected]>
Date: Thu Apr 13 17:13:19 2023 +0200
netfilter: nf_tables: don't write table validation state without mutex
The ->cleanup callback needs to be removed, this doesn't work anymore as
the transaction mutex is already released in the ->abort function.
Just do it after a successful validation pass, this either happens
from commit or abort phases where transaction mutex is held.
Fixes: f102d66 ("netfilter: nf_tables: use dedicated mutex to guard transactions")
Signed-off-by: Florian Westphal <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>1 parent 05445b5 commit c4fdaba
File tree
3 files changed
+2
-9
lines changed- include/linux/netfilter
- net/netfilter
3 files changed
+2
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8383 | 8383 | | |
8384 | 8384 | | |
8385 | 8385 | | |
| 8386 | + | |
| 8387 | + | |
8386 | 8388 | | |
8387 | 8389 | | |
8388 | 8390 | | |
| |||
9254 | 9256 | | |
9255 | 9257 | | |
9256 | 9258 | | |
9257 | | - | |
9258 | | - | |
9259 | | - | |
9260 | | - | |
9261 | | - | |
9262 | 9259 | | |
9263 | 9260 | | |
9264 | 9261 | | |
| |||
9292 | 9289 | | |
9293 | 9290 | | |
9294 | 9291 | | |
9295 | | - | |
9296 | 9292 | | |
9297 | 9293 | | |
9298 | 9294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
594 | | - | |
595 | 593 | | |
596 | 594 | | |
597 | 595 | | |
| |||
0 commit comments