summaryrefslogtreecommitdiff
path: root/net/netfilter/xt_AUDIT.c
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2017-04-20 11:44:16 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-24 11:00:17 +0100
commitdfe9c1de141667e360bb28e1e23904316a285607 (patch)
treee57a847333d9b1023e8863d903b6d872f30bd1e4 /net/netfilter/xt_AUDIT.c
parent419707a9fbe14ec1877159707ecf4111197c38e8 (diff)
ipvs: explicitly forbid ipv6 service/dest creation if ipv6 mod is disabled
[ Upstream commit 1442f6f7c1b77de1c508318164a527e240c24a4d ] When creating a new ipvs service, ipv6 addresses are always accepted if CONFIG_IP_VS_IPV6 is enabled. On dest creation the address family is not explicitly checked. This allows the user-space to configure ipvs services even if the system is booted with ipv6.disable=1. On specific configuration, ipvs can try to call ipv6 routing code at setup time, causing the kernel to oops due to fib6_rules_ops being NULL. This change addresses the issue adding a check for the ipv6 module being enabled while validating ipv6 service operations and adding the same validation for dest operations. According to git history, this issue is apparently present since the introduction of ipv6 support, and the oops can be triggered since commit 09571c7ae30865ad ("IPVS: Add function to determine if IPv6 address is local") Fixes: 09571c7ae30865ad ("IPVS: Add function to determine if IPv6 address is local") Signed-off-by: Paolo Abeni <pabeni@redhat.com> Acked-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/netfilter/xt_AUDIT.c')
0 files changed, 0 insertions, 0 deletions