Skip to contentSkip to conversation

Early 4.1.1 release for image corruption fixes?

DISCUSSION Kevin Wolf 3 participants 3 messages Oct 25, 2019

lore
Share & tools
lore

Kevin Wolf

author
#0 lore raw

Hi,

the QEMU 4.1.0 release has two problems that can easily cause image corruption with any qcow2 images (no special configuration needed to trigger the bugs):

1. A locking bug in the qcow2 code. I just sent a pull request that includes the fix for this. The important patch there is:

'qcow2: Fix corruption bug in qcow2_detect_metadata_preallocation()'

2. A kernel bug in the XFS driver that became visible by new I/O patterns the qcow2 implementation started to use in 4.1. Max is currently working on a workaround for this.

The Planning/4.1 wiki page tells me that a 4.1.1 release is planned for end of November, which isn't too far, but I was wondering if want to have a stable release even earlier, right after the fixes for both problems are in.

Peter, if we haven't made a decision until then, maybe discussing this is an agenda item for QEMU Summit, too.

Kevin

#1 lore raw
Quoted 11 lines · Kevin Wolf

Hi,

the QEMU 4.1.0 release has two problems that can easily cause image corruption with any qcow2 images (no special configuration needed to trigger the bugs):

1. A locking bug in the qcow2 code. I just sent a pull request that includes the fix for this. The important patch there is:

'qcow2: Fix corruption bug in qcow2_detect_metadata_preallocation()'

Quoted 8 lines

2. A kernel bug in the XFS driver that became visible by new I/O patterns the qcow2 implementation started to use in 4.1. Max is currently working on a workaround for this.

The Planning/4.1 wiki page tells me that a 4.1.1 release is planned for end of November, which isn't too far, but I was wondering if want to have a stable release even earlier, right after the fixes for both problems are in.

IMHO data corruption for our primary image format is an excellent reason to do a stable release at the soonest viable opportunity.

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#2 lore raw
In reply to Kevin Wolf
Quoted 5 lines · Kevin Wolf

Hi,

the QEMU 4.1.0 release has two problems that can easily cause image corruption with any qcow2 images (no special configuration needed to trigger the bugs):

Three, actually. There’s also b2c6f23f4a9f6d8f1b648705cd46d3713b78d6a2 which fixed 50ba5b2d994853b38fed10e0841b119da0f8b8e5 that was part of 4.1.0, too.

Quoted 8 lines

1. A locking bug in the qcow2 code. I just sent a pull request that includes the fix for this. The important patch there is:

'qcow2: Fix corruption bug in qcow2_detect_metadata_preallocation()'

2. A kernel bug in the XFS driver that became visible by new I/O patterns the qcow2 implementation started to use in 4.1. Max is currently working on a workaround for this.

You most likely won’t see the kernel bug on 4.1.0, because 50ba5b2d99 is basically the same bug, but in qemu...

(I don’t know if it has the same technical reason, but it causes the same symptoms.)

Max

Quoted 10 lines

The Planning/4.1 wiki page tells me that a 4.1.1 release is planned for end of November, which isn't too far, but I was wondering if want to have a stable release even earlier, right after the fixes for both problems are in.

Peter, if we haven't made a decision until then, maybe discussing this is an agenda item for QEMU Summit, too.

Kevin