Commit 318076c
committed
netfilter: nf_tables: flush pending destroy work before netlink notifier
JIRA: https://issues.redhat.com/browse/RHEL-1720
JIRA: https://issues.redhat.com/browse/RHEL-1721
Upstream Status: commit 2c9f029
commit 2c9f029
Author: Pablo Neira Ayuso <[email protected]>
Date: Fri Aug 18 01:13:31 2023 +0200
netfilter: nf_tables: flush pending destroy work before netlink notifier
Destroy work waits for the RCU grace period then it releases the objects
with no mutex held. All releases objects follow this path for
transactions, therefore, order is guaranteed and references to top-level
objects in the hierarchy remain valid.
However, netlink notifier might interfer with pending destroy work.
rcu_barrier() is not correct because objects are not release via RCU
callback. Flush destroy work before releasing objects from netlink
notifier path.
Fixes: d4bc827 ("netfilter: nf_tables: netlink notifier might race to release objects")
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>1 parent 925e3d3 commit 318076c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10709 | 10709 | | |
10710 | 10710 | | |
10711 | 10711 | | |
10712 | | - | |
| 10712 | + | |
10713 | 10713 | | |
10714 | 10714 | | |
10715 | 10715 | | |
| |||
0 commit comments