Bug 1116729
Summary: | Backport qemu_bh_schedule() race condition fix | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Stefan Hajnoczi <stefanha> |
Component: | qemu-kvm-rhev | Assignee: | John Snow <jsnow> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.1 | CC: | huding, jsnow, juzhang, michen, mrezanin, rbalakri, sluo, stefanha, virt-bugs, virt-maint, xfu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu 2.1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1116728 | Environment: | |
Last Closed: | 2015-03-05 09:47:42 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1116728 | ||
Bug Blocks: |
Description
Stefan Hajnoczi
2014-07-07 07:53:43 UTC
as noted, this was fixed upstream by 924fe1293c3e7a3c787bbdfb351e7f168caee3e9 so it will be included via the 2.1 rebase. Stefan, would you please provide QE an effective way or reproducer to reproduce this bug? otherwise, QE don't know how to trigger/verify it. Thanks! (In reply to FuXiangChun from comment #3) > Stefan, > would you please provide QE an effective way or reproducer to reproduce this > bug? otherwise, QE don't know how to trigger/verify it. Thanks! There is no good test available for this race condition. I think we'll have to rely on code review for this one. Stefan, QE didn't find related patch from code. Can you confirm it? This is my testing command. If it is wrong. please correct me. Thanks. # rpm -qpi qemu-kvm-rhev-2.1.0-3.el7ev.preview.src.rpm --changelog|grep 1116729 nothing qemu-kvm-rhev-2.1.0-3.el7ev.preview.src.rpm is based on upstream an QEMU 2.1.0 release candidate. It includes the relevant commit. Since the commit comes directly from upstream instead of a backport, there is no Red Hat bugzilla information: commit 924fe1293c3e7a3c787bbdfb351e7f168caee3e9 Author: Stefan Hajnoczi <stefanha> Date: Tue Jun 3 11:21:01 2014 +0200 aio: fix qemu_bh_schedule() bh->ctx race condition Looks good. verified with qemu-kvm-rhev-2.1.0-2.el7.src.rpm double-check qemu_bh_schedule() in async.c source code. void qemu_bh_schedule(QEMUBH *bh) { AioContext *ctx; if (bh->scheduled) return; ctx = bh->ctx; bh->idle = 0; /* Make sure that: * 1. idle & any writes needed by the callback are done before the * locations are read in the aio_bh_poll. * 2. ctx is loaded before scheduled is set and the callback has a chance * to execute. */ smp_mb(); bh->scheduled = 1; aio_notify(ctx); } According to comment6, This bug is fixed. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-0624.html |