Re: [Qemu-devel] [PATCH 1/2] tpm: check localities index

2018-11-06 Thread Marc-André Lureau
Hi On Tue, Nov 6, 2018 at 9:25 AM P J P wrote: > > From: Prasad J Pandit > > While performing mmio device r/w operations, guest could set 'addr' > parameter such that 'locty' index exceeds TPM_TIS_NUM_LOCALITIES=5. > Add check to avoid OOB access. > Unless memory_region_init_io() is broken, and

[Qemu-devel] [PATCH 1/2] tpm: check localities index

2018-11-05 Thread P J P
From: Prasad J Pandit While performing mmio device r/w operations, guest could set 'addr' parameter such that 'locty' index exceeds TPM_TIS_NUM_LOCALITIES=5. Add check to avoid OOB access. Reported-by: Cheng Feng Signed-off-by: Prasad J Pandit --- hw/tpm/tpm_tis.c | 10 -- 1 file chan