Re: [PATCH] vhost/vsock: accept only packets with the right dst_cid

2019-12-12 Thread David Miller
From: Stefano Garzarella Date: Thu, 12 Dec 2019 14:14:53 +0100 > On Thu, Dec 12, 2019 at 07:56:26AM -0500, Michael S. Tsirkin wrote: >> On Thu, Dec 12, 2019 at 01:36:24PM +0100, Stefano Garzarella wrote: >> I'd say it's better to backport to all stable releases where it applies, >> but yes it's o

Re: [PATCH] vhost/vsock: accept only packets with the right dst_cid

2019-12-12 Thread Stefano Garzarella
On Thu, Dec 12, 2019 at 2:14 PM Stefano Garzarella wrote: > On Thu, Dec 12, 2019 at 07:56:26AM -0500, Michael S. Tsirkin wrote: > > On Thu, Dec 12, 2019 at 01:36:24PM +0100, Stefano Garzarella wrote: > > > On Wed, Dec 11, 2019 at 11:03:07AM -0500, Michael S. Tsirkin wrote: > > > > On Fri, Dec 06,

Re: [PATCH] vhost/vsock: accept only packets with the right dst_cid

2019-12-12 Thread Stefano Garzarella
On Thu, Dec 12, 2019 at 07:56:26AM -0500, Michael S. Tsirkin wrote: > On Thu, Dec 12, 2019 at 01:36:24PM +0100, Stefano Garzarella wrote: > > On Wed, Dec 11, 2019 at 11:03:07AM -0500, Michael S. Tsirkin wrote: > > > On Fri, Dec 06, 2019 at 03:39:12PM +0100, Stefano Garzarella wrote: > > > > When we

Re: [PATCH] vhost/vsock: accept only packets with the right dst_cid

2019-12-12 Thread Michael S. Tsirkin
On Thu, Dec 12, 2019 at 01:36:24PM +0100, Stefano Garzarella wrote: > On Wed, Dec 11, 2019 at 11:03:07AM -0500, Michael S. Tsirkin wrote: > > On Fri, Dec 06, 2019 at 03:39:12PM +0100, Stefano Garzarella wrote: > > > When we receive a new packet from the guest, we check if the > > > src_cid is corre

Re: [PATCH] vhost/vsock: accept only packets with the right dst_cid

2019-12-12 Thread Stefano Garzarella
On Wed, Dec 11, 2019 at 11:03:07AM -0500, Michael S. Tsirkin wrote: > On Fri, Dec 06, 2019 at 03:39:12PM +0100, Stefano Garzarella wrote: > > 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

Re: [PATCH] vhost/vsock: accept only packets with the right dst_cid

2019-12-11 Thread Michael S. Tsirkin
On Fri, Dec 06, 2019 at 03:39:12PM +0100, Stefano Garzarella wrote: > 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

Re: [PATCH] vhost/vsock: accept only packets with the right dst_cid

2019-12-10 Thread Stefano Garzarella
On Tue, Dec 10, 2019 at 09:05:58AM -0500, Michael S. Tsirkin wrote: > On Fri, Dec 06, 2019 at 03:39:12PM +0100, Stefano Garzarella wrote: > > 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

Re: [PATCH] vhost/vsock: accept only packets with the right dst_cid

2019-12-10 Thread Michael S. Tsirkin
On Fri, Dec 06, 2019 at 03:39:12PM +0100, Stefano Garzarella wrote: > 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

Re: [PATCH] vhost/vsock: accept only packets with the right dst_cid

2019-12-07 Thread David Miller
From: Stefano Garzarella Date: Fri, 6 Dec 2019 15:39:12 +0100 > 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 Ga

[PATCH] vhost/vsock: accept only packets with the right dst_cid

2019-12-06 Thread Stefano Garzarella
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 --- drivers/vhost/vsock.c | 4 +++- 1 file changed, 3 insertions(+),