[PATCH v5 0/1] qcow2: add a way to repair bitmaps

Jean-Louis Dupond posted 1 patch 1 month, 4 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260522224335.1286291-1-jean-louis@dupond.be
Maintainers: Eric Blake <eblake@redhat.com>, Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>, John Snow <jsnow@redhat.com>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>
There is a newer version of this series
block/qcow2-bitmap.c   | 42 +++++++++++++++++++++++++++++++++++++++---
block/qcow2-refcount.c |  3 ++-
block/qcow2.c          | 16 ++++++++++++----
block/qcow2.h          |  3 ++-
4 files changed, 55 insertions(+), 9 deletions(-)
[PATCH v5 0/1] qcow2: add a way to repair bitmaps
Posted by Jean-Louis Dupond 1 month, 4 weeks ago
A v5 (and hopefully final :)) version of the patch.

The only change since v4 is that QSIMPLEQ_FOREACH is replaced by QSIMPLEQ_FOREACH_SAFE.
This to avoid a use after free when we free the 'bm' in the loop.

Thanks
Jean-Louis

Jean-Louis Dupond (1):
  qcow2: add functionality to repair bitmaps

 block/qcow2-bitmap.c   | 42 +++++++++++++++++++++++++++++++++++++++---
 block/qcow2-refcount.c |  3 ++-
 block/qcow2.c          | 16 ++++++++++++----
 block/qcow2.h          |  3 ++-
 4 files changed, 55 insertions(+), 9 deletions(-)

-- 
2.54.0
Re: [PATCH v5 0/1] qcow2: add a way to repair bitmaps
Posted by Jean-Louis Dupond 3 weeks, 5 days ago
Kind ping :)

On 23/05/2026 00:43, Jean-Louis Dupond wrote:
> A v5 (and hopefully final :)) version of the patch.
>
> The only change since v4 is that QSIMPLEQ_FOREACH is replaced by QSIMPLEQ_FOREACH_SAFE.
> This to avoid a use after free when we free the 'bm' in the loop.
>
> Thanks
> Jean-Louis
>
> Jean-Louis Dupond (1):
>    qcow2: add functionality to repair bitmaps
>
>   block/qcow2-bitmap.c   | 42 +++++++++++++++++++++++++++++++++++++++---
>   block/qcow2-refcount.c |  3 ++-
>   block/qcow2.c          | 16 ++++++++++++----
>   block/qcow2.h          |  3 ++-
>   4 files changed, 55 insertions(+), 9 deletions(-)
>