From: Maxim Levitsky <mlevitsk@redhat.com>
To: Max Reitz <mreitz@redhat.com>, qemu-devel@nongnu.org
Cc: "Kevin Wolf" <kwolf@redhat.com>,
"Vladimir Sementsov-Ogievskiy" <vsementsov@virtuozzo.com>,
"Daniel P . Berrangé" <berrange@redhat.com>,
qemu-block@nongnu.org, qemu-stable <qemu-stable@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v7 0/3] Fix qcow2+luks corruption introduced by commit 8ac0f15f335
Date: Mon, 16 Sep 2019 16:59:51 +0300 [thread overview]
Message-ID: <09fe1c9595b9435bd1f48e173c140edab5e96dc3.camel@redhat.com> (raw)
In-Reply-To: <d2c07712-c292-1341-3dfb-2529e71e3744@redhat.com>
On Mon, 2019-09-16 at 15:39 +0200, Max Reitz wrote:
> On 15.09.19 22:36, Maxim Levitsky wrote:
> > 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.
> >
> > Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1745922
> >
> > CC: qemu-stable <qemu-stable@nongnu.org>
> >
> > V2: grammar, spelling and code style fixes.
> > V3: more fixes after the review.
> > V4: addressed review comments from Max Reitz,
> > and futher refactored the qcow2_co_encrypt to just take full host and guest offset
> > which simplifies everything.
> >
> > V5: reworked the patches so one of them fixes the bug
> > only and other one is just refactoring
> >
> > V6: removed do_perform_cow_encrypt
> >
> > V7: removed do_perform_cow_encrypt take two, this
> > time I hopefully did that correctly :-)
> > Also updated commit names and messages a bit
>
> Luckily for you (maybe), Vladimir’s series doesn‘t quite pass the
> iotests for me, so unfortunately (I find it unfortunate) I had to remove
> it from my branch. Thus, the conflicts are much more tame and I felt
> comfortable taking the series to my branch (with the remaining trivial
> conflicts resolved, and with Vladimir’s suggestion applied):
>
> https://git.xanclic.moe/XanClic/qemu/commits/branch/block
First of all, Thanks!
I don't know if this is luckily for me since I already rebased my series on top of
https://git.xanclic.moe/XanClic/qemu.git,
and run all qcow2 iotests, and only tests
162 169 194 196 234 262 failed, and I know that 162 always fails
due to that kernel change I talked about here few days ago,
and rest for the AF_UNIX path len, which I need to do something
about in the long term. I sometimes do a separate build in
directory which path doesn't trigger this, and sometimes,
when I know that I haven't done significant changes to the patches,
I just let these tests fail. In long term, maybe even in a few days
I'll allocate some time to rethink the build environment here to
fix that permanently.
Now I am rerunning the iotests just for fun, in short enough directory
to see if I can reproduce the failure that you had. After looking
in your report, that iotest 026 fails, it does pass here, but
then I am only running these iotests on my laptop so I probably
don't trigger the race you were able to.
So thanks again!
Best regards,
Maxim Levitsky
next prev parent reply other threads:[~2019-09-16 14:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-15 20:36 [Qemu-devel] [PATCH v7 0/3] Fix qcow2+luks corruption introduced by commit 8ac0f15f335 Maxim Levitsky
2019-09-15 20:36 ` [Qemu-devel] [PATCH v7 1/3] block/qcow2: Fix " Maxim Levitsky
2019-09-16 12:42 ` Max Reitz
2019-09-15 20:36 ` [Qemu-devel] [PATCH v7 2/3] block/qcow2: refactor encryption code Maxim Levitsky
2019-09-16 9:17 ` Vladimir Sementsov-Ogievskiy
2019-09-16 12:46 ` Max Reitz
2019-09-15 20:36 ` [Qemu-devel] [PATCH v7 3/3] qemu-iotests: Add test for bz #1745922 Maxim Levitsky
2019-09-16 12:46 ` Max Reitz
2019-09-16 13:39 ` [Qemu-devel] [PATCH v7 0/3] Fix qcow2+luks corruption introduced by commit 8ac0f15f335 Max Reitz
2019-09-16 13:59 ` Maxim Levitsky [this message]
2019-09-16 14:59 ` Maxim Levitsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=09fe1c9595b9435bd1f48e173c140edab5e96dc3.camel@redhat.com \
--to=mlevitsk@redhat.com \
--cc=berrange@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=vsementsov@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).