netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: zealot0630@gmail.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH 1/1] vxlan: fix oops when delete netns containing vxlan
Date: Thu, 07 Mar 2013 16:13:33 -0500 (EST)	[thread overview]
Message-ID: <20130307.161333.371120212677853189.davem@davemloft.net> (raw)
In-Reply-To: <1362580657-25580-1-git-send-email-zealot0630@gmail.com>

From: Zang MingJie <zealot0630@gmail.com>
Date: Wed,  6 Mar 2013 22:37:37 +0800

> 
> The following script will produce a kernel oops:
> 
>     sudo ip netns add v
>     sudo ip netns exec v ip ad add 127.0.0.1/8 dev lo
>     sudo ip netns exec v ip link set lo up
>     sudo ip netns exec v ip ro add 224.0.0.0/4 dev lo
>     sudo ip netns exec v ip li add vxlan0 type vxlan id 42 group 239.1.1.1 dev lo
>     sudo ip netns exec v ip link set vxlan0 up
>     sudo ip netns del v
> 
> where inspect by gdb:
 ...
> The kernel calls `vxlan_exit_net` when deleting the netns before shutting down
> vxlan interfaces. Later the removal of all vxlan interfaces, where `vn->sock`
> is already gone causes the oops. so we should manually shutdown all interfaces
> before deleting `vn->sock` as the patch does.
> 
> Signed-off-by: Zang MingJie <zealot0630@gmail.com>

Applied and queued up for -stable, thanks.

      reply	other threads:[~2013-03-07 21:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-06 14:37 [PATCH 1/1] vxlan: fix oops when delete netns containing vxlan Zang MingJie
2013-03-07 21:13 ` 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=20130307.161333.371120212677853189.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=zealot0630@gmail.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).