[ovs-dev] [PATCH v2] datapath: backport: vxlan: avoid using stale vxlan socket.

Pravin Shelar pshelar at ovn.org
Tue Nov 1 05:06:02 UTC 2016


On Mon, Oct 31, 2016 at 5:24 PM, Joe Stringer <joe at ovn.org> wrote:
> On 31 October 2016 at 14:36, Pravin B Shelar <pshelar at ovn.org> wrote:
>> Upstream commit:
>>     commit c6fcc4fc5f8b592600c7409e769ab68da0fb1eca
>>     Author: pravin shelar <pshelar at ovn.org>
>>     Date:   Fri Oct 28 09:59:15 2016 -0700
>>
>>     vxlan: avoid using stale vxlan socket.
>>
>>     When vxlan device is closed vxlan socket is freed. This
>>     operation can race with vxlan-xmit function which
>>     dereferences vxlan socket. Following patch uses RCU
>>     mechanism to avoid this situation.
>>
>>     Signed-off-by: Pravin B Shelar <pshelar at ovn.org>
>>     Signed-off-by: David S. Miller <davem at davemloft.net>
>>
>> Signed-off-by: Pravin B Shelar <pshelar at ovn.org>
>
> Acked-by: Joe Stringer <joe at ovn.org>
>
Thanks for review. I pushed patch to master and branch-2.6.
I am planing on backporting it to 2.5 also. but that patch is going to
be significantly different than this patch due to tunnel code
divergence.

> I assume you'll also follow up upstream with the unused function. Thanks!

yes, I have few patches for upstream tunnel modules.



More information about the dev mailing list