diff options
| author | Steffen Klassert <steffen.klassert@secunet.com> | 2026-04-02 13:31:04 +0200 |
|---|---|---|
| committer | Steffen Klassert <steffen.klassert@secunet.com> | 2026-04-07 10:12:40 +0200 |
| commit | 069daad4f2ae9c5c108131995529d5f02392c446 (patch) | |
| tree | ceb84e51e849b9fe762e369b4c5e2be9d683819f /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 7081d46d32312f1a31f0e0e99c6835a394037599 (diff) | |
xfrm: Wait for RCU readers during policy netns exit
xfrm_policy_fini() frees the policy_bydst hash tables after flushing the
policy work items and deleting all policies, but it does not wait for
concurrent RCU readers to leave their read-side critical sections first.
The policy_bydst tables are published via rcu_assign_pointer() and are
looked up through rcu_dereference_check(), so netns teardown must also
wait for an RCU grace period before freeing the table memory.
Fix this by adding synchronize_rcu() before freeing the policy hash tables.
Fixes: e1e551bc5630 ("xfrm: policy: prepare policy_bydst hash for rcu lookups")
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Reviewed-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
