Bug 2149813

Summary: kernel crashes with: general protection fault: 0000 [#1] SMP PTI in native_write_cr4+0x2/0x60
Product: Red Hat Enterprise Linux 8 Reporter: btsome <chilmeat>
Component: kernelAssignee: core-kernel-bot <core-kernel-mgr>
kernel sub component: Kernel-Core QA Contact: Red Hat Kernel QE team <kernel-qe>
Status: CLOSED INSUFFICIENT_DATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: aquini, chilmeat, mhicks, ptoscano, rjones
Version: 8.5Keywords: Triaged
Target Milestone: rcFlags: aquini: needinfo? (chilmeat)
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-23 23:58:05 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:

Description btsome 2022-12-01 01:56:22 UTC
Description of problem:


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

cnetos8 stream

qemu 6.2.0

guestfish 1.44.0  

supermin  5.2.1

How reproducible:


Steps to Reproduce:
1.virt-df -a CentOS-7-x86_64-GenericCloud.qcow2 -h
2.
3.

Actual results:


Expected results:


Additional info:
[root@CentOS8-standard opt]# libguestfs-test-tool 
     ************************************************************
     *                    IMPORTANT NOTICE
     *
     * When reporting bugs, include the COMPLETE, UNEDITED
     * output below in your bug report.
     *
     ************************************************************
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_backend "direct"
libguestfs: trace: set_backend = 0
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
LIBGUESTFS_BACKEND=direct
LIBGUESTFS_TRACE=1
LIBGUESTFS_DEBUG=1
PATH=/home/secdeer/.local/bin:/home/secdeer/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
XDG_RUNTIME_DIR=/run/user/1000
SELinux: Enforcing
libguestfs: trace: add_drive_scratch 104857600
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: disk_create "/tmp/libguestfsMPUvIF/scratch1.img" "raw" 104857600
libguestfs: trace: disk_create = 0
libguestfs: trace: add_drive "/tmp/libguestfsMPUvIF/scratch1.img" "format:raw" "cachemode:unsafe"
libguestfs: trace: add_drive = 0
libguestfs: trace: add_drive_scratch = 0
libguestfs: trace: get_append
libguestfs: trace: get_append = "NULL"
guestfs_get_append: (null)
libguestfs: trace: get_autosync
libguestfs: trace: get_autosync = 1
guestfs_get_autosync: 1
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "direct"
guestfs_get_backend: direct
libguestfs: trace: get_backend_settings
libguestfs: trace: get_backend_settings = []
guestfs_get_backend_settings: []
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
guestfs_get_cachedir: /var/tmp
libguestfs: trace: get_hv
libguestfs: trace: get_hv = "/usr/libexec/qemu-kvm"
guestfs_get_hv: /usr/libexec/qemu-kvm
libguestfs: trace: get_memsize
libguestfs: trace: get_memsize = 1280
guestfs_get_memsize: 1280
libguestfs: trace: get_network
libguestfs: trace: get_network = 0
guestfs_get_network: 0
libguestfs: trace: get_path
libguestfs: trace: get_path = "/usr/lib64/guestfs"
guestfs_get_path: /usr/lib64/guestfs
libguestfs: trace: get_pgroup
libguestfs: trace: get_pgroup = 0
guestfs_get_pgroup: 0
libguestfs: trace: get_program
libguestfs: trace: get_program = "libguestfs-test-tool"
guestfs_get_program: libguestfs-test-tool
libguestfs: trace: get_recovery_proc
libguestfs: trace: get_recovery_proc = 1
guestfs_get_recovery_proc: 1
libguestfs: trace: get_smp
libguestfs: trace: get_smp = 1
guestfs_get_smp: 1
libguestfs: trace: get_sockdir
libguestfs: trace: get_sockdir = "/tmp"
guestfs_get_sockdir: /tmp
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
guestfs_get_tmpdir: /tmp
libguestfs: trace: get_trace
libguestfs: trace: get_trace = 1
guestfs_get_trace: 1
libguestfs: trace: get_verbose
libguestfs: trace: get_verbose = 1
guestfs_get_verbose: 1
host_cpu: x86_64
Launching appliance, timeout set to 600 seconds.
libguestfs: trace: launch
libguestfs: trace: max_disks
libguestfs: trace: max_disks = 255
libguestfs: trace: version
libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 44, release: 0, extra: rhel=8,release=9.module_el8.7.0+1218+f626c2ff,libvirt, >
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "direct"
libguestfs: launch: program=libguestfs-test-tool
libguestfs: launch: version=1.44.0rhel=8,release=9.module_el8.7.0+1218+f626c2ff,libvirt
libguestfs: launch: backend registered: unix
libguestfs: launch: backend registered: uml
libguestfs: launch: backend registered: libvirt
libguestfs: launch: backend registered: direct
libguestfs: launch: backend=direct
libguestfs: launch: tmpdir=/tmp/libguestfsMPUvIF
libguestfs: launch: umask=0022
libguestfs: launch: euid=0
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: begin building supermin appliance
libguestfs: run supermin
libguestfs: command: run: /usr/bin/supermin
libguestfs: command: run: \ --build
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ --if-newer
libguestfs: command: run: \ --lock /var/tmp/.guestfs-0/lock
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ --host-cpu x86_64
libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d
libguestfs: command: run: \ -o /var/tmp/.guestfs-0/appliance.d
supermin: version: 5.2.1
supermin: rpm: detected RPM version 4.14
supermin: rpm: detected RPM architecture x86_64
supermin: package handler: fedora/rpm
supermin: acquiring lock on /var/tmp/.guestfs-0/lock
supermin: if-newer: output does not need rebuilding
libguestfs: finished building supermin appliance
libguestfs: begin testing qemu features
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: checking for previously cached test results of /usr/libexec/qemu-kvm, in /var/tmp/.guestfs-0
libguestfs: loading previously cached test results
libguestfs: qemu version: 6.2
libguestfs: qemu mandatory locking: yes
libguestfs: qemu KVM: enabled
libguestfs: trace: get_backend_setting "force_tcg"
libguestfs: trace: get_backend_setting = NULL (error)
libguestfs: trace: get_sockdir
libguestfs: trace: get_sockdir = "/tmp"
libguestfs: finished testing qemu features
libguestfs: trace: get_backend_setting "gdb"
libguestfs: trace: get_backend_setting = NULL (error)
libguestfs: command: run: file
libguestfs: command: run: \ -- /var/tmp/.guestfs-0/appliance.d/root
/usr/libexec/qemu-kvm \
    -global virtio-blk-pci.scsi=off \
    -no-user-config \
    -enable-fips \
    -nodefaults \
    -display none \
    -machine accel=kvm:tcg \
    -cpu max,la57=off \
    -m 1280 \
    -no-reboot \
    -rtc driftfix=slew \
    -no-hpet \
    -global kvm-pit.lost_tick_policy=discard \
    -kernel /var/tmp/.guestfs-0/appliance.d/kernel \
    -initrd /var/tmp/.guestfs-0/appliance.d/initrd \
    -object rng-random,filename=/dev/urandom,id=rng0 \
    -device virtio-rng-pci,rng=rng0 \
    -device virtio-scsi-pci,id=scsi \
    -drive file=/tmp/libguestfsMPUvIF/scratch1.img,cache=unsafe,format=raw,id=hd0,if=none \
    -device scsi-hd,drive=hd0 \
    -drive file=/var/tmp/.guestfs-0/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none,format=raw \
    -device scsi-hd,drive=appliance \
    -device virtio-serial-pci \
    -serial stdio \
    -device sga \
    -chardev socket,path=/tmp/libguestfsvh0N3Q/guestfsd.sock,id=channel0 \
    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
    -append "panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=UUID=777da459-83b9-418a-87e9-941c4e62a11b selinux=0 guestfs_verbose=1 TERM=xterm-256color"
qemu-kvm: -enable-fips: warning: -enable-fips is deprecated, please build QEMU with the `libgcrypt` library as the cryptography provider to enable FIPS compliance
qemu-kvm: -device sga: warning: -device sga is deprecated, use -machine graphics=off
libguestfs: responding to serial console Device Status Report
\x1b[1;256r\x1b[256;256H\x1b[6n
Google, Inc.
Serial Graphics Adapter 11/09/21
SGABIOS $Id$ (mockbuild@) Tue Nov  9 20:15:10 UTC 2021
Term: 80x24
4 0
SeaBIOS (version 1.16.0-3.module_el8.7.0+1218+f626c2ff)
Booting from ROM...
\x1b[2J[    0.000000] Linux version 4.18.0-408.el8.x86_64 (mockbuild.centos.org) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-14) (GCC)) #1 SMP Mon Jul 18 17:42:52 UTC 2022
[    0.000000] Command line: panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=UUID=777da459-83b9-418a-87e9-941c4e62a11b selinux=0 guestfs_verbose=1 TERM=xterm-256color
[    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[    0.000000] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[    0.000000] signal: max sigframe size: 1776
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009f7ff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009f800-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000004ffdcfff] usable
[    0.000000] BIOS-e820: [mem 0x000000004ffdd000-0x000000004fffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.8 present.
[    0.000000] DMI: Red Hat KVM, BIOS 1.16.0-3.module_el8.7.0+1218+f626c2ff 04/01/2014
[    0.000000] Hypervisor detected: KVM
[    0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[    0.000000] kvm-clock: using sched offset of 598333679 cycles
[    0.000000] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[    0.000000] tsc: Detected 2304.000 MHz processor
[    0.000000] last_pfn = 0x4ffdd max_arch_pfn = 0x400000000
[    0.000000] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT  
[    0.000000] found SMP MP-table at [mem 0x000f5b50-0x000f5b5f]
[    0.000000] RAMDISK: [mem 0x4fab1000-0x4ffcffff]
[    0.000000] ACPI: Early table checksum verification disabled
[    0.000000] ACPI: RSDP 0x00000000000F5930 000014 (v00 BOCHS )
[    0.000000] ACPI: RSDT 0x000000004FFE17D1 000030 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: FACP 0x000000004FFE16BD 000074 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: DSDT 0x000000004FFE0040 00167D (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: FACS 0x000000004FFE0000 000040
[    0.000000] ACPI: APIC 0x000000004FFE1731 000078 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: WAET 0x000000004FFE17A9 000028 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: Reserving FACP table memory at [mem 0x4ffe16bd-0x4ffe1730]
[    0.000000] ACPI: Reserving DSDT table memory at [mem 0x4ffe0040-0x4ffe16bc]
[    0.000000] ACPI: Reserving FACS table memory at [mem 0x4ffe0000-0x4ffe003f]
[    0.000000] ACPI: Reserving APIC table memory at [mem 0x4ffe1731-0x4ffe17a8]
[    0.000000] ACPI: Reserving WAET table memory at [mem 0x4ffe17a9-0x4ffe17d0]
[    0.000000] No NUMA configuration found
[    0.000000] Faking a node at [mem 0x0000000000000000-0x000000004ffdcfff]
[    0.000000] NODE_DATA(0) allocated [mem 0x4fa86000-0x4fab0fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000000]   DMA32    [mem 0x0000000001000000-0x000000004ffdcfff]
[    0.000000]   Normal   empty
[    0.000000]   Device   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000001000-0x000000000009efff]
[    0.000000]   node   0: [mem 0x0000000000100000-0x000000004ffdcfff]
[    0.000000] Zeroed struct page in unavailable ranges: 133 pages
[    0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000004ffdcfff]
[    0.000000] ACPI: PM-Timer IO Port: 0x608
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[    0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] TSC deadline timer available
[    0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[    0.000000] kvm-guest: KVM setup pv remote TLB flush
[    0.000000] kvm-guest: setup PV sched yield
[    0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[    0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[    0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
[    0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[    0.000000] [mem 0x50000000-0xfeffbfff] available for PCI devices
[    0.000000] Booting paravirtualized kernel on KVM
[    0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[    0.000000] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
[    0.000000] percpu: Embedded 55 pages/cpu s188416 r8192 d28672 u2097152
[    0.000000] kvm-guest: PV spinlocks disabled, single CPU
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 322269
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=UUID=777da459-83b9-418a-87e9-941c4e62a11b selinux=0 guestfs_verbose=1 TERM=xterm-256color
[    0.000000] Specific versions of hardware are certified with Red Hat Enterprise Linux 8. Please see the list of hardware certified with Red Hat Enterprise Linux 8 at https://catalog.redhat.com.
[    0.000000] cgroup: Disabling memory control group subsystem
[    0.000000] Memory: 261120K/1310188K available (12293K kernel code, 5872K rwdata, 8356K rodata, 2532K init, 14296K bss, 78068K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Kernel/User page tables isolation: enabled
[    0.000000] ftrace: allocating 40292 entries in 158 pages
[    0.000000] ftrace: allocated 158 pages with 5 groups
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: \tRCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=1.
[    0.000000] \tRude variant of Tasks RCU enabled.
[    0.000000] \tTracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 524544, nr_irqs: 256, preallocated irqs: 16
[    0.000000] random: crng done (trusting CPU's manufacturer)
[    0.001000] Console: colour *CGA 80x25
[    0.001000] printk: console [ttyS0] enabled
[    0.001000] ACPI: Core revision 20210930
[    0.001000] APIC: Switch to symmetric I/O mode setup
[    0.001000] x2apic enabled
[    0.001000] Switched APIC routing to physical x2apic.
[    0.001000] kvm-guest: setup PV IPIs
[    0.001000] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x2135f7c97c8, max_idle_ns: 440795273205 ns
[    0.001000] Calibrating delay loop (skipped) preset value.. 4608.00 BogoMIPS (lpj=2304000)
[    0.001000] pid_max: default: 32768 minimum: 301
[    0.001000] LSM: Security Framework initializing
[    0.001000] Yama: becoming mindful.
[    0.001000] LSM support for eBPF active
[    0.001000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, vmalloc)
[    0.001000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, vmalloc)
[    0.001000] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, vmalloc)
[    0.001000] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, vmalloc)
[    0.001000] x86/cpu: User Mode Instruction Prevention (UMIP) activated
[    0.001000] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.001000] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[    0.001000] FEATURE SPEC_CTRL Not Present
[    0.001000] FEATURE IBPB_SUPPORT Not Present
[    0.001000] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.001000] Spectre V2 : Mitigation: Retpolines
[    0.001000] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.001000] Speculative Store Bypass: Vulnerable
[    0.001000] SRBDS: Unknown: Dependent on hypervisor status
[    0.001000] MDS: Vulnerable: Clear CPU buffers attempted, no microcode
[    0.001000] Freeing SMP alternatives memory: 36K
[    0.001000] smpboot: CPU0: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (family: 0x6, model: 0x9e, stepping: 0xd)
[    0.001160] Performance Events: unsupported p6 CPU model 158 no PMU driver, software events only.
[    0.002086] rcu: Hierarchical SRCU implementation.
[    0.003528] NMI watchdog: Perf NMI watchdog permanently disabled
[    0.004063] smp: Bringing up secondary CPUs ...
[    0.005006] smp: Brought up 1 node, 1 CPU
[    0.006006] smpboot: Max logical packages: 1
[    0.007006] smpboot: Total of 1 processors activated (4608.00 BogoMIPS)
[    0.014458] node 0 deferred pages initialised in 6ms
[    0.015161] devtmpfs: initialized
[    0.016042] x86/mm: Memory block size: 128MB
[    0.017295] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.018011] futex hash table entries: 256 (order: 2, 16384 bytes, vmalloc)
[    0.019053] pinctrl core: initialized pinctrl subsystem
[    0.020189] NET: Registered protocol family 16
[    0.021097] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.022018] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.023021] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.024036] audit: initializing netlink subsys (disabled)
[    0.025161] cpuidle: using governor menu
[    0.026109] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.027242] PCI: Using configuration type 1 for base access
[    0.028945] audit: type=2000 audit(1669859339.455:1): state=initialized audit_enabled=0 res=1
[    0.029090] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.030111] cryptd: max_cpu_qlen set to 1000
[    0.031198] ACPI: Added _OSI(Module Device)
[    0.032008] ACPI: Added _OSI(Processor Device)
[    0.033007] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.034006] ACPI: Added _OSI(Processor Aggregator Device)
[    0.035006] ACPI: Added _OSI(Linux-Dell-Video)
[    0.036005] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.037007] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[    0.038451] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    0.039981] ACPI: Interpreter enabled
[    0.040029] ACPI: PM: (supports S0 S5)
[    0.041005] ACPI: Using IOAPIC for interrupt routing
[    0.042020] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.043132] ACPI: Enabled 2 GPEs in block 00 to 0F
[    0.046513] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[    0.047010] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI EDR HPX-Type3]
[    0.048033] acpi PNP0A03:00: _OSC: not requesting OS control; OS requires [ExtendedConfig ASPM ClockPM MSI]
[    0.049034] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
[    0.050237] acpiphp: Slot [2] registered
[    0.051041] acpiphp: Slot [3] registered
[    0.052038] acpiphp: Slot [4] registered
[    0.053042] acpiphp: Slot [5] registered
[    0.054040] acpiphp: Slot [6] registered
[    0.055047] acpiphp: Slot [7] registered
[    0.056047] acpiphp: Slot [8] registered
[    0.057045] acpiphp: Slot [9] registered
[    0.058053] acpiphp: Slot [10] registered
[    0.059058] acpiphp: Slot [11] registered
[    0.060042] acpiphp: Slot [12] registered
[    0.061038] acpiphp: Slot [13] registered
[    0.062038] acpiphp: Slot [14] registered
[    0.063038] acpiphp: Slot [15] registered
[    0.064040] acpiphp: Slot [16] registered
[    0.065043] acpiphp: Slot [17] registered
[    0.066040] acpiphp: Slot [18] registered
[    0.067038] acpiphp: Slot [19] registered
[    0.068037] acpiphp: Slot [20] registered
[    0.069127] acpiphp: Slot [21] registered
[    0.070068] acpiphp: Slot [22] registered
[    0.071055] acpiphp: Slot [23] registered
[    0.072038] acpiphp: Slot [24] registered
[    0.073040] acpiphp: Slot [25] registered
[    0.074038] acpiphp: Slot [26] registered
[    0.075045] acpiphp: Slot [27] registered
[    0.076043] acpiphp: Slot [28] registered
[    0.077051] acpiphp: Slot [29] registered
[    0.078042] acpiphp: Slot [30] registered
[    0.079050] acpiphp: Slot [31] registered
[    0.080040] PCI host bridge to bus 0000:00
[    0.081007] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7 window]
[    0.082005] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff window]
[    0.083005] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[    0.084007] pci_bus 0000:00: root bus resource [mem 0x50000000-0xfebfffff window]
[    0.085011] pci_bus 0000:00: root bus resource [mem 0x100000000-0x17fffffff window]
[    0.086009] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.087138] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000
[    0.090391] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100
[    0.093006] pci 0000:00:01.1: [8086:7010] type 00 class 0x010180
[    0.096350] pci 0000:00:01.1: reg 0x20: [io  0xc0a0-0xc0af]
[    0.098807] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
[    0.099047] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io  0x03f6]
[    0.100006] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
[    0.101005] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io  0x0376]
[    0.102596] pci 0000:00:01.3: [8086:7113] type 00 class 0x068000
[    0.104452] pci 0000:00:01.3: quirk: [io  0x0600-0x063f] claimed by PIIX4 ACPI
[    0.105032] pci 0000:00:01.3: quirk: [io  0x0700-0x070f] claimed by PIIX4 SMB
[    0.106960] pci 0000:00:02.0: [1af4:1005] type 00 class 0x00ff00
[    0.108000] pci 0000:00:02.0: reg 0x10: [io  0xc080-0xc09f]
[    0.110693] pci 0000:00:02.0: reg 0x20: [mem 0xfebf0000-0xfebf3fff 64bit pref]
[    0.114643] pci 0000:00:03.0: [1af4:1004] type 00 class 0x010000
[    0.115972] pci 0000:00:03.0: reg 0x10: [io  0xc000-0xc03f]
[    0.116726] pci 0000:00:03.0: reg 0x14: [mem 0xfebfe000-0xfebfefff]
[    0.119439] pci 0000:00:03.0: reg 0x20: [mem 0xfebf4000-0xfebf7fff 64bit pref]
[    0.125676] pci 0000:00:04.0: [1af4:1003] type 00 class 0x078000
[    0.127028] pci 0000:00:04.0: reg 0x10: [io  0xc040-0xc07f]
[    0.129006] pci 0000:00:04.0: reg 0x14: [mem 0xfebff000-0xfebfffff]
[    0.132506] pci 0000:00:04.0: reg 0x20: [mem 0xfebf8000-0xfebfbfff 64bit pref]
[    0.140730] ACPI: PCI: Interrupt link LNKA configured for IRQ 10
[    0.141181] ACPI: PCI: Interrupt link LNKB configured for IRQ 10
[    0.142166] ACPI: PCI: Interrupt link LNKC configured for IRQ 11
[    0.143164] ACPI: PCI: Interrupt link LNKD configured for IRQ 11
[    0.144093] ACPI: PCI: Interrupt link LNKS configured for IRQ 9
[    0.145172] iommu: Default domain type: Passthrough 
[    0.146126] SCSI subsystem initialized
[    0.147027] usbcore: USB support disabled
[    0.148027] pps_core: LinuxPPS API ver. 1 registered
[    0.149011] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti>
[    0.150024] PTP clock support registered
[    0.151072] EDAC MC: Ver: 3.0.0
[    0.152429] PCI: Using ACPI for IRQ routing
[    0.153471] NetLabel: Initializing
[    0.154005] NetLabel:  domain hash size = 128
[    0.155004] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.156023] NetLabel:  unlabeled traffic allowed by default
[    0.157082] vgaarb: loaded
[    0.158125] clocksource: Switched to clocksource kvm-clock
[    0.171030] VFS: Disk quotas dquot_6.6.0
[    0.173697] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.186972] pnp: PnP ACPI init
[    0.188756] pnp: PnP ACPI: found 5 devices
[    0.196683] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.200182] pci_bus 0000:00: resource 4 [io  0x0000-0x0cf7 window]
[    0.202989] pci_bus 0000:00: resource 5 [io  0x0d00-0xffff window]
[    0.207598] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
[    0.210375] pci_bus 0000:00: resource 7 [mem 0x50000000-0xfebfffff window]
[    0.213060] pci_bus 0000:00: resource 8 [mem 0x100000000-0x17fffffff window]
[    0.215868] NET: Registered protocol family 2
[    0.217806] IP idents hash table entries: 32768 (order: 6, 262144 bytes, vmalloc)
[    0.238489] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, vmalloc)
[    0.242242] TCP established hash table entries: 16384 (order: 5, 131072 bytes, vmalloc)
[    0.246060] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, vmalloc)
[    0.249509] TCP: Hash tables configured (established 16384 bind 16384)
[    0.252504] MPTCP token hash table entries: 2048 (order: 3, 49152 bytes, vmalloc)
[    0.256061] UDP hash table entries: 1024 (order: 3, 32768 bytes, vmalloc)
[    0.276057] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, vmalloc)
[    0.279158] NET: Registered protocol family 1
[    0.281051] NET: Registered protocol family 44
[    0.287730] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[    0.290492] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[    0.292983] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[    0.302707] PCI: CLS 0 bytes, default 64
[    0.304516] Unpacking initramfs...
[    0.318919] Freeing initrd memory: 5244K
[    0.328739] ACPI: bus type thunderbolt registered
[    0.330814] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x2135f7c97c8, max_idle_ns: 440795273205 ns
[    0.335976] alg: self-tests disabled
[    0.338737] Initialise system trusted keyrings
[    0.340865] Key type blacklist registered
[    0.342669] workingset: timestamp_bits=36 max_order=19 bucket_order=0
[    0.346514] zbud: loaded
[    0.348155] pstore: using deflate compression
[    0.350079] Platform Keyring initialized
[    0.361561] NET: Registered protocol family 38
[    0.368910] Key type asymmetric registered
[    0.370909] Asymmetric key parser 'x509' registered
[    0.374223] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.390185] io scheduler mq-deadline registered
[    0.393149] io scheduler kyber registered
[    0.409978] io scheduler bfq registered
[    0.411726] atomic64_test: passed for x86-64 platform with CX8 and with SSE
[    0.420799] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[    0.423909] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[    0.426966] ACPI: Power Button [PWRF]
[    0.445509] ACPI: \_SB_.LNKB: Enabled at IRQ 10
[    0.466681] ACPI: \_SB_.LNKC: Enabled at IRQ 11
[    0.488045] ACPI: \_SB_.LNKD: Enabled at IRQ 11
[    0.492883] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.544844] 00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    0.547966] Non-volatile memory driver v1.3
[    0.553325] rdac: device handler registered
[    0.555113] hp_sw: device handler registered
[    0.560247] emc: device handler registered
[    0.561941] alua: device handler registered
[    0.571742] libphy: Fixed MDIO Bus: probed
[    0.573686] usbserial: usb_serial_init - registering generic driver failed
[    0.586704] usbserial: usb_serial_init - returning with error -19
[    0.589316] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[    0.594187] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.596207] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.598295] mousedev: PS/2 mouse device common for all mice
[    0.600627] rtc_cmos 00:04: RTC can wake from S4
[    0.603976] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
[    0.608782] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input4
[    0.612119] rtc_cmos 00:04: registered as rtc0
[    0.613928] rtc_cmos 00:04: alarms up to one day, y3k, 242 bytes nvram
[    0.616420] intel_pstate: CPU model not supported
[    0.619968] hid: raw HID events driver (C) Jiri Kosina
[    0.622347] drop_monitor: Initializing network drop monitor service
[    0.625036] Initializing XFRM netlink socket
[    0.626926] NET: Registered protocol family 10
[    0.638638] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input3
[    0.642997] Segment Routing with IPv6
[    0.646732] NET: Registered protocol family 17
[    0.654098] mpls_gso: MPLS GSO support
[    0.670844] AVX2 version of gcm_enc/dec engaged.
[    0.672903] AES CTR mode by8 optimization enabled
[    0.675290] sched_clock: Marking stable (675004869, 0)->(2140142599, -1465137730)
[    0.678403] registered taskstats version 1
[    0.680061] Loading compiled-in X.509 certificates
[    0.682396] Loaded X.509 cert 'CentOS kernel signing key: 3f2f79f6b396b0f6e9886254b85e2a8a13e2bef2'
[    0.686834] Loaded X.509 cert 'CentOS Linux Driver update signing key: 7f421ee0ab69461574bb358861dbe77762a4201b'
[    0.702870] Loaded X.509 cert 'CentOS Linux kpatch signing key: ea0413152cde1d98ebdca3fe6f0230904c9ef717'
[    0.709450] zswap: loaded using pool lzo/zbud
[    0.711403] page_owner is disabled
[    0.712900] Key type big_key registered
[    0.714602] Key type encrypted registered
[    0.716194] ima: No TPM chip found, activating TPM-bypass!
[    0.718390] ima: Allocated hash algorithm: sha256
[    0.720533] ima: No architecture policies found
[    0.722398] evm: Initialising EVM extended attributes:
[    0.724839] evm: security.selinux
[    0.726194] evm: security.ima
[    0.727517] evm: security.capability
[    0.728918] evm: HMAC attrs: 0x1
[    0.730753] rtc_cmos 00:04: setting system clock to 2022-12-01 01:49:00 UTC (1669859340)
[    0.735551] Freeing unused decrypted memory: 2036K
[    0.753432] Freeing unused kernel image (initmem) memory: 2532K
[    0.755870] Write protecting the kernel read-only data: 24576k
[    0.771417] Freeing unused kernel image (text/rodata gap) memory: 2012K
[    0.775391] Freeing unused kernel image (rodata/data gap) memory: 1884K
[    0.778179] general protection fault: 0000 [#1] SMP PTI
[    0.780164] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.18.0-408.el8.x86_64 #1
[    0.782977] Hardware name: Red Hat KVM, BIOS 1.16.0-3.module_el8.7.0+1218+f626c2ff 04/01/2014
[    0.786527] RIP: 0010:native_write_cr4+0x2/0x60
[    0.788227] Code: 0f 1f 84 00 00 00 00 00 48 8b 05 11 2e 7f 01 48 8b 40 40 48 85 c0 74 0c 48 c7 c7 00 c4 fa af e9 24 86 bc 00 c3 0f 1f 00 31 f6 <0f> 22 e7 0f 1f 44 00 00 48 8b 05 9f 0a 17 01 48 89 fa 81 e2 00 08
[    0.807454] RSP: 0000:ffffb1e500327d00 EFLAGS: 00010046
[    0.819943] RAX: 0000000000370ff0 RBX: ffff90e0c1881200 RCX: 0000000000000000
[    0.837054] RDX: 00006f1ec0000000 RSI: 0000000000000000 RDI: 0000000000370ef0
[    0.840095] RBP: ffffffffafe62960 R08: 0000000000000000 R09: 0000000000000003
[    0.843171] R10: ffffb1e500327d08 R11: 00000000000001ff R12: 0000000000000046
[    0.846248] R13: 0000000000000000 R14: ffffffffafe62960 R15: 0000000000000000
[    0.849144] FS:  0000000000000000(0000) GS:ffff90e10e400000(0000) knlGS:0000000000000000
[    0.852666] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.855202] CR2: 0000000000000000 CR3: 000000003a82a002 CR4: 0000000000370ff0
[    0.858166] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    0.883778] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    0.891287] Call Trace:
[    0.892240]  switch_mm_irqs_off+0x2f3/0x500
[    0.894011]  switch_mm+0x1c/0x30
[    0.895278]  begin_new_exec+0x1ef/0x8e1
[    0.897057]  load_elf_binary+0x346/0x1330
[    0.905792]  search_binary_handler+0x119/0x3a0
[    0.907897]  do_execveat_common.isra.36+0x5b3/0x980
[    0.909980]  ? rest_init+0xaa/0xaa
[    0.911901]  do_execve+0x1f/0x30
[    0.913306]  kernel_init+0x5f/0xfa
[    0.914609]  ret_from_fork+0x35/0x40
[    0.915951] Modules linked in:
[    0.917108] ---[ end trace 1bab506e475690e9 ]---
[    0.918968] RIP: 0010:native_write_cr4+0x2/0x60
[    0.920866] Code: 0f 1f 84 00 00 00 00 00 48 8b 05 11 2e 7f 01 48 8b 40 40 48 85 c0 74 0c 48 c7 c7 00 c4 fa af e9 24 86 bc 00 c3 0f 1f 00 31 f6 <0f> 22 e7 0f 1f 44 00 00 48 8b 05 9f 0a 17 01 48 89 fa 81 e2 00 08
[    0.938018] RSP: 0000:ffffb1e500327d00 EFLAGS: 00010046
[    0.940280] RAX: 0000000000370ff0 RBX: ffff90e0c1881200 RCX: 0000000000000000
[    0.943944] RDX: 00006f1ec0000000 RSI: 0000000000000000 RDI: 0000000000370ef0
[    0.946762] RBP: ffffffffafe62960 R08: 0000000000000000 R09: 0000000000000003
[    0.949935] R10: ffffb1e500327d08 R11: 00000000000001ff R12: 0000000000000046
[    0.952840] R13: 0000000000000000 R14: ffffffffafe62960 R15: 0000000000000000
[    0.955986] FS:  0000000000000000(0000) GS:ffff90e10e400000(0000) knlGS:0000000000000000
[    0.973161] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.975761] CR2: 0000000000000000 CR3: 000000003a82a002 CR4: 0000000000370ff0
[    0.978573] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    0.981668] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    0.984502] Kernel panic - not syncing: Fatal exception
[    0.987154] Kernel Offset: 0x2d200000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    0.991541] Rebooting in 1 seconds..
libguestfs: error: appliance closed the connection unexpectedly, see earlier error messages
libguestfs: child_cleanup: 0x557ceec44280: child process died
libguestfs: sending SIGTERM to process 108038
libguestfs: qemu maxrss 193848K
libguestfs: error: guestfs_launch failed, see earlier error messages
libguestfs: trace: launch = -1 (error)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x557ceec44280 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsMPUvIF
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsvh0N3Q

Comment 1 Richard W.M. Jones 2022-12-01 08:39:04 UTC
I don't know what causes this, but you might try upgrading or
downgrading the kernel to see if it goes away.

Comment 2 Richard W.M. Jones 2022-12-01 08:40:24 UTC
& also make sure you have matching versions of everything, qemu, seabios,
kernel, etc. from a single minor release of CentOS, and that you're not
trying to mix and match packages from different releases.

Comment 5 Rafael Aquini 2023-02-16 20:07:31 UTC
Hello, 

I'd like to ask if you tried the suggestions made by Richard,
on comment #1 and comment #2, and the outcome of them.

Also, I'd like to clarify with you the fact that you mentioned
booting a CentOS-7 guest in the reproducer steps (virt-df -a 
CentOS-7-x86_64-GenericCloud.qcow2 -h); but the guest booting messages
in the console printout tells it's actually booting up a CentOS-Stream-8
kernel. As we don't know the contents of that guest image, we cannot
support it, so please try to reproduce the issue -- if possible --
with a plain CentOS-7, or CentOS-Stream-8 guest.

Thanks in advance!

Comment 6 Rafael Aquini 2023-03-23 23:58:05 UTC
It's been over 3 months since data request in comment #2 and over a month since last attempt to contact to request more data on the issue.
Closing this ticket due to inactivity