[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 08/26] qcow2: Refcount overflow and qcow2_all
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v4 08/26] qcow2: Refcount overflow and qcow2_alloc_bytes() |
Date: |
Wed, 03 Dec 2014 10:41:44 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
On 12/03/2014 06:37 AM, Max Reitz wrote:
> qcow2_alloc_bytes() may reuse a cluster multiple times, in which case
> the refcount is increased accordingly. However, if this would lead to an
> overflow the function should instead just not reuse this cluster and
> allocate a new one.
>
> Signed-off-by: Max Reitz <address@hidden>
> ---
> block/qcow2-refcount.c | 31 ++++++++++++++++++++++++++++++-
> 1 file changed, 30 insertions(+), 1 deletion(-)
>
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v4 05/26] qcow2: Use unsigned addend for update_refcount(), (continued)
- [Qemu-devel] [PATCH v4 06/26] qcow2: Use 64 bits for refcount values, Max Reitz, 2014/12/03
- [Qemu-devel] [PATCH v4 08/26] qcow2: Refcount overflow and qcow2_alloc_bytes(), Max Reitz, 2014/12/03
- [Qemu-devel] [PATCH v4 07/26] qcow2: Respect error in qcow2_alloc_bytes(), Max Reitz, 2014/12/03
- [Qemu-devel] [PATCH v4 09/26] qcow2: Helper for refcount array reallocation, Max Reitz, 2014/12/03
- [Qemu-devel] [PATCH v4 10/26] qcow2: Helper function for refcount modification, Max Reitz, 2014/12/03