]> 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)
commit7df7d878a1e19c0bf5b9bea2c6cbed72be19d5ff
tree13667a931f60d0a36453102b789126c46f58a183
parenta4eecccf4a444fbd8950d499ce8875a8bfee8549
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: 5ff89b510dac ("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