]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
vhost-vsock: fix orphan connection reset
authorPeng Tao <bergwolf@gmail.com>
Thu, 8 Dec 2016 17:10:46 +0000 (01:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Dec 2016 02:24:30 +0000 (21:24 -0500)
commitc4587631c7bad47c045e081d1553cd73a23be59a
treedca17e05e83359df10a2786707d633314a08b99f
parent1e97426d29fec42e559d12cdb069c83962be762e
vhost-vsock: fix orphan connection reset

local_addr.svm_cid is host cid. We should check guest cid instead,
which is remote_addr.svm_cid. Otherwise we end up resetting all
connections to all guests.

Cc: stable@vger.kernel.org [4.8+]
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/vsock.c