Bug 2143006 - qemu coredump when boot with multi disks (qemu) failed to set up stack guard page: Cannot allocate memory
Summary: qemu coredump when boot with multi disks (qemu) failed to set up stack guard ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: 37
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-15 19:08 UTC by Shane Hart
Modified: 2022-11-18 01:16 UTC (History)
10 users (show)

Fixed In Version: qemu-7.0.0-11.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-18 01:16:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
kvm-coroutine-Rename-qemu_coroutine_inc-dec_pool_size.patch (4.03 KB, patch)
2022-11-16 11:17 UTC, Richard W.M. Jones
no flags Details | Diff
kvm-coroutine-Revert-to-constant-batch-size.patch (6.02 KB, patch)
2022-11-16 11:18 UTC, Richard W.M. Jones
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2079938 0 high CLOSED qemu coredump when boot with multi disks (qemu) failed to set up stack guard page: Cannot allocate memory 2023-05-04 07:54:49 UTC

Description Shane Hart 2022-11-15 19:08:47 UTC
Description of problem:

This is a bug report highlighting RHEL bug report of the same name found at:

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

This bug prevents booting a guest OS with multiple disks.  For me it shows up when I try to boot a Windows Server 2016 VM with 3 attached disks (1 SATA, and 2 VirtIO).

This worked fine in Fedora 36.  It seems the patch has been applied to qemu 7.1.0. 

Version-Release number of selected component (if applicable):

qemu 7.0.0-9

How reproducible:

Every time.

Steps to Reproduce:
1.  Take a VM with multiple disks (of VirtIO) and try to boot it in Fedora 37.
2.  Watch it segfault.

Actual results:

qemu segfaults.  

journalctl: Nov 15 12:19:48 cloud-dev01 systemd-coredump[4688]: [🡕] Process 4488 (qemu-system-x86) of user 107 dumped core.

libvirtd qemu log: runner-1284-project-2316-concurrent-0-job-1000464.log:failed to set up stack guard page: Cannot allocate memory

Expected results:

System should boot as expected.

Additional info:

I believe this has been fixed upstream, and in the errata put out by RHEL today for 9.1.  https://access.redhat.com/errata/RHSA-2022:7967

Would it be possible to backport?

Comment 1 Richard W.M. Jones 2022-11-16 11:17:35 UTC
Created attachment 1924648 [details]
kvm-coroutine-Rename-qemu_coroutine_inc-dec_pool_size.patch

Patch 1 of 2 from RHEL 9.1

Comment 2 Richard W.M. Jones 2022-11-16 11:18:04 UTC
Created attachment 1924649 [details]
kvm-coroutine-Revert-to-constant-batch-size.patch

Patch 2 of 2 from RHEL

Comment 3 Richard W.M. Jones 2022-11-16 11:18:45 UTC
The upstream fix seems to be:
https://gitlab.com/qemu-project/qemu/-/commit/9ec7a59b5aad4b736871c378d30f5ef5ec51cb52

Comment 4 Richard W.M. Jones 2022-11-16 14:28:09 UTC
Koji is down at the moment, but there is/was a build going here:
https://koji.fedoraproject.org/koji/taskinfo?taskID=94239748

Comment 5 Shane Hart 2022-11-16 14:33:42 UTC
Great!  Thanks for being so quick, I'm keeping an eye on this for sure.

Comment 6 Fedora Update System 2022-11-16 16:26:15 UTC
FEDORA-2022-82bf1ca875 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-82bf1ca875

Comment 7 Fedora Update System 2022-11-17 02:39:18 UTC
FEDORA-2022-82bf1ca875 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-82bf1ca875`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-82bf1ca875

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Shane Hart 2022-11-17 12:58:27 UTC
I can confirm that installing the new packages from the updates-testing repo solves the problem.

Comment 9 Fedora Update System 2022-11-18 01:16:41 UTC
FEDORA-2022-82bf1ca875 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.