Bug 1908693 - [ppc64le]boot up a guest with 128 numa nodes ,qemu got coredump
Summary: [ppc64le]boot up a guest with 128 numa nodes ,qemu got coredump
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: qemu-kvm
Version: 8.4
Hardware: ppc64le
OS: Linux
high
high
Target Milestone: rc
: 8.4
Assignee: Greg Kurz
QA Contact: Min Deng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-17 11:07 UTC by Min Deng
Modified: 2021-05-25 06:47 UTC (History)
5 users (show)

Fixed In Version: qemu-kvm-5.2.0-3.module+el8.4.0+9499+42e58f08
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-25 06:46:30 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
commandanderror (77.20 KB, text/plain)
2020-12-17 11:11 UTC, Min Deng
no flags Details
cmd (14.16 KB, text/plain)
2020-12-17 11:13 UTC, Min Deng
no flags Details

Description Min Deng 2020-12-17 11:07:52 UTC
Description of problem:
[ppc64le]boot up a guest with 128 numa nodes ,qemu got coredump

Version-Release number of selected component (if applicable):
kenrel-4.18.0-259.el8.dt4.ppc64le
qemu-kvm-core-5.2.0-1.module+el8.4.0+9091+650b220a.ppc64le

How reproducible:
4/4

Steps to Reproduce:
1.boot up a guest with 128 numa nodes 
2.
3.

Actual results:
(qemu) qemu-kvm: ../util/error.c:59: error_setv: Assertion `*errp == NULL' failed.
128.sh: line 1: 320147 Aborted                 (core dumped) /usr/libexec/qemu-kvm -name 'avocado-vt-vm1' -s
Expected results:
Boot up successfully
Additional info:
See command line in attachment, it can be reproduced via manual and auto test.

Comment 1 Min Deng 2020-12-17 11:11:03 UTC
It's not reproducible on the following builds,
qemu-kvm-5.0.0-0.module+el8.3.0+6620+5d5e1420.ppc64le
kernel-4.18.0-213.el8.ppc64le

Comment 2 Min Deng 2020-12-17 11:11:43 UTC
Created attachment 1739952 [details]
commandanderror

Comment 3 Min Deng 2020-12-17 11:13:21 UTC
Created attachment 1739953 [details]
cmd

Comment 4 Greg Kurz 2020-12-18 11:48:45 UTC
Easily reproduced upstream. There's a buffer overflow in the sPAPR NUMA
init code. Fix looks trivial. I'll post it ASAP.

Comment 5 Greg Kurz 2020-12-18 14:07:59 UTC
Posted fix for upstream:

https://lists.nongnu.org/archive/html/qemu-devel/2020-12/msg05313.html

Comment 9 Min Deng 2021-01-19 07:31:38 UTC
Tried this bug with the new builds,
qemu-kvm-5.2.0-3.module+el8.4.0+9499+42e58f08
Steps,
please refer to comment0

Actual results,
Qemu worked well without any core dump
Expected results,
Qemu works well without any core dump

Comment 12 Min Deng 2021-01-21 03:16:39 UTC
Base on comment9, move it to be verified, thanks a lot.

Comment 14 errata-xmlrpc 2021-05-25 06:46:30 UTC
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 (virt:av bug fix and enhancement update), 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://access.redhat.com/errata/RHBA-2021:2098


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