]> git.baikalelectronics.ru Git - kernel.git/commit
geneve: avoid using stale geneve socket.
authorpravin shelar <pshelar@ovn.org>
Fri, 28 Oct 2016 16:59:16 +0000 (09:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Oct 2016 00:56:31 +0000 (20:56 -0400)
commitd62bb681d7a578b1d670caa18325f5b431b8d7d9
tree000b9e33ea52a048943fbb7c243fc461733f3ccb
parentb9141fa25fad1e1f4caed36029b453db9b56bc0c
geneve: avoid using stale geneve socket.

This patch is similar to earlier vxlan patch.
Geneve device close operation frees geneve socket. This
operation can race with geneve-xmit function which
dereferences geneve socket. Following patch uses RCU
mechanism to avoid this situation.

Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c