[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5930DC00.5090201@cumulusnetworks.com>
Date: Thu, 01 Jun 2017 20:31:12 -0700
From: Roopa Prabhu <roopa@...ulusnetworks.com>
To: Mark Bloch <markb@...lanox.com>
CC: jbenc@...hat.com, roid@...lanox.com, netdev@...r.kernel.org
Subject: Re: [net,V2] vxlan: fix use-after-free on deletion
On 6/1/17, 5:24 PM, Mark Bloch wrote:
> Adding a vxlan interface to a socket isn't symmetrical, while adding
> is done in vxlan_open() the deletion is done in vxlan_dellink().
> This can cause a use-after-free error when we close the vxlan
> interface before deleting it.
>
> We add vxlan_vs_del_dev() to match vxlan_vs_add_dev() and call
> it from vxlan_stop() to match the call from vxlan_open().
>
> Fixes: 56ef9c909b40 ("vxlan: Move socket initialization to within rtnl scope")
> Acked-by: Jiri Benc <jbenc@...hat.com>
> Tested-by: Roi Dayan <roid@...lanox.com>
> Signed-off-by: Mark Bloch <markb@...lanox.com>
Acked-by: Roopa Prabhu <roopa@...ulusnetworks.com>
Powered by blists - more mailing lists