linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: yanhaishuang@cmss.chinamobile.com
Cc: steffen.klassert@secunet.com, kuznet@ms2.inr.ac.ru,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ip6_vti: fix a null pointer deference when destroy vti6 tunnel
Date: Sun, 19 Aug 2018 19:56:17 -0700 (PDT)	[thread overview]
Message-ID: <20180819.195617.287376807384738076.davem@davemloft.net> (raw)
In-Reply-To: <1534733465-2493-1-git-send-email-yanhaishuang@cmss.chinamobile.com>

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.

      reply	other threads:[~2018-08-20  2:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-20  2:51 [PATCH] ip6_vti: fix a null pointer deference when destroy vti6 tunnel Haishuang Yan
2018-08-20  2:56 ` David Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180819.195617.287376807384738076.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=steffen.klassert@secunet.com \
    --cc=yanhaishuang@cmss.chinamobile.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).