]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fix panic when forwarding a pkt with no in6 dev
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 8 Apr 2022 14:03:42 +0000 (16:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2022 11:28:43 +0000 (12:28 +0100)
commit820abd20fc46822790cfdb7b0d09701aeaa77e4f
tree13667a931f60d0a36453102b789126c46f58a183
parentfe7fb6d46dbfda60de14f148f9f9f80d44845cb3
ipv6: fix panic when forwarding a pkt with no in6 dev

kongweibin reported a kernel panic in ip6_forward() when input interface
has no in6 dev associated.

The following tc commands were used to reproduce this panic:
tc qdisc del dev vxlan100 root
tc qdisc add dev vxlan100 root netem corrupt 5%

CC: stable@vger.kernel.org
Fixes: 202cd2a6d523 ("ipv6: fix 'disable_policy' for fwd packets")
Reported-by: kongweibin <kongweibin2@huawei.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c