VSOCK: Detach QP check should filter out non matching QPs.
authorJorgen Hansen <jhansen@vmware.com>
Tue, 5 Apr 2016 08:59:32 +0000 (01:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Apr 2017 07:09:32 +0000 (09:09 +0200)
commit8d5ed79fb2d766e57b5220a3e6054d99f1c985d0
tree90151c321997710198f3c755a6277ae6b0a8a9aa
parentf803416632b5c31e647cf18861e4c379173a02e2
VSOCK: Detach QP check should filter out non matching QPs.

commit 8ab18d71de8b07d2c4d6f984b718418c09ea45c5 upstream.

The check in vmci_transport_peer_detach_cb should only allow a
detach when the qp handle of the transport matches the one in
the detach message.

Testing: Before this change, a detach from a peer on a different
socket would cause an active stream socket to register a detach.

Reviewed-by: George Zhang <georgezhang@vmware.com>
Signed-off-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/vmw_vsock/vmci_transport.c