Re: [Qemu-devel] [PATCH v3] virtio: add check for descriptor's mapped address

2016-09-20 Thread Stefan Hajnoczi
On Mon, Sep 19, 2016 at 11:55:45PM +0530, P J P wrote: > From: Prasad J Pandit > > virtio back end uses set of buffers to facilitate I/O operations. > If its size is too large, 'cpu_physical_memory_map' could return > a null address. This would result in a null dereference while > un-mapping desc

Re: [Qemu-devel] [PATCH v3] virtio: add check for descriptor's mapped address

2016-09-19 Thread Laszlo Ersek
On 09/19/16 20:25, P J P wrote: > From: Prasad J Pandit > > virtio back end uses set of buffers to facilitate I/O operations. > If its size is too large, 'cpu_physical_memory_map' could return > a null address. This would result in a null dereference while > un-mapping descriptors. Add check to a

[Qemu-devel] [PATCH v3] virtio: add check for descriptor's mapped address

2016-09-19 Thread P J P
From: Prasad J Pandit virtio back end uses set of buffers to facilitate I/O operations. If its size is too large, 'cpu_physical_memory_map' could return a null address. This would result in a null dereference while un-mapping descriptors. Add check to avoid it. Reported-by: Qinghao Tang Signed-