]> asedeno.scripts.mit.edu Git - linux.git/commit
vhost/vsock: refuse CID assigned to the guest->host transport
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 14 Nov 2019 09:57:50 +0000 (10:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 02:12:18 +0000 (18:12 -0800)
commited8640a9612cfd01e1dac31255cea53023353681
treea1b3646ed5ce6b6db5c1f4c5e3db8bc704caa948
parent36c5b48b91ac56762ef87e4af76350ed50f119b5
vhost/vsock: refuse CID assigned to the guest->host transport

In a nested VM environment, we have to refuse to assign to a nested
guest the same CID assigned to our guest->host transport.
In this way, the user can use the local CID for loopback.

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