linux-brain/drivers/vhost
Stefano Garzarella 1f8b45f101 vhost/vsock: accept only packets with the right dst_cid
[ Upstream commit 8a3cc29c316c17de590e3ff8b59f3d6cbfd37b0a ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-04 14:00:14 +01:00
..
Kconfig tap: tap as an independent module 2017-02-11 20:59:41 -05:00
Kconfig.vringh vhost: split out vringh Kconfig 2016-08-02 16:54:28 +03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
net.c vhost_net: disable zerocopy by default 2019-07-31 07:28:26 +02:00
scsi.c vhost: scsi: add weight support 2019-07-10 09:54:42 +02:00
test.c vhost/test: fix build for vhost test 2019-09-16 08:20:45 +02:00
test.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vhost.c vhost: make sure log_num < in_num 2019-09-16 08:20:46 +02:00
vhost.h vhost: introduce vhost_exceeds_weight() 2019-07-10 09:54:42 +02:00
vringh.c vringh: kill off ACCESS_ONCE() 2016-12-16 00:13:36 +02:00
vsock.c vhost/vsock: accept only packets with the right dst_cid 2020-01-04 14:00:14 +01:00