summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2014-12-17 05:25:32 +0300
committerDavid S. Miller <davem@davemloft.net>2014-12-18 20:38:13 +0300
commit12069401d895ff84076a50189ca842c0696b84b2 (patch)
treed93c1ec4635a9d2d64fff54d376e40da3a72e13e /drivers
parent7ed767f73192d6daf673c6d885cd02d5f280ac1f (diff)
downloadlinux-12069401d895ff84076a50189ca842c0696b84b2.tar.xz
geneve: Fix races between socket add and release.
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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions