[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH v3 0/3] Fix qcow2+luks corruption introduced by comm
[Qemu-block] [PATCH v3 0/3] Fix qcow2+luks corruption introduced by commit 8ac0f15f335
Fri, 13 Sep 2019 01:37:51 +0300
Commit 8ac0f15f335 accidently broke the COW of non changed areas
of newly allocated clusters, when the write spans multiple clusters,
and needs COW both prior and after the write.
This results in 'after' COW area being encrypted with wrong
sector address, which render it corrupted.
CC: qemu-stable <address@hidden>
V2: grammar, spelling and code style fixes.
V3: more fixes after the review.
Maxim Levitsky (3):
block/qcow2: refactoring of threaded encryption code
block/qcow2: fix the corruption when rebasing luks encrypted files
qemu-iotests: Add test for bz #1745922
block/qcow2-cluster.c | 29 +++++++-----
block/qcow2-threads.c | 63 ++++++++++++++++++++------
tests/qemu-iotests/263 | 91 ++++++++++++++++++++++++++++++++++++++
tests/qemu-iotests/263.out | 40 +++++++++++++++++
tests/qemu-iotests/group | 1 +
5 files changed, 199 insertions(+), 25 deletions(-)
create mode 100755 tests/qemu-iotests/263
create mode 100644 tests/qemu-iotests/263.out
- [Qemu-block] [PATCH v3 0/3] Fix qcow2+luks corruption introduced by commit 8ac0f15f335,
Maxim Levitsky <=