qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] virtio-blk: fix out-of-bounds access to bitmap in notify_gue


From: Stefan Hajnoczi
Subject: Re: [PATCH] virtio-blk: fix out-of-bounds access to bitmap in notify_guest_bh
Date: Thu, 19 Dec 2019 16:21:00 +0000
User-agent: Mutt/1.12.1 (2019-06-15)

On Mon, Dec 16, 2019 at 10:30:50AM +0800, Li hangjing wrote:
> From: Li Hangjing <address@hidden>
> 
> When the number of a virtio-blk device's virtqueues is larger than
> BITS_PER_LONG, the out-of-bounds access to bitmap[ ] will occur.
> 
> Fixes: e21737ab15 ("virtio-blk: multiqueue batch notify")
> Cc: address@hidden
> Cc: Stefan Hajnoczi <address@hidden>
> Signed-off-by: Li Hangjing <address@hidden>
> Reviewed-by: Xie Yongji <address@hidden>
> Reviewed-by: Chai Wen <address@hidden>
> ---
>  hw/block/dataplane/virtio-blk.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Ouch, thank you for the fix!  Applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]