diff options
author | Arnd Bergmann | 2019-06-17 15:15:04 +0200 |
---|---|---|
committer | Pablo Neira Ayuso | 2019-06-21 17:21:11 +0200 |
commit | 43a38c3f318082839d7e613352d4dae7bbdfcdec (patch) | |
tree | 7d5e9f6fe2e357bc404554923c265b2a2721a3d3 /net | |
parent | netfilter: bridge: prevent UAF in brnf_exit_net() (diff) | |
download | kernel-qcow2-linux-43a38c3f318082839d7e613352d4dae7bbdfcdec.tar.gz kernel-qcow2-linux-43a38c3f318082839d7e613352d4dae7bbdfcdec.tar.xz kernel-qcow2-linux-43a38c3f318082839d7e613352d4dae7bbdfcdec.zip |
netfilter: fix nf_conntrack_bridge/ipv6 link error
When CONFIG_IPV6 is disabled, the bridge netfilter code
produces a link error:
ERROR: "br_ip6_fragment" [net/bridge/netfilter/nf_conntrack_bridge.ko] undefined!
ERROR: "nf_ct_frag6_gather" [net/bridge/netfilter/nf_conntrack_bridge.ko] undefined!
The problem is that it assumes that whenever IPV6 is not a loadable
module, we can call the functions direction. This is clearly
not true when IPV6 is disabled.
There are two other functions defined like this in linux/netfilter_ipv6.h,
so change them all the same way.
Fixes: 764dd163ac92 ("netfilter: nf_conntrack_bridge: add support for IPv6")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions