]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2017 11:56:56 +0000 (12:56 +0100)
commitd6705c8c0cb019420e4920dea1f3d087ac18c6f6
treeaf6378fafa08c3c314b5c0b862d828d803ee11e3
parent4c94beba3aee225c8ef57d9eb0730d868d02c9cc
vxlan: lock RCU on TX path

[ Upstream commit 56de859e9967c070464a9a9f4f18d73f9447298e ]

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

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