Re: [net,V2] vxlan: fix use-after-free on deletion

2017-06-02 Thread David Miller
From: Mark Bloch Date: Fri, 2 Jun 2017 03:24:08 +0300 > 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

Re: [net,V2] vxlan: fix use-after-free on deletion

2017-06-01 Thread Roopa Prabhu
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

[net,V2] vxlan: fix use-after-free on deletion

2017-06-01 Thread Mark Bloch
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 v