]> git.baikalelectronics.ru Git - kernel.git/commit
vhost/vsock: accept only packets with the right dst_cid
authorStefano Garzarella <sgarzare@redhat.com>
Fri, 6 Dec 2019 14:39:12 +0000 (15:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Dec 2019 19:59:51 +0000 (11:59 -0800)
commit92ee26f9a1465c73159b85c359a1648c2ea11a9b
treec7a7a62ee049ad105dae9ec0ae6943549e375f34
parente5d91d24631e553ced9d7e6eef3987546a2b7422
vhost/vsock: accept only packets with the right dst_cid

When we receive a new packet from the guest, we check if the
src_cid is correct, but we forgot to check the dst_cid.

The host should accept only packets where dst_cid is
equal to the host CID.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/vsock.c