Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-15897

Linux kernel panic=1 option hangs under qemu

    • kernel-5.14.0-415.el9
    • Yes
    • Low
    • ZStream, Regression
    • sst_virtualization_hwe
    • ssg_virtualization
    • 19
    • 23
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • Approved Blocker
    • x86_64
    • None

      Run this command. You will need to adjust the path to the kernel:

      /usr/libexec/qemu-kvm -no-user-config -nodefaults -display none \
          -machine accel=kvm:tcg,graphics=off -cpu max,la57=off -m 1024 \
          -no-reboot -kernel /boot/vmlinuz-5.14.0-349.el9.x86_64 \
          -serial file:/dev/stdout \
          -append 'panic=1 console=ttyS0 printk.time=1'
      

      It will hang at:

      [    0.604230] Call Trace:
      [    0.604235]  <TASK>
      [    0.604237]  dump_stack_lvl+0x34/0x48
      [    0.604242]  panic+0xea/0x2e4
      [    0.604246]  mount_block_root+0x28c/0x29f
      [    0.604251]  prepare_namespace+0x13b/0x16a
      [    0.604254]  kernel_init_freeable+0x17d/0x1a2
      [    0.604257]  ? __pfx_kernel_init+0x10/0x10
      [    0.604261]  kernel_init+0x16/0x130
      [    0.604263]  ret_from_fork+0x29/0x50
      [    0.604268]  </TASK>
      

      What's supposed to happen is the VM reboots (causing qemu to exit because of the -no-reboot option):

      [    2.668471] tsc: Refined TSC clocksource calibration: 2207.933 MHz
      [    2.670026] Kernel Offset: 0x5800000 from 0xffffffff81000000 (relocation ran)
      [    2.670891] Rebooting in 1 seconds..
      

      Note this bug is somewhat random ...

            rh-ee-debarbos Derek Barbosa
            rhn-eng-rjones Richard Jones
            virt-maint virt-maint
            Yiqian Wei Yiqian Wei
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: