lkml.org 
[lkml]   [2018]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] ip6_vti: fix a null pointer deference when destroy vti6 tunnel
From
From: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
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@cmss.chinamobile.com>

Ugh, applied, thanks.

\
 
 \ /
  Last update: 2018-08-20 04:57    [W:0.047 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site