diff options
| author | Qingfang Deng <qingfang.deng@linux.dev> | 2026-09-09 15:56:05 +0800 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-09-27 23:39:21 +0200 |
| commit | d4548625f38b7958540451f9afed9e4155b4fa22 (patch) | |
| tree | 9a571887574b52d641ed4bec57bc5c08bba97bae /include | |
| parent | 2ac41d7009c7c60e0b876760d98bd84a1f91020d (diff) | |
net/sched: act_ct: set net pointer before publishing flowtable
nf_flow_table_init() adds the flowtable to the global flowtables list.
However, tcf_ct_flow_table_get() sets the table's network namespace only
after that call, leaving a window where the published table has a NULL
namespace pointer.
Set the namespace before calling nf_flow_table_init() so that flowtable
list walkers can rely on it being initialized.
This is required by:
"netfilter: flowtable: check namespace before iterating flows"
Signed-off-by: Qingfang Deng <qingfang.deng@linux.dev>
Reviewed-by: Xuanqiang Luo <luoxuanqiang@kylinos.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
