Commit 8837ba3
committed
netfilter: nf_tables: split async and sync catchall in two functions
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 <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>1 parent 28628fa commit 8837ba3
1 file changed
+30
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9680 | 9680 | | |
9681 | 9681 | | |
9682 | 9682 | | |
9683 | | - | |
9684 | | - | |
9685 | | - | |
| 9683 | + | |
| 9684 | + | |
9686 | 9685 | | |
9687 | | - | |
| 9686 | + | |
9688 | 9687 | | |
9689 | | - | |
9690 | 9688 | | |
9691 | 9689 | | |
9692 | | - | |
| 9690 | + | |
9693 | 9691 | | |
9694 | 9692 | | |
9695 | 9693 | | |
| |||
9699 | 9697 | | |
9700 | 9698 | | |
9701 | 9699 | | |
9702 | | - | |
9703 | | - | |
9704 | | - | |
9705 | | - | |
9706 | | - | |
| 9700 | + | |
9707 | 9701 | | |
9708 | 9702 | | |
9709 | 9703 | | |
9710 | | - | |
9711 | | - | |
9712 | | - | |
9713 | | - | |
9714 | | - | |
9715 | | - | |
9716 | | - | |
| 9704 | + | |
9717 | 9705 | | |
9718 | 9706 | | |
9719 | 9707 | | |
9720 | 9708 | | |
9721 | 9709 | | |
9722 | | - | |
9723 | | - | |
9724 | | - | |
9725 | | - | |
9726 | | - | |
9727 | | - | |
9728 | 9710 | | |
9729 | 9711 | | |
9730 | | - | |
| 9712 | + | |
| 9713 | + | |
| 9714 | + | |
| 9715 | + | |
| 9716 | + | |
| 9717 | + | |
| 9718 | + | |
| 9719 | + | |
| 9720 | + | |
| 9721 | + | |
| 9722 | + | |
| 9723 | + | |
| 9724 | + | |
| 9725 | + | |
| 9726 | + | |
| 9727 | + | |
| 9728 | + | |
| 9729 | + | |
| 9730 | + | |
| 9731 | + | |
| 9732 | + | |
| 9733 | + | |
| 9734 | + | |
| 9735 | + | |
9731 | 9736 | | |
9732 | 9737 | | |
9733 | 9738 | | |
| |||
0 commit comments