qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] qcow2: don't leave partially initialized file on image creation
@ 2020-10-11 10:21 Maxim Levitsky
  2020-10-11 10:21 ` [PATCH v2 1/2] crypto: luks: fix tiny memory leak Maxim Levitsky
  2020-10-11 10:21 ` [PATCH v2 2/2] block: qcow2: remove the created file on initialization error Maxim Levitsky
  0 siblings, 2 replies; 5+ messages in thread
From: Maxim Levitsky @ 2020-10-11 10:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Maxim Levitsky, Alberto Garcia, qemu-block, Max Reitz

Use the bdrv_co_delete_file interface to delete the underlying
file if qcow2 initilization fails (e.g due to bad encryption secret)

This gives the qcow2 the same treatment as to luks.

V2: added a patch to fix a memory leak.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1845353

Maxim Levitsky (2):
  crypto: luks: fix tiny memory leak
  block: qcow2: remove the created file on initialization error

 block/crypto.c |  1 +
 block/qcow2.c  | 12 ++++++++++++
 2 files changed, 13 insertions(+)

-- 
2.26.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-10-13 12:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-11 10:21 [PATCH v2 0/2] qcow2: don't leave partially initialized file on image creation Maxim Levitsky
2020-10-11 10:21 ` [PATCH v2 1/2] crypto: luks: fix tiny memory leak Maxim Levitsky
2020-10-13 12:26   ` Alberto Garcia
2020-10-13 12:31     ` Maxim Levitsky
2020-10-11 10:21 ` [PATCH v2 2/2] block: qcow2: remove the created file on initialization error Maxim Levitsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).