diff options
author | Jesse Gross <jesse@nicira.com> | 2014-12-16 18:25:32 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-27 08:29:32 -0800 |
commit | bce2a13e79891e11ebaed87ac2b68fef643426b2 (patch) | |
tree | 3c6c5b785dabd0048fb80d39d86e00de40df55da /drivers/net/xen-netback | |
parent | 4378fe7d7973624d7b9a8d814651c82e428c241b (diff) |
geneve: Fix races between socket add and release.
[ Upstream commit 12069401d895ff84076a50189ca842c0696b84b2 ]
Currently, searching for a socket to add a reference to is not
synchronized with deletion of sockets. This can result in use
after free if there is another operation that is removing a
socket at the same time. Solving this requires both holding the
appropriate lock and checking the refcount to ensure that it
has not already hit zero.
Inspired by a related (but not exactly the same) issue in the
VXLAN driver.
Fixes: 0b5e8b8e ("net: Add Geneve tunneling protocol driver")
CC: Andy Zhou <azhou@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/xen-netback')
0 files changed, 0 insertions, 0 deletions