diff options
author | Florian Westphal <fw@strlen.de> | 2021-09-23 16:44:34 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-09-28 13:04:55 +0200 |
commit | 339031bafe6b281cf2dcb8364217288b9fdab555 (patch) | |
tree | 4fd8f21da6f482db28701690064ef6c0251dd3a3 /net/netfilter | |
parent | 3b1b6e82fb5e08e2cb355d7b2ee8644ec289de66 (diff) | |
download | linux-339031bafe6b281cf2dcb8364217288b9fdab555.tar.gz linux-339031bafe6b281cf2dcb8364217288b9fdab555.tar.bz2 linux-339031bafe6b281cf2dcb8364217288b9fdab555.zip |
netfilter: conntrack: fix boot failure with nf_conntrack.enable_hooks=1
This is a revert of
7b1957b049 ("netfilter: nf_defrag_ipv4: use net_generic infra")
and a partial revert of
8b0adbe3e3 ("netfilter: nf_defrag_ipv6: use net_generic infra").
If conntrack is builtin and kernel is booted with:
nf_conntrack.enable_hooks=1
.... kernel will fail to boot due to a NULL deref in
nf_defrag_ipv4_enable(): Its called before the ipv4 defrag initcall is
made, so net_generic() returns NULL.
To resolve this, move the user refcount back to struct net so calls
to those functions are possible even before their initcalls have run.
Fixes: 7b1957b04956 ("netfilter: nf_defrag_ipv4: use net_generic infra")
Fixes: 8b0adbe3e38d ("netfilter: nf_defrag_ipv6: use net_generic infra").
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
0 files changed, 0 insertions, 0 deletions