]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
geneve: lock RCU on TX path
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 24 Feb 2017 19:43:37 +0000 (11:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2017 11:56:56 +0000 (12:56 +0100)
commit40f9f783920f936ef99336d8310ab7e95db28db5
tree99871bfe34924a7d5543c40db5dcb8456f33977b
parentd6705c8c0cb019420e4920dea1f3d087ac18c6f6
geneve: lock RCU on TX path

[ Upstream commit a717e3f740803cc88bd5c9a70c93504f6a368663 ]

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

Fixes: fceb9c3e3825 ("geneve: avoid using stale geneve 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/geneve.c