[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1 1/2] virtio: check VirtQueue Vring object is
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v1 1/2] virtio: check VirtQueue Vring object is set |
Date: |
Fri, 24 Nov 2017 11:54:13 +0000 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
On Fri, Nov 24, 2017 at 01:25:41PM +0530, P J P wrote:
> From: Prasad J Pandit <address@hidden>
>
> An user could attempt to use an uninitialised VirtQueue object
> or unset Vring.align leading to a arithmetic exception. Add check
> to avoid it.
>
> Reported-by: Zhangboxian <address@hidden>
> Signed-off-by: Prasad J Pandit <address@hidden>
> ---
> hw/virtio/virtio.c | 11 ++++++++---
> 1 file changed, 8 insertions(+), 3 deletions(-)
>
> Updated: add vring.num check to virtio_queue_update_rings
> -> https://lists.gnu.org/archive/html/qemu-devel/2017-11/msg04499.html
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature