summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@amazon.com>2024-07-25 22:28:21 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2024-08-01 00:21:34 +0300
commitc22921df777de5606f1047b1345b8d22ef1c0b34 (patch)
tree5824c5fc27fd19086e80f080b11180ec01f1b4ea /tools/perf/scripts/python/export-to-postgresql.py
parent5830aa863981d43560748aa93589c0695191d95d (diff)
downloadlinux-c22921df777de5606f1047b1345b8d22ef1c0b34.tar.xz
netfilter: iptables: Fix potential null-ptr-deref in ip6table_nat_table_init().
ip6table_nat_table_init() accesses net->gen->ptr[ip6table_nat_net_ops.id], but the function is exposed to user space before the entry is allocated via register_pernet_subsys(). Let's call register_pernet_subsys() before xt_register_template(). Fixes: fdacd57c79b7 ("netfilter: x_tables: never register tables by default") Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Reviewed-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions