Re: [Qemu-devel] [PATCH v2] qcow2: fix preallocation with metadata on bare block device

2018-05-11 Thread Ivan Ren
>> Create a qcow2 directly on bare block device with >> "-o preallocation=metadata" option. When read this qcow2, it will >> return pre-existing data on block device, and this may lead to >> data leakage. This patch add QCOW_OFLAG_ZERO for all preallocated >> l2 entry to avoid this problem. > > Thi

Re: [Qemu-devel] [PATCH v2] qcow2: fix preallocation with metadata on bare block device

2018-05-11 Thread Eric Blake
On 05/11/2018 07:37 AM, Ivan Ren wrote: Create a qcow2 directly on bare block device with "-o preallocation=metadata" option. When read this qcow2, it will return pre-existing data on block device, and this may lead to data leakage. This patch add QCOW_OFLAG_ZERO for all preallocated l2 entry to

[Qemu-devel] [PATCH v2] qcow2: fix preallocation with metadata on bare block device

2018-05-11 Thread Ivan Ren
Create a qcow2 directly on bare block device with "-o preallocation=metadata" option. When read this qcow2, it will return pre-existing data on block device, and this may lead to data leakage. This patch add QCOW_OFLAG_ZERO for all preallocated l2 entry to avoid this problem. Signed-off-by: Ivan R