Re: [PATCH v2 net 1/2] vxlan: avoid using stale vxlan socket.

2016-10-29 Thread David Miller
From: Pravin B Shelar Date: Fri, 28 Oct 2016 09:59:15 -0700 > 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

[PATCH v2 net 1/2] vxlan: avoid using stale vxlan socket.

2016-10-28 Thread Pravin B Shelar
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 --- drivers/net/vxlan.c | 80 +--