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

2020-01-08 Thread Greg Kurz
On Mon, 6 Jan 2020 11:38:09 -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

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

2020-01-06 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