lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 07 Mar 2013 16:13:33 -0500 (EST)
From:	David Miller <davem@...emloft.net>
To:	zealot0630@...il.com
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH 1/1] vxlan: fix oops when delete netns containing vxlan

From: Zang MingJie <zealot0630@...il.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@...il.com>

Applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ