Re: [Qemu-devel] [PATCH] scsi: check page count while initialising descriptor rings

2016-08-31 Thread P J P
+-- On Wed, 31 Aug 2016, P J P wrote --+ | | -if ((ri->reqRingNumPages > PVSCSI_SETUP_RINGS_MAX_NUM_PAGES) | -|| (ri->cmpRingNumPages > PVSCSI_SETUP_RINGS_MAX_NUM_PAGES)) { | +if (!ri->reqRingNumPages | +|| ri->reqRingNumPages > PVSCSI_SETUP_RINGS_MAX_NUM_PAGES | +

[Qemu-devel] [PATCH] scsi: check page count while initialising descriptor rings

2016-08-30 Thread P J P
From: Prasad J Pandit Vmware Paravirtual SCSI emulation uses command descriptors to process SCSI commands. These descriptors come with their ring buffers. A guest could set the page count for these rings to be zero, leading to an infinite loop. Add check to avoid it. Reported-by: Tom Victor Sig