Re: [PATCH] 9p: init_in_iov_from_pdu can truncate the size

2020-01-06 Thread Stefano Stabellini
On Mon, 6 Jan 2020, Greg Kurz wrote: > On Mon, 06 Jan 2020 16:24:18 +0100 > Christian Schoenebeck wrote: > > > On Montag, 6. Januar 2020 14:42:54 CET Greg Kurz wrote: > > > > diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c > > > > index 775e8ff766..68873c3f5f 100644 > > > > -

Re: [PATCH] 9p: init_in_iov_from_pdu can truncate the size

2020-01-06 Thread Greg Kurz
On Mon, 06 Jan 2020 16:24:18 +0100 Christian Schoenebeck wrote: > On Montag, 6. Januar 2020 14:42:54 CET Greg Kurz wrote: > > > diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c > > > index 775e8ff766..68873c3f5f 100644 > > > --- a/hw/9pfs/virtio-9p-device.c > > > +++ b/hw/9pfs

Re: [PATCH] 9p: init_in_iov_from_pdu can truncate the size

2020-01-06 Thread Christian Schoenebeck
On Montag, 6. Januar 2020 14:42:54 CET Greg Kurz wrote: > > diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c > > index 775e8ff766..68873c3f5f 100644 > > --- a/hw/9pfs/virtio-9p-device.c > > +++ b/hw/9pfs/virtio-9p-device.c > > @@ -145,19 +145,15 @@ static ssize_t virtio_pdu_vunm

Re: [PATCH] 9p: init_in_iov_from_pdu can truncate the size

2020-01-06 Thread Greg Kurz
On Wed, 18 Dec 2019 16:42:51 -0800 Stefano Stabellini wrote: > From: Stefano Stabellini > > init_in_iov_from_pdu might not be able to allocate the full buffer size > requested, which comes from the client and could be larger than the > transport has available at the time of the request. Specifi

Re: [PATCH] 9p: init_in_iov_from_pdu can truncate the size

2019-12-20 Thread Christian Schoenebeck
On Donnerstag, 19. Dezember 2019 23:36:07 CET Stefano Stabellini wrote: > On Thu, 19 Dec 2019, Christian Schoenebeck wrote: > > On Donnerstag, 19. Dezember 2019 01:42:51 CET Stefano Stabellini wrote: > > > From: Stefano Stabellini > > > > > > init_in_iov_from_pdu might not be able to allocate the

Re: [PATCH] 9p: init_in_iov_from_pdu can truncate the size

2019-12-19 Thread Stefano Stabellini
On Thu, 19 Dec 2019, Christian Schoenebeck wrote: > On Donnerstag, 19. Dezember 2019 01:42:51 CET Stefano Stabellini wrote: > > From: Stefano Stabellini > > > > init_in_iov_from_pdu might not be able to allocate the full buffer size > > requested, which comes from the client and could be larger t

Re: [PATCH] 9p: init_in_iov_from_pdu can truncate the size

2019-12-19 Thread Christian Schoenebeck
On Donnerstag, 19. Dezember 2019 01:42:51 CET Stefano Stabellini wrote: > From: Stefano Stabellini > > init_in_iov_from_pdu might not be able to allocate the full buffer size > requested, which comes from the client and could be larger than the > transport has available at the time of the request

[PATCH] 9p: init_in_iov_from_pdu can truncate the size

2019-12-18 Thread Stefano Stabellini
From: Stefano Stabellini init_in_iov_from_pdu might not be able to allocate the full buffer size requested, which comes from the client and could be larger than the transport has available at the time of the request. Specifically, this can happen with read operations, with the client requesting a