Files
linux/net/ipv6
Nicolas Dichtel 624f658470 vti6: fix input path
commit 63c43787d3 upstream.

Since commit 1625f45299, vti6 is broken, all input packets are dropped
(LINUX_MIB_XFRMINNOSTATES is incremented).

XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip6 is set by vti6_rcv() before calling
xfrm6_rcv()/xfrm6_rcv_spi(), thus we cannot set to NULL that value in
xfrm6_rcv_spi().

A new function xfrm6_rcv_tnl() that enables to pass a value to
xfrm6_rcv_spi() is added, so that xfrm6_rcv() is not touched (this function
is used in several handlers).

CC: Alexey Kodanev <alexey.kodanev@oracle.com>
Fixes: 1625f45299 ("net/xfrm_input: fix possible NULL deref of tunnel.ip6->parms.i_key")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-10 10:26:23 +02:00
..
2015-10-08 04:27:03 -07:00
2015-12-03 11:32:06 -05:00
2020-05-10 10:26:23 +02:00
2020-05-10 10:26:22 +02:00
2015-02-28 16:56:51 -05:00
2015-11-03 10:52:13 -05:00
2020-05-10 10:26:17 +02:00
2020-05-10 10:26:23 +02:00
2020-05-10 10:26:23 +02:00