]> 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)
commit05cb5797fb6e615aa1636ad470944eba7a772b4a
treec7a7a62ee049ad105dae9ec0ae6943549e375f34
parent0d553bac616e2dfbd4888f40953f82bf4a359249
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