]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: lock RCU on TX path
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 24 Feb 2017 19:43:36 +0000 (11:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Mar 2017 17:58:31 +0000 (09:58 -0800)
commit3bcb46497dec9b488ec2e51d260f22fe66bb0734
treeb24576537ac94fd5b7924df2b1713811749b7b60
parent2a7531c0291bf482289f3df57da63fbc4578c5ce
vxlan: lock RCU on TX path

There is no guarantees that callers of the TX path will hold
the RCU lock.  Grab it explicitly.

Fixes: b9141fa25fad ("vxlan: avoid using stale vxlan socket.")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c