Re: [Qemu-devel] [PATCH v2] ppc/pnv: check size before data buffer access

2018-11-08 Thread Cédric Le Goater
Hello Laurent, On 11/8/18 10:10 AM, Laurent Vivier wrote: > On 26/10/2018 14:33, P J P wrote: >> From: Prasad J Pandit >> >> While performing PowerNV memory r/w operations, the access length >> 'sz' could exceed the data[4] buffer size. Add check to avoid OOB >> access. >> >> Reported-by:

Re: [Qemu-devel] [PATCH v2] ppc/pnv: check size before data buffer access

2018-11-08 Thread Laurent Vivier
On 26/10/2018 14:33, P J P wrote: > From: Prasad J Pandit > > While performing PowerNV memory r/w operations, the access length > 'sz' could exceed the data[4] buffer size. Add check to avoid OOB > access. > > Reported-by: Moguofang > Signed-off-by: Prasad J Pandit > --- > hw/ppc/pnv_lpc.c |

Re: [Qemu-devel] [PATCH v2] ppc/pnv: check size before data buffer access

2018-11-03 Thread David Gibson
On Fri, Oct 26, 2018 at 06:03:58PM +0530, P J P wrote: > From: Prasad J Pandit > > While performing PowerNV memory r/w operations, the access length > 'sz' could exceed the data[4] buffer size. Add check to avoid OOB > access. > > Reported-by: Moguofang > Signed-off-by: Prasad J Pandit

Re: [Qemu-devel] [PATCH v2] ppc/pnv: check size before data buffer access

2018-10-26 Thread Cédric Le Goater
On 10/26/18 2:33 PM, P J P wrote: > From: Prasad J Pandit > > While performing PowerNV memory r/w operations, the access length > 'sz' could exceed the data[4] buffer size. Add check to avoid OOB > access. > > Reported-by: Moguofang > Signed-off-by: Prasad J Pandit Reviewed-by: Cédric Le

[Qemu-devel] [PATCH v2] ppc/pnv: check size before data buffer access

2018-10-26 Thread P J P
From: Prasad J Pandit While performing PowerNV memory r/w operations, the access length 'sz' could exceed the data[4] buffer size. Add check to avoid OOB access. Reported-by: Moguofang Signed-off-by: Prasad J Pandit --- hw/ppc/pnv_lpc.c | 8 +++- 1 file changed, 7 insertions(+), 1