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)
commit8a3cc29c316c17de590e3ff8b59f3d6cbfd37b0a
treec7a7a62ee049ad105dae9ec0ae6943549e375f34
parentfafc5db28a2ff39092bafe8ac9b8b19c4904f633
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