diff options
| author | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-09-07 21:04:05 +0200 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-09-11 13:04:15 +0200 |
| commit | e75a9fa1d44bcbd66ea02e8781bcca6ea4076e0d (patch) | |
| tree | b27502ad6dd62dcdc759c94e08279b3ca4f54123 /tools/perf/scripts/python/stackcollapse.py | |
| parent | cbdd39ce42530a193c56beb206a3356cb6d01016 (diff) | |
| download | linux-e75a9fa1d44bcbd66ea02e8781bcca6ea4076e0d.tar.gz linux-e75a9fa1d44bcbd66ea02e8781bcca6ea4076e0d.zip | |
netfilter: flowtable: hold reference on ct until flow is released
nf_ct_put() releases the ct->ext area inmediately, the rcu typesafe
semantics also allow to refer to the wrong conntrack from the flowtable
datapath. Hold reference on ct until flow is released after rcu grace
period.
Add rcu_barrier() on module exit path, to ensure pending flow entries
are release before module goes away.
Fixes: 0ff90b6c2034 ("netfilter: nf_flow_offload: fix use-after-free and a resource leak")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
