Re: [PATCH] ip6_vti: fix a null pointer deference when destroy vti6 tunnel
From: David Miller
Date: Sun Aug 19 2018 - 22:56:21 EST
From: Haishuang Yan <yanhaishuang@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 20 Aug 2018 10:51:05 +0800
> If load ip6_vti module and create a network namespace when set
> fb_tunnels_only_for_init_net to 1, then exit the namespace will
> cause following crash:
...
> This because ip6n->tnls_wc[0] point to fallback device in default, but
> in non-default namespace, ip6n->tnls_wc[0] will be NULL, so add the NULL
> check comparatively.
>
> Fixes: e2948e5af8ee ("ip6_vti: fix creating fallback tunnel device for vti6")
> Signed-off-by: Haishuang Yan <yanhaishuang@xxxxxxxxxxxxxxxxxxxx>
Ugh, applied, thanks.