]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: avoid using stale vxlan socket.
authorpravin shelar <pshelar@ovn.org>
Fri, 28 Oct 2016 16:59:15 +0000 (09:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Oct 2016 00:56:31 +0000 (20:56 -0400)
commitb9141fa25fad1e1f4caed36029b453db9b56bc0c
tree4fafb69c92e2169209dfb66452b7d92e8abfb11c
parent3fda15e3a7e1f9964130b38e27bcb2f748ac797e
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@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/net/vxlan.h