FS#75178 - Unable to boot on Hyper-V with kernel >= 5.18

Attached to Project: Arch Linux
Opened by Jeff (jefferai) - Tuesday, 28 June 2022, 14:17 GMT
Last edited by Toolybird (Toolybird) - Saturday, 10 June 2023, 03:21 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

I have a Hyper-V VM and Arch running with kernel 5.17.9. On upgrade to any 5.18 kernel so far (including 5.18.7) I get a totally black screen after the bootloader.

I have no relevant output in `journalctl -b -1` -- it shows my previous 5.17.9 boot prior to the upgrade. My kernel command line is `rw loglevel=7 debug` which normally shows a lot of output during boot -- I get absolutely nothing in the 5.18 series.

Originally I had thought that this was related to they `hyperv` package lagging behind (kernel 5.18 and hyperv 5.17) but once hyperv was upgraded to 5.18 it still didn't work.

I also tried switching from grub to systemd-boot in the hopes that might give it a better chance to capture output for journalctl -- no dice.

I don't really know how to debug this since I can't figure out a way to get any output.
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 10 June 2023, 03:21 GMT
Reason for closing:  Upstream
Additional comments about closing:  Someone needs to add the ibt=off workaround to the Arch Wiki page on Hyper-V
Comment by Toolybird (Toolybird) - Tuesday, 02 August 2022, 06:13 GMT
> I don't really know how to debug this since I can't figure out a way to get any output

The linux serial console [1] is one way to capture early boot output. I dunno if this is something Hyper-V supports (if it doesn't, it should!). Let us know how you get on.

[1] https://wiki.archlinux.org/title/working_with_the_serial_console
Comment by Jeff (jefferai) - Thursday, 04 August 2022, 14:45 GMT
Thanks for the tip! I was able to get output from the serial console showing a kernel bug with a stack trace, pasted below:

[ 0.000000] Linux version 5.18.16-arch1-1 (linux@archlinux) (gcc (GCC) 12.1.1 20220730, GNU ld (GNU Binutils) 2.38) #1 SMP PREEMPT_DYNAMIC Wed, 03 Aug 2022 11:25:04 +0000
[ 0.000000] Command line: rw loglevel=7 debug bgrt_disable root=LABEL=ROOT console=tty0 console=ttyS0,115200
[ 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 'compacted' format.
[ 0.000000] signal: max sigframe size: 1776
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000000c0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000004679fff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000467a000-0x000000000467bfff] reserved
[ 0.000000] BIOS-e820: [mem 0x000000000467c000-0x000000003ed16fff] usable
[ 0.000000] BIOS-e820: [mem 0x000000003ed17000-0x000000003ed18fff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x000000003ed19000-0x000000003ee72fff] usable
[ 0.000000] BIOS-e820: [mem 0x000000003ee73000-0x000000003ee7afff] ACPI NVS
[ 0.000000] BIOS-e820: [mem 0x000000003ee7b000-0x000000003ee99fff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x000000003ee9a000-0x000000003eef1fff] usable
[ 0.000000] BIOS-e820: [mem 0x000000003eef2000-0x000000003ef1afff] reserved
[ 0.000000] BIOS-e820: [mem 0x000000003ef1b000-0x000000003ff9afff] usable
[ 0.000000] BIOS-e820: [mem 0x000000003ff9b000-0x000000003fff2fff] reserved
[ 0.000000] BIOS-e820: [mem 0x000000003fff3000-0x000000003fffafff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x000000003fffb000-0x000000003fffefff] ACPI NVS
[ 0.000000] BIOS-e820: [mem 0x000000003ffff000-0x000000003fffffff] usable
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] efi: EFI v2.70 by Microsoft
[ 0.000000] efi: ACPI=0x3fffa000 ACPI 2.0=0x3fffa014 SMBIOS=0x3ffd8000 SMBIOS 3.0=0x3ffd6000 TPMFinalLog=0x3ee73000 MEMATTR=0x3f29d798 RNG=0x3ffda818 TPMEventLog=0x3e44f018
[ 0.000000] efi: seeding entropy pool
[ 0.000000] random: crng init done
[ 0.000000] SMBIOS 3.1.0 present.
[ 0.000000] DMI: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v4.1 05/05/2021
[ 0.000000] Hypervisor detected: Microsoft Hyper-V
[ 0.000000] Hyper-V: privilege flags low 0xae7f, high 0x3b8030, hints 0xa0e24, misc 0xe0bed7b2
[ 0.000000] Hyper-V: Host Build 10.0.22000.795-0-0
[ 0.000000] Hyper-V: Nested features: 0x0
[ 0.000000] Hyper-V: LAPIC Timer Frequency: 0xa2c2a
[ 0.000000] Hyper-V: Using hypercall for remote TLB flush
[ 0.000000] clocksource: hyperv_clocksource_tsc_page: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[ 0.000001] tsc: Detected 3187.200 MHz processor
[ 0.000007] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[ 0.000009] e820: remove [mem 0x000a0000-0x000fffff] usable
[ 0.000013] last_pfn = 0x40000 max_arch_pfn = 0x400000000
[ 0.000029] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT
[ 0.005988] Using GB pages for direct mapping
[ 0.006165] Secure boot disabled
[ 0.006165] RAMDISK: [mem 0x3e453000-0x3ecf0fff]
[ 0.006168] ACPI: Early table checksum verification disabled
[ 0.006170] ACPI: RSDP 0x000000003FFFA014 000024 (v02 VRTUAL)
[ 0.006173] ACPI: XSDT 0x000000003FFF90E8 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006176] ACPI: FACP 0x000000003FFF8000 000114 (v06 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006180] ACPI: DSDT 0x000000003EE7B000 01E184 (v02 MSFTVM DSDT01 00000001 MSFT 05000000)
[ 0.006182] ACPI: FACS 0x000000003FFFE000 000040
[ 0.006183] ACPI: OEM0 0x000000003FFF7000 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006185] ACPI: WAET 0x000000003FFF6000 000028 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006187] ACPI: APIC 0x000000003FFF5000 0000A8 (v04 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006189] ACPI: SRAT 0x000000003FFF4000 000370 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006190] ACPI: TPM2 0x000000003FFF3000 000034 (v03 VRTUAL VTPM 00000001 MSFT 00000001)
[ 0.006192] ACPI: BGRT 0x000000003ED18000 000038 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006194] ACPI: FPDT 0x000000003ED17000 000034 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006195] ACPI: Reserving FACP table memory at [mem 0x3fff8000-0x3fff8113]
[ 0.006196] ACPI: Reserving DSDT table memory at [mem 0x3ee7b000-0x3ee99183]
[ 0.006197] ACPI: Reserving FACS table memory at [mem 0x3fffe000-0x3fffe03f]
[ 0.006197] ACPI: Reserving OEM0 table memory at [mem 0x3fff7000-0x3fff7063]
[ 0.006198] ACPI: Reserving WAET table memory at [mem 0x3fff6000-0x3fff6027]
[ 0.006199] ACPI: Reserving APIC table memory at [mem 0x3fff5000-0x3fff50a7]
[ 0.006199] ACPI: Reserving SRAT table memory at [mem 0x3fff4000-0x3fff436f]
[ 0.006200] ACPI: Reserving TPM2 table memory at [mem 0x3fff3000-0x3fff3033]
[ 0.006200] ACPI: Reserving BGRT table memory at [mem 0x3ed18000-0x3ed18037]
[ 0.006201] ACPI: Reserving FPDT table memory at [mem 0x3ed17000-0x3ed17033]
[ 0.006214] SRAT: PXM 0 -> APIC 0x00 -> Node 0
[ 0.006215] SRAT: PXM 0 -> APIC 0x01 -> Node 0
[ 0.006215] SRAT: PXM 0 -> APIC 0x02 -> Node 0
[ 0.006216] SRAT: PXM 0 -> APIC 0x03 -> Node 0
[ 0.006216] SRAT: PXM 0 -> APIC 0x04 -> Node 0
[ 0.006217] SRAT: PXM 0 -> APIC 0x05 -> Node 0
[ 0.006217] SRAT: PXM 0 -> APIC 0x06 -> Node 0
[ 0.006218] SRAT: PXM 0 -> APIC 0x07 -> Node 0
[ 0.006218] SRAT: PXM 0 -> APIC 0x08 -> Node 0
[ 0.006219] SRAT: PXM 0 -> APIC 0x09 -> Node 0
[ 0.006219] SRAT: PXM 0 -> APIC 0x0a -> Node 0
[ 0.006220] SRAT: PXM 0 -> APIC 0x0b -> Node 0
[ 0.006221] ACPI: SRAT: Node 0 PXM 0 [mem 0x00000000-0x3fffffff] hotplug
[ 0.006222] ACPI: SRAT: Node 0 PXM 0 [mem 0x40000000-0xf7ffffff] hotplug
[ 0.006223] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000-0xfdfffffff] hotplug
[ 0.006224] ACPI: SRAT: Node 0 PXM 0 [mem 0x1000000000-0xffffffffff] hotplug
[ 0.006224] ACPI: SRAT: Node 0 PXM 0 [mem 0x10000000000-0x1ffffffffff] hotplug
[ 0.006225] ACPI: SRAT: Node 0 PXM 0 [mem 0x20000000000-0x3ffffffffff] hotplug
[ 0.006226] ACPI: SRAT: Node 0 PXM 0 [mem 0x40000000000-0x7ffffffffff] hotplug
[ 0.006227] ACPI: SRAT: Node 0 PXM 0 [mem 0x80000000000-0xfffffffffff] hotplug
[ 0.006227] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000000-0x1fffffffffff] hotplug
[ 0.006228] ACPI: SRAT: Node 0 PXM 0 [mem 0x200000000000-0x3fffffffffff] hotplug
[ 0.006229] ACPI: SRAT: Node 0 PXM 0 [mem 0x400000000000-0x7fffffffffff] hotplug
[ 0.006229] ACPI: SRAT: Node 0 PXM 0 [mem 0x800000000000-0xffffffffffff] hotplug
[ 0.006230] ACPI: SRAT: Node 0 PXM 0 [mem 0x1000000000000-0x1ffffffffffff] hotplug
[ 0.006231] ACPI: SRAT: Node 0 PXM 0 [mem 0x2000000000000-0x3ffffffffffff] hotplug
[ 0.006231] ACPI: SRAT: Node 0 PXM 0 [mem 0x4000000000000-0x7ffffffffffff] hotplug
[ 0.006232] ACPI: SRAT: Node 0 PXM 0 [mem 0x8000000000000-0xfffffffffffff] hotplug
[ 0.006235] NODE_DATA(0) allocated [mem 0x3fe18000-0x3fe1bfff]
[ 0.006243] Zone ranges:
[ 0.006244] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.006245] DMA32 [mem 0x0000000001000000-0x000000003fffffff]
[ 0.006246] Normal empty
[ 0.006247] Device empty
[ 0.006248] Movable zone start for each node
[ 0.006248] Early memory node ranges
[ 0.006249] node 0: [mem 0x0000000000001000-0x000000000009ffff]
[ 0.006249] node 0: [mem 0x0000000000100000-0x0000000004679fff]
[ 0.006250] node 0: [mem 0x000000000467c000-0x000000003ed16fff]
[ 0.006251] node 0: [mem 0x000000003ed19000-0x000000003ee72fff]
[ 0.006251] node 0: [mem 0x000000003ee9a000-0x000000003eef1fff]
[ 0.006252] node 0: [mem 0x000000003ef1b000-0x000000003ff9afff]
[ 0.006252] node 0: [mem 0x000000003ffff000-0x000000003fffffff]
[ 0.006253] Initmem setup node 0 [mem 0x0000000000001000-0x000000003fffffff]
[ 0.006255] On node 0, zone DMA: 1 pages in unavailable ranges
[ 0.006268] On node 0, zone DMA: 96 pages in unavailable ranges
[ 0.007082] On node 0, zone DMA32: 2 pages in unavailable ranges
[ 0.007084] On node 0, zone DMA32: 2 pages in unavailable ranges
[ 0.007085] On node 0, zone DMA32: 39 pages in unavailable ranges
[ 0.007101] On node 0, zone DMA32: 41 pages in unavailable ranges
[ 0.007102] On node 0, zone DMA32: 100 pages in unavailable ranges
[ 0.007122] ACPI: PM-Timer IO Port: 0x408
[ 0.007127] ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
[ 0.007237] IOAPIC[0]: apic_id 12, version 17, address 0xfec00000, GSI 0-23
[ 0.007239] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.007242] ACPI: Using ACPI (MADT) for SMP configuration information
[ 0.007243] TSC deadline timer available
[ 0.007244] smpboot: Allowing 12 CPUs, 0 hotplug CPUs
[ 0.007252] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.007253] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000bffff]
[ 0.007254] PM: hibernation: Registered nosave memory: [mem 0x000c0000-0x000fffff]
[ 0.007255] PM: hibernation: Registered nosave memory: [mem 0x0467a000-0x0467bfff]
[ 0.007256] PM: hibernation: Registered nosave memory: [mem 0x3ed17000-0x3ed18fff]
[ 0.007257] PM: hibernation: Registered nosave memory: [mem 0x3ee73000-0x3ee7afff]
[ 0.007257] PM: hibernation: Registered nosave memory: [mem 0x3ee7b000-0x3ee99fff]
[ 0.007258] PM: hibernation: Registered nosave memory: [mem 0x3eef2000-0x3ef1afff]
[ 0.007259] PM: hibernation: Registered nosave memory: [mem 0x3ff9b000-0x3fff2fff]
[ 0.007260] PM: hibernation: Registered nosave memory: [mem 0x3fff3000-0x3fffafff]
[ 0.007260] PM: hibernation: Registered nosave memory: [mem 0x3fffb000-0x3fffefff]
[ 0.007261] [mem 0x40000000-0xffffffff] available for PCI devices
[ 0.007262] Booting paravirtualized kernel on Hyper-V
[ 0.007263] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370452778343963 ns
[ 0.010346] setup_percpu: NR_CPUS:320 nr_cpumask_bits:320 nr_cpu_ids:12 nr_node_ids:1
[ 0.010630] percpu: Embedded 63 pages/cpu s221184 r8192 d28672 u262144
[ 0.010633] pcpu-alloc: s221184 r8192 d28672 u262144 alloc=1*2097152
[ 0.010635] pcpu-alloc: [0] 00 01 02 03 04 05 06 07 [0] 08 09 10 11 -- -- -- --
[ 0.010647] Hyper-V: PV spinlocks enabled
[ 0.010649] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.010651] Fallback order for Node 0: 0
[ 0.010653] Built 1 zonelists, mobility grouping on. Total pages: 256286
[ 0.010653] Policy zone: DMA32
[ 0.010654] Kernel command line: rw loglevel=7 debug bgrt_disable root=LABEL=ROOT console=tty0 console=ttyS0,115200
[ 0.010742] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.010766] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.010921] mem auto-init: stack:all(zero), heap alloc:on, heap free:off
[ 0.018988] Memory: 896256K/1047452K available (14343K kernel code, 2099K rwdata, 11012K rodata, 1868K init, 3852K bss, 150936K reserved, 0K cma-reserved)
[ 0.019047] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=12, Nodes=1
[ 0.019053] ftrace: allocating 44940 entries in 176 pages
[ 0.022521] ftrace: allocated 176 pages with 3 groups
[ 0.022558] Dynamic Preempt: full
[ 0.022575] rcu: Preemptible hierarchical RCU implementation.
[ 0.022576] rcu: RCU restricting CPUs from NR_CPUS=320 to nr_cpu_ids=12.
[ 0.022576] rcu: RCU priority boosting: priority 1 delay 500 ms.
[ 0.022577] Trampoline variant of Tasks RCU enabled.
[ 0.022577] Rude variant of Tasks RCU enabled.
[ 0.022578] Tracing variant of Tasks RCU enabled.
[ 0.022579] rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.
[ 0.022579] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=12
[ 0.024525] Using NULL legacy PIC
[ 0.024526] NR_IRQS: 20736, nr_irqs: 520, preallocated irqs: 0
[ 0.024736] kfence: initialized - using 2097152 bytes for 255 objects at 0x(____ptrval____)-0x(____ptrval____)
[ 0.024758] Console: colour dummy device 80x25
[ 0.024851] printk: console [tty0] enabled
[ 0.300690] printk: console [ttyS0] enabled
[ 0.301552] ACPI: Core revision 20211217
[ 0.302464] Failed to register legacy timer interrupt
[ 0.303530] APIC: Switch to symmetric I/O mode setup
[ 0.305464] x2apic enabled
[ 0.306768] Switched APIC routing to physical x2apic.
[ 0.307801] Hyper-V: enabling crash_kexec_post_notifiers
[ 0.308880] Hyper-V: Using IPI hypercalls
[ 0.309749] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x2df10e7656b, max_idle_ns: 440795364873 ns
[ 0.312001] Calibrating delay loop (skipped), value calculated using timer frequency.. 6376.00 BogoMIPS (lpj=10624000)
[ 0.314141] pid_max: default: 32768 minimum: 301
[ 0.315332] LSM: Security Framework initializing
[ 0.315332] landlock: Up and running.
[ 0.315332] Yama: becoming mindful.
[ 0.315332] LSM support for eBPF active
[ 0.315332] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.315332] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.315332] x86/cpu: User Mode Instruction Prevention (UMIP) activated
[ 0.315332] CET detected: Indirect Branch Tracking enabled
[ 0.315332] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.315332] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[ 0.315332] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[ 0.315332] Spectre V2 : Mitigation: Enhanced IBRS
[ 0.315332] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[ 0.315332] RETBleed: Mitigation: Enhanced IBRS
[ 0.315332] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[ 0.315332] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl
[ 0.315332] Freeing SMP alternatives memory: 36K
[ 0.315332] smpboot: CPU0: 12th Gen Intel(R) Core(TM) i9-12900K (family: 0x6, model: 0x97, stepping: 0x2)
[ 0.315332] cblist_init_generic: Setting adjustable number of callback queues.
[ 0.315340] cblist_init_generic: Setting shift to 4 and lim to 1.
[ 0.317173] cblist_init_generic: Setting shift to 4 and lim to 1.
[ 0.318421] cblist_init_generic: Setting shift to 4 and lim to 1.
[ 0.318698] Performance Events: unsupported p6 CPU model 151 no PMU driver, software events only.
[ 0.320571] rcu: Hierarchical SRCU implementation.
[ 0.321852] NMI watchdog: Perf NMI watchdog permanently disabled
[ 0.322073] smp: Bringing up secondary CPUs ...
[ 0.323043] x86: Booting SMP configuration:
[ 0.324062] .... node #0, CPUs: #1
[ 0.324364] traps: Missing ENDBR: 0xffff9b14c0019000
[ 0.324364] ------------[ cut here ]------------
[ 0.325037] kernel BUG at arch/x86/kernel/traps.c:252!
[ 0.325332] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
[ 0.325332] CPU: 1 PID: 22 Comm: cpuhp/1 Not tainted 5.18.16-arch1-1 #1 dd4fdd19f9b9db73fa00a1e8bfc0950337edf3ef
[ 0.325332] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v4.1 05/05/2021
[ 0.325332] RIP: 0010:exc_control_protection+0xc2/0xd0
[ 0.325332] Code: 8b 93 80 00 00 00 be f9 00 00 00 48 c7 c7 4b ed 46 84 e8 e1 8d 4d ff e9 72 ff ff ff 48 c7 c7 32 ed 46 84 e8 2b 24 fb ff 0f 0b <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 66 0f 1f 00 55 53 48 89
[ 0.325332] RSP: 0000:ffff9b14c0143c38 EFLAGS: 00010002
[ 0.325332] RAX: 0000000000000028 RBX: ffff9b14c0143c58 RCX: c0000000ffffefff
[ 0.325332] RDX: 0000000000000000 RSI: 00000000ffffefff RDI: 0000000000000001
[ 0.325332] RBP: 0000000000000003 R08: 0000000000000000 R09: ffff9b14c0143a58
[ 0.325332] R10: 0000000000000003 R11: ffffffff84ccaa08 R12: 0000000000000000
[ 0.325332] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 0.325332] FS: 0000000000000000(0000) GS:ffff8c40bf840000(0000) knlGS:0000000000000000
[ 0.325332] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.325332] CR2: 0000000000000000 CR3: 0000000030e10001 CR4: 0000000000b70ee0
[ 0.325332] Call Trace:
[ 0.325332] <TASK>
[ 0.325332] asm_exc_control_protection+0x25/0x30
[ 0.325332] RIP: 0010:0xffff9b14c0019000
[ 0.325332] Code: Unable to access opcode bytes at RIP 0xffff9b14c0018fd6.
[ 0.325332] RSP: 0000:ffff9b14c0143d08 EFLAGS: 00010293
[ 0.325332] RAX: 0000000000000001 RBX: 00000000000000fb RCX: 000000000001000b
[ 0.325332] RDX: 00000000000000fb RSI: ffff9b14c0019000 RDI: 0000000000000000
[ 0.325332] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
[ 0.325332] R10: 0000000000000000 R11: 0000000000000005 R12: 0000000000000000
[ 0.325332] R13: 000000000003a660 R14: ffff8c40bf873dc0 R15: 0000000000000140
[ 0.325332] ? walk_to_pmd+0xa9/0x150
[ 0.325332] ? __send_ipi_one+0x63/0x100
[ 0.325332] ? hv_send_ipi+0x14/0x40
[ 0.325332] ? smp_call_function_many_cond+0x2d2/0x2e0
[ 0.325332] ? text_poke_loc_init+0x180/0x180
[ 0.325332] ? on_each_cpu_cond_mask+0x24/0x40
[ 0.325332] ? text_poke_bp_batch+0xb1/0x280
[ 0.325332] ? arch_jump_label_transform_queue+0x57/0x80
[ 0.325332] ? set_rq_offline+0x20/0x20
[ 0.325332] ? text_poke_finish+0x1f/0x30
[ 0.325332] ? arch_jump_label_transform_apply+0x1a/0x30
[ 0.325332] ? static_key_slow_inc_cpuslocked+0x82/0x90
[ 0.325332] ? sched_cpu_activate+0x140/0x170
[ 0.325332] ? cpuhp_invoke_callback+0xe6/0x450
[ 0.325332] ? sort_range+0x20/0x20
[ 0.325332] ? cpuhp_thread_fun+0xe8/0x170
[ 0.325332] ? smpboot_thread_fn+0xd9/0x1d0
[ 0.325332] ? kthread+0xdb/0x110
[ 0.325332] ? kthread_complete_and_exit+0x20/0x20
[ 0.325332] ? ret_from_fork+0x1f/0x30
[ 0.325332] </TASK>
[ 0.325332] Modules linked in:
[ 0.325332] ---[ end trace 0000000000000000 ]---
[ 0.325332] RIP: 0010:exc_control_protection+0xc2/0xd0
[ 0.325332] Code: 8b 93 80 00 00 00 be f9 00 00 00 48 c7 c7 4b ed 46 84 e8 e1 8d 4d ff e9 72 ff ff ff 48 c7 c7 32 ed 46 84 e8 2b 24 fb ff 0f 0b <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 66 0f 1f 00 55 53 48 89
[ 0.325332] RSP: 0000:ffff9b14c0143c38 EFLAGS: 00010002
[ 0.325332] RAX: 0000000000000028 RBX: ffff9b14c0143c58 RCX: c0000000ffffefff
[ 0.325332] RDX: 0000000000000000 RSI: 00000000ffffefff RDI: 0000000000000001
[ 0.325332] RBP: 0000000000000003 R08: 0000000000000000 R09: ffff9b14c0143a58
[ 0.325332] R10: 0000000000000003 R11: ffffffff84ccaa08 R12: 0000000000000000
[ 0.325332] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 0.325332] FS: 0000000000000000(0000) GS:ffff8c40bf840000(0000) knlGS:0000000000000000
[ 0.325332] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.325332] CR2: ffff9b14c0018fd6 CR3: 0000000030e10001 CR4: 0000000000b70ee0
[ 0.325332] note: cpuhp/1[22] exited with preempt_count 1
[ 0.408687] traps: Missing ENDBR: 0xffff9b14c0019000
[ 0.409708] ------------[ cut here ]------------
[ 0.410664] kernel BUG at arch/x86/kernel/traps.c:252!
[ 0.411859] invalid opcode: 0000 [#2] PREEMPT SMP NOPTI
[ 0.411998] CPU: 1 PID: 27 Comm: kworker/1:0H Tainted: G D 5.18.16-arch1-1 #1 dd4fdd19f9b9db73fa00a1e8bfc0950337edf3ef
[ 0.411998] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v4.1 05/05/2021
[ 0.411998] RIP: 0010:exc_control_protection+0xc2/0xd0
[ 0.411998] Code: 8b 93 80 00 00 00 be f9 00 00 00 48 c7 c7 4b ed 46 84 e8 e1 8d 4d ff e9 72 ff ff ff 48 c7 c7 32 ed 46 84 e8 2b 24 fb ff 0f 0b <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 66 0f 1f 00 55 53 48 89
[ 0.411998] RSP: 0000:ffff9b14c016bc18 EFLAGS: 00010002
[ 0.411998] RAX: 0000000000000028 RBX: ffff9b14c016bc38 RCX: c0000000ffffefff
[ 0.411998] RDX: 0000000000000000 RSI: 00000000ffffefff RDI: 0000000000000001
[ 0.411998] RBP: 0000000000000003 R08: 0000000000000000 R09: ffff9b14c016ba38
[ 0.411998] R10: 0000000000000003 R11: ffffffff84ccaa08 R12: 0000000000000000
[ 0.411998] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 0.411998] FS: 0000000000000000(0000) GS:ffff8c40bf840000(0000) knlGS:0000000000000000
[ 0.411998] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.411998] CR2: ffff9b14c0018fd6 CR3: 0000000030e10001 CR4: 0000000000b70ee0
[ 0.411998] Call Trace:
[ 0.411998] <TASK>
[ 0.411998] asm_exc_control_protection+0x25/0x30
[ 0.411998] RIP: 0010:0xffff9b14c0019000
[ 0.411998] Code: Unable to access opcode bytes at RIP 0xffff9b14c0018fd6.
[ 0.411998] RSP: 0000:ffff9b14c016bce8 EFLAGS: 00010093
[ 0.411998] RAX: 0000000000000001 RBX: 00000000000000fd RCX: 000000000001000b
[ 0.411998] RDX: 00000000000000fd RSI: ffff9b14c0019000 RDI: 0000000000000000
[ 0.411998] RBP: 0000000000000000 R08: 0000000000000001 R09: ffff8c40bf832e00
[ 0.411998] R10: 00000000009d7195 R11: 0000000000000000 R12: 0000000000000000
[ 0.411998] R13: 0000000000000287 R14: ffff8c40812908d4 R15: 0000000000000000
[ 0.411998] ? __send_ipi_one+0x63/0x100
[ 0.411998] ? hv_send_ipi+0x14/0x40
[ 0.411998] ? check_preempt_curr+0x40/0x80
[ 0.411998] ? ttwu_do_wakeup+0x17/0x170
[ 0.411998] ? try_to_wake_up+0x22b/0x560
[ 0.411998] ? rescuer_thread+0x3b0/0x3b0
[ 0.411998] ? __kthread_create_on_node+0xdf/0x1e0
[ 0.411998] ? vsnprintf+0x379/0x610
[ 0.411998] ? kthread_create_on_node+0x55/0x70
[ 0.411998] ? create_worker+0xcc/0x1a0
[ 0.411998] ? worker_thread+0x2b1/0x390
[ 0.411998] ? rescuer_thread+0x3b0/0x3b0
[ 0.411998] ? kthread+0xdb/0x110
[ 0.411998] ? kthread_complete_and_exit+0x20/0x20
[ 0.411998] ? ret_from_fork+0x1f/0x30
[ 0.411998] </TASK>
[ 0.411998] Modules linked in:
[ 0.411998] ---[ end trace 0000000000000000 ]---
[ 0.411998] RIP: 0010:exc_control_protection+0xc2/0xd0
[ 0.411998] Code: 8b 93 80 00 00 00 be f9 00 00 00 48 c7 c7 4b ed 46 84 e8 e1 8d 4d ff e9 72 ff ff ff 48 c7 c7 32 ed 46 84 e8 2b 24 fb ff 0f 0b <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 66 0f 1f 00 55 53 48 89
[ 0.411998] RSP: 0000:ffff9b14c0143c38 EFLAGS: 00010002
[ 0.411998] RAX: 0000000000000028 RBX: ffff9b14c0143c58 RCX: c0000000ffffefff
[ 0.411998] RDX: 0000000000000000 RSI: 00000000ffffefff RDI: 0000000000000001
[ 0.411998] RBP: 0000000000000003 R08: 0000000000000000 R09: ffff9b14c0143a58
[ 0.411998] R10: 0000000000000003 R11: ffffffff84ccaa08 R12: 0000000000000000
[ 0.411998] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 0.411998] FS: 0000000000000000(0000) GS:ffff8c40bf840000(0000) knlGS:0000000000000000
[ 0.411998] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.411998] CR2: ffff9b14c0018fd6 CR3: 0000000030e10001 CR4: 0000000000b70ee0
[ 0.411998] note: kworker/1:0H[27] exited with preempt_count 3
Comment by loqs (loqs) - Thursday, 04 August 2022, 20:00 GMT
[ 0.325332] RIP: 0010:exc_control_protection+0xc2/0xd0

Try adding the kernel parameter ibt=off
Comment by Jeff (jefferai) - Thursday, 04 August 2022, 21:27 GMT
Thanks for the tip! I was able to get output from the serial console showing a kernel bug with a stack trace, pasted below:

[ 0.000000] Linux version 5.18.16-arch1-1 (linux@archlinux) (gcc (GCC) 12.1.1 20220730, GNU ld (GNU Binutils) 2.38) #1 SMP PREEMPT_DYNAMIC Wed, 03 Aug 2022 11:25:04 +0000
[ 0.000000] Command line: rw loglevel=7 debug bgrt_disable root=LABEL=ROOT console=tty0 console=ttyS0,115200
[ 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 'compacted' format.
[ 0.000000] signal: max sigframe size: 1776
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000000c0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000004679fff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000467a000-0x000000000467bfff] reserved
[ 0.000000] BIOS-e820: [mem 0x000000000467c000-0x000000003ed16fff] usable
[ 0.000000] BIOS-e820: [mem 0x000000003ed17000-0x000000003ed18fff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x000000003ed19000-0x000000003ee72fff] usable
[ 0.000000] BIOS-e820: [mem 0x000000003ee73000-0x000000003ee7afff] ACPI NVS
[ 0.000000] BIOS-e820: [mem 0x000000003ee7b000-0x000000003ee99fff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x000000003ee9a000-0x000000003eef1fff] usable
[ 0.000000] BIOS-e820: [mem 0x000000003eef2000-0x000000003ef1afff] reserved
[ 0.000000] BIOS-e820: [mem 0x000000003ef1b000-0x000000003ff9afff] usable
[ 0.000000] BIOS-e820: [mem 0x000000003ff9b000-0x000000003fff2fff] reserved
[ 0.000000] BIOS-e820: [mem 0x000000003fff3000-0x000000003fffafff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x000000003fffb000-0x000000003fffefff] ACPI NVS
[ 0.000000] BIOS-e820: [mem 0x000000003ffff000-0x000000003fffffff] usable
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] efi: EFI v2.70 by Microsoft
[ 0.000000] efi: ACPI=0x3fffa000 ACPI 2.0=0x3fffa014 SMBIOS=0x3ffd8000 SMBIOS 3.0=0x3ffd6000 TPMFinalLog=0x3ee73000 MEMATTR=0x3f29d798 RNG=0x3ffda818 TPMEventLog=0x3e44f018
[ 0.000000] efi: seeding entropy pool
[ 0.000000] random: crng init done
[ 0.000000] SMBIOS 3.1.0 present.
[ 0.000000] DMI: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v4.1 05/05/2021
[ 0.000000] Hypervisor detected: Microsoft Hyper-V
[ 0.000000] Hyper-V: privilege flags low 0xae7f, high 0x3b8030, hints 0xa0e24, misc 0xe0bed7b2
[ 0.000000] Hyper-V: Host Build 10.0.22000.795-0-0
[ 0.000000] Hyper-V: Nested features: 0x0
[ 0.000000] Hyper-V: LAPIC Timer Frequency: 0xa2c2a
[ 0.000000] Hyper-V: Using hypercall for remote TLB flush
[ 0.000000] clocksource: hyperv_clocksource_tsc_page: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[ 0.000001] tsc: Detected 3187.200 MHz processor
[ 0.000007] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[ 0.000009] e820: remove [mem 0x000a0000-0x000fffff] usable
[ 0.000013] last_pfn = 0x40000 max_arch_pfn = 0x400000000
[ 0.000029] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT
[ 0.005988] Using GB pages for direct mapping
[ 0.006165] Secure boot disabled
[ 0.006165] RAMDISK: [mem 0x3e453000-0x3ecf0fff]
[ 0.006168] ACPI: Early table checksum verification disabled
[ 0.006170] ACPI: RSDP 0x000000003FFFA014 000024 (v02 VRTUAL)
[ 0.006173] ACPI: XSDT 0x000000003FFF90E8 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006176] ACPI: FACP 0x000000003FFF8000 000114 (v06 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006180] ACPI: DSDT 0x000000003EE7B000 01E184 (v02 MSFTVM DSDT01 00000001 MSFT 05000000)
[ 0.006182] ACPI: FACS 0x000000003FFFE000 000040
[ 0.006183] ACPI: OEM0 0x000000003FFF7000 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006185] ACPI: WAET 0x000000003FFF6000 000028 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006187] ACPI: APIC 0x000000003FFF5000 0000A8 (v04 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006189] ACPI: SRAT 0x000000003FFF4000 000370 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006190] ACPI: TPM2 0x000000003FFF3000 000034 (v03 VRTUAL VTPM 00000001 MSFT 00000001)
[ 0.006192] ACPI: BGRT 0x000000003ED18000 000038 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006194] ACPI: FPDT 0x000000003ED17000 000034 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[ 0.006195] ACPI: Reserving FACP table memory at [mem 0x3fff8000-0x3fff8113]
[ 0.006196] ACPI: Reserving DSDT table memory at [mem 0x3ee7b000-0x3ee99183]
[ 0.006197] ACPI: Reserving FACS table memory at [mem 0x3fffe000-0x3fffe03f]
[ 0.006197] ACPI: Reserving OEM0 table memory at [mem 0x3fff7000-0x3fff7063]
[ 0.006198] ACPI: Reserving WAET table memory at [mem 0x3fff6000-0x3fff6027]
[ 0.006199] ACPI: Reserving APIC table memory at [mem 0x3fff5000-0x3fff50a7]
[ 0.006199] ACPI: Reserving SRAT table memory at [mem 0x3fff4000-0x3fff436f]
[ 0.006200] ACPI: Reserving TPM2 table memory at [mem 0x3fff3000-0x3fff3033]
[ 0.006200] ACPI: Reserving BGRT table memory at [mem 0x3ed18000-0x3ed18037]
[ 0.006201] ACPI: Reserving FPDT table memory at [mem 0x3ed17000-0x3ed17033]
[ 0.006214] SRAT: PXM 0 -> APIC 0x00 -> Node 0
[ 0.006215] SRAT: PXM 0 -> APIC 0x01 -> Node 0
[ 0.006215] SRAT: PXM 0 -> APIC 0x02 -> Node 0
[ 0.006216] SRAT: PXM 0 -> APIC 0x03 -> Node 0
[ 0.006216] SRAT: PXM 0 -> APIC 0x04 -> Node 0
[ 0.006217] SRAT: PXM 0 -> APIC 0x05 -> Node 0
[ 0.006217] SRAT: PXM 0 -> APIC 0x06 -> Node 0
[ 0.006218] SRAT: PXM 0 -> APIC 0x07 -> Node 0
[ 0.006218] SRAT: PXM 0 -> APIC 0x08 -> Node 0
[ 0.006219] SRAT: PXM 0 -> APIC 0x09 -> Node 0
[ 0.006219] SRAT: PXM 0 -> APIC 0x0a -> Node 0
[ 0.006220] SRAT: PXM 0 -> APIC 0x0b -> Node 0
[ 0.006221] ACPI: SRAT: Node 0 PXM 0 [mem 0x00000000-0x3fffffff] hotplug
[ 0.006222] ACPI: SRAT: Node 0 PXM 0 [mem 0x40000000-0xf7ffffff] hotplug
[ 0.006223] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000-0xfdfffffff] hotplug
[ 0.006224] ACPI: SRAT: Node 0 PXM 0 [mem 0x1000000000-0xffffffffff] hotplug
[ 0.006224] ACPI: SRAT: Node 0 PXM 0 [mem 0x10000000000-0x1ffffffffff] hotplug
[ 0.006225] ACPI: SRAT: Node 0 PXM 0 [mem 0x20000000000-0x3ffffffffff] hotplug
[ 0.006226] ACPI: SRAT: Node 0 PXM 0 [mem 0x40000000000-0x7ffffffffff] hotplug
[ 0.006227] ACPI: SRAT: Node 0 PXM 0 [mem 0x80000000000-0xfffffffffff] hotplug
[ 0.006227] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000000-0x1fffffffffff] hotplug
[ 0.006228] ACPI: SRAT: Node 0 PXM 0 [mem 0x200000000000-0x3fffffffffff] hotplug
[ 0.006229] ACPI: SRAT: Node 0 PXM 0 [mem 0x400000000000-0x7fffffffffff] hotplug
[ 0.006229] ACPI: SRAT: Node 0 PXM 0 [mem 0x800000000000-0xffffffffffff] hotplug
[ 0.006230] ACPI: SRAT: Node 0 PXM 0 [mem 0x1000000000000-0x1ffffffffffff] hotplug
[ 0.006231] ACPI: SRAT: Node 0 PXM 0 [mem 0x2000000000000-0x3ffffffffffff] hotplug
[ 0.006231] ACPI: SRAT: Node 0 PXM 0 [mem 0x4000000000000-0x7ffffffffffff] hotplug
[ 0.006232] ACPI: SRAT: Node 0 PXM 0 [mem 0x8000000000000-0xfffffffffffff] hotplug
[ 0.006235] NODE_DATA(0) allocated [mem 0x3fe18000-0x3fe1bfff]
[ 0.006243] Zone ranges:
[ 0.006244] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.006245] DMA32 [mem 0x0000000001000000-0x000000003fffffff]
[ 0.006246] Normal empty
[ 0.006247] Device empty
[ 0.006248] Movable zone start for each node
[ 0.006248] Early memory node ranges
[ 0.006249] node 0: [mem 0x0000000000001000-0x000000000009ffff]
[ 0.006249] node 0: [mem 0x0000000000100000-0x0000000004679fff]
[ 0.006250] node 0: [mem 0x000000000467c000-0x000000003ed16fff]
[ 0.006251] node 0: [mem 0x000000003ed19000-0x000000003ee72fff]
[ 0.006251] node 0: [mem 0x000000003ee9a000-0x000000003eef1fff]
[ 0.006252] node 0: [mem 0x000000003ef1b000-0x000000003ff9afff]
[ 0.006252] node 0: [mem 0x000000003ffff000-0x000000003fffffff]
[ 0.006253] Initmem setup node 0 [mem 0x0000000000001000-0x000000003fffffff]
[ 0.006255] On node 0, zone DMA: 1 pages in unavailable ranges
[ 0.006268] On node 0, zone DMA: 96 pages in unavailable ranges
[ 0.007082] On node 0, zone DMA32: 2 pages in unavailable ranges
[ 0.007084] On node 0, zone DMA32: 2 pages in unavailable ranges
[ 0.007085] On node 0, zone DMA32: 39 pages in unavailable ranges
[ 0.007101] On node 0, zone DMA32: 41 pages in unavailable ranges
[ 0.007102] On node 0, zone DMA32: 100 pages in unavailable ranges
[ 0.007122] ACPI: PM-Timer IO Port: 0x408
[ 0.007127] ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
[ 0.007237] IOAPIC[0]: apic_id 12, version 17, address 0xfec00000, GSI 0-23
[ 0.007239] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.007242] ACPI: Using ACPI (MADT) for SMP configuration information
[ 0.007243] TSC deadline timer available
[ 0.007244] smpboot: Allowing 12 CPUs, 0 hotplug CPUs
[ 0.007252] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.007253] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000bffff]
[ 0.007254] PM: hibernation: Registered nosave memory: [mem 0x000c0000-0x000fffff]
[ 0.007255] PM: hibernation: Registered nosave memory: [mem 0x0467a000-0x0467bfff]
[ 0.007256] PM: hibernation: Registered nosave memory: [mem 0x3ed17000-0x3ed18fff]
[ 0.007257] PM: hibernation: Registered nosave memory: [mem 0x3ee73000-0x3ee7afff]
[ 0.007257] PM: hibernation: Registered nosave memory: [mem 0x3ee7b000-0x3ee99fff]
[ 0.007258] PM: hibernation: Registered nosave memory: [mem 0x3eef2000-0x3ef1afff]
[ 0.007259] PM: hibernation: Registered nosave memory: [mem 0x3ff9b000-0x3fff2fff]
[ 0.007260] PM: hibernation: Registered nosave memory: [mem 0x3fff3000-0x3fffafff]
[ 0.007260] PM: hibernation: Registered nosave memory: [mem 0x3fffb000-0x3fffefff]
[ 0.007261] [mem 0x40000000-0xffffffff] available for PCI devices
[ 0.007262] Booting paravirtualized kernel on Hyper-V
[ 0.007263] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370452778343963 ns
[ 0.010346] setup_percpu: NR_CPUS:320 nr_cpumask_bits:320 nr_cpu_ids:12 nr_node_ids:1
[ 0.010630] percpu: Embedded 63 pages/cpu s221184 r8192 d28672 u262144
[ 0.010633] pcpu-alloc: s221184 r8192 d28672 u262144 alloc=1*2097152
[ 0.010635] pcpu-alloc: [0] 00 01 02 03 04 05 06 07 [0] 08 09 10 11 -- -- -- --
[ 0.010647] Hyper-V: PV spinlocks enabled
[ 0.010649] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.010651] Fallback order for Node 0: 0
[ 0.010653] Built 1 zonelists, mobility grouping on. Total pages: 256286
[ 0.010653] Policy zone: DMA32
[ 0.010654] Kernel command line: rw loglevel=7 debug bgrt_disable root=LABEL=ROOT console=tty0 console=ttyS0,115200
[ 0.010742] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.010766] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.010921] mem auto-init: stack:all(zero), heap alloc:on, heap free:off
[ 0.018988] Memory: 896256K/1047452K available (14343K kernel code, 2099K rwdata, 11012K rodata, 1868K init, 3852K bss, 150936K reserved, 0K cma-reserved)
[ 0.019047] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=12, Nodes=1
[ 0.019053] ftrace: allocating 44940 entries in 176 pages
[ 0.022521] ftrace: allocated 176 pages with 3 groups
[ 0.022558] Dynamic Preempt: full
[ 0.022575] rcu: Preemptible hierarchical RCU implementation.
[ 0.022576] rcu: RCU restricting CPUs from NR_CPUS=320 to nr_cpu_ids=12.
[ 0.022576] rcu: RCU priority boosting: priority 1 delay 500 ms.
[ 0.022577] Trampoline variant of Tasks RCU enabled.
[ 0.022577] Rude variant of Tasks RCU enabled.
[ 0.022578] Tracing variant of Tasks RCU enabled.
[ 0.022579] rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.
[ 0.022579] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=12
[ 0.024525] Using NULL legacy PIC
[ 0.024526] NR_IRQS: 20736, nr_irqs: 520, preallocated irqs: 0
[ 0.024736] kfence: initialized - using 2097152 bytes for 255 objects at 0x(____ptrval____)-0x(____ptrval____)
[ 0.024758] Console: colour dummy device 80x25
[ 0.024851] printk: console [tty0] enabled
[ 0.300690] printk: console [ttyS0] enabled
[ 0.301552] ACPI: Core revision 20211217
[ 0.302464] Failed to register legacy timer interrupt
[ 0.303530] APIC: Switch to symmetric I/O mode setup
[ 0.305464] x2apic enabled
[ 0.306768] Switched APIC routing to physical x2apic.
[ 0.307801] Hyper-V: enabling crash_kexec_post_notifiers
[ 0.308880] Hyper-V: Using IPI hypercalls
[ 0.309749] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x2df10e7656b, max_idle_ns: 440795364873 ns
[ 0.312001] Calibrating delay loop (skipped), value calculated using timer frequency.. 6376.00 BogoMIPS (lpj=10624000)
[ 0.314141] pid_max: default: 32768 minimum: 301
[ 0.315332] LSM: Security Framework initializing
[ 0.315332] landlock: Up and running.
[ 0.315332] Yama: becoming mindful.
[ 0.315332] LSM support for eBPF active
[ 0.315332] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.315332] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.315332] x86/cpu: User Mode Instruction Prevention (UMIP) activated
[ 0.315332] CET detected: Indirect Branch Tracking enabled
[ 0.315332] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.315332] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[ 0.315332] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[ 0.315332] Spectre V2 : Mitigation: Enhanced IBRS
[ 0.315332] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[ 0.315332] RETBleed: Mitigation: Enhanced IBRS
[ 0.315332] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[ 0.315332] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl
[ 0.315332] Freeing SMP alternatives memory: 36K
[ 0.315332] smpboot: CPU0: 12th Gen Intel(R) Core(TM) i9-12900K (family: 0x6, model: 0x97, stepping: 0x2)
[ 0.315332] cblist_init_generic: Setting adjustable number of callback queues.
[ 0.315340] cblist_init_generic: Setting shift to 4 and lim to 1.
[ 0.317173] cblist_init_generic: Setting shift to 4 and lim to 1.
[ 0.318421] cblist_init_generic: Setting shift to 4 and lim to 1.
[ 0.318698] Performance Events: unsupported p6 CPU model 151 no PMU driver, software events only.
[ 0.320571] rcu: Hierarchical SRCU implementation.
[ 0.321852] NMI watchdog: Perf NMI watchdog permanently disabled
[ 0.322073] smp: Bringing up secondary CPUs ...
[ 0.323043] x86: Booting SMP configuration:
[ 0.324062] .... node #0, CPUs: #1
[ 0.324364] traps: Missing ENDBR: 0xffff9b14c0019000
[ 0.324364] ------------[ cut here ]------------
[ 0.325037] kernel BUG at arch/x86/kernel/traps.c:252!
[ 0.325332] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
[ 0.325332] CPU: 1 PID: 22 Comm: cpuhp/1 Not tainted 5.18.16-arch1-1 #1 dd4fdd19f9b9db73fa00a1e8bfc0950337edf3ef
[ 0.325332] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v4.1 05/05/2021
[ 0.325332] RIP: 0010:exc_control_protection+0xc2/0xd0
[ 0.325332] Code: 8b 93 80 00 00 00 be f9 00 00 00 48 c7 c7 4b ed 46 84 e8 e1 8d 4d ff e9 72 ff ff ff 48 c7 c7 32 ed 46 84 e8 2b 24 fb ff 0f 0b <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 66 0f 1f 00 55 53 48 89
[ 0.325332] RSP: 0000:ffff9b14c0143c38 EFLAGS: 00010002
[ 0.325332] RAX: 0000000000000028 RBX: ffff9b14c0143c58 RCX: c0000000ffffefff
[ 0.325332] RDX: 0000000000000000 RSI: 00000000ffffefff RDI: 0000000000000001
[ 0.325332] RBP: 0000000000000003 R08: 0000000000000000 R09: ffff9b14c0143a58
[ 0.325332] R10: 0000000000000003 R11: ffffffff84ccaa08 R12: 0000000000000000
[ 0.325332] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 0.325332] FS: 0000000000000000(0000) GS:ffff8c40bf840000(0000) knlGS:0000000000000000
[ 0.325332] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.325332] CR2: 0000000000000000 CR3: 0000000030e10001 CR4: 0000000000b70ee0
[ 0.325332] Call Trace:
[ 0.325332] <TASK>
[ 0.325332] asm_exc_control_protection+0x25/0x30
[ 0.325332] RIP: 0010:0xffff9b14c0019000
[ 0.325332] Code: Unable to access opcode bytes at RIP 0xffff9b14c0018fd6.
[ 0.325332] RSP: 0000:ffff9b14c0143d08 EFLAGS: 00010293
[ 0.325332] RAX: 0000000000000001 RBX: 00000000000000fb RCX: 000000000001000b
[ 0.325332] RDX: 00000000000000fb RSI: ffff9b14c0019000 RDI: 0000000000000000
[ 0.325332] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
[ 0.325332] R10: 0000000000000000 R11: 0000000000000005 R12: 0000000000000000
[ 0.325332] R13: 000000000003a660 R14: ffff8c40bf873dc0 R15: 0000000000000140
[ 0.325332] ? walk_to_pmd+0xa9/0x150
[ 0.325332] ? __send_ipi_one+0x63/0x100
[ 0.325332] ? hv_send_ipi+0x14/0x40
[ 0.325332] ? smp_call_function_many_cond+0x2d2/0x2e0
[ 0.325332] ? text_poke_loc_init+0x180/0x180
[ 0.325332] ? on_each_cpu_cond_mask+0x24/0x40
[ 0.325332] ? text_poke_bp_batch+0xb1/0x280
[ 0.325332] ? arch_jump_label_transform_queue+0x57/0x80
[ 0.325332] ? set_rq_offline+0x20/0x20
[ 0.325332] ? text_poke_finish+0x1f/0x30
[ 0.325332] ? arch_jump_label_transform_apply+0x1a/0x30
[ 0.325332] ? static_key_slow_inc_cpuslocked+0x82/0x90
[ 0.325332] ? sched_cpu_activate+0x140/0x170
[ 0.325332] ? cpuhp_invoke_callback+0xe6/0x450
[ 0.325332] ? sort_range+0x20/0x20
[ 0.325332] ? cpuhp_thread_fun+0xe8/0x170
[ 0.325332] ? smpboot_thread_fn+0xd9/0x1d0
[ 0.325332] ? kthread+0xdb/0x110
[ 0.325332] ? kthread_complete_and_exit+0x20/0x20
[ 0.325332] ? ret_from_fork+0x1f/0x30
[ 0.325332] </TASK>
[ 0.325332] Modules linked in:
[ 0.325332] ---[ end trace 0000000000000000 ]---
[ 0.325332] RIP: 0010:exc_control_protection+0xc2/0xd0
[ 0.325332] Code: 8b 93 80 00 00 00 be f9 00 00 00 48 c7 c7 4b ed 46 84 e8 e1 8d 4d ff e9 72 ff ff ff 48 c7 c7 32 ed 46 84 e8 2b 24 fb ff 0f 0b <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 66 0f 1f 00 55 53 48 89
[ 0.325332] RSP: 0000:ffff9b14c0143c38 EFLAGS: 00010002
[ 0.325332] RAX: 0000000000000028 RBX: ffff9b14c0143c58 RCX: c0000000ffffefff
[ 0.325332] RDX: 0000000000000000 RSI: 00000000ffffefff RDI: 0000000000000001
[ 0.325332] RBP: 0000000000000003 R08: 0000000000000000 R09: ffff9b14c0143a58
[ 0.325332] R10: 0000000000000003 R11: ffffffff84ccaa08 R12: 0000000000000000
[ 0.325332] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 0.325332] FS: 0000000000000000(0000) GS:ffff8c40bf840000(0000) knlGS:0000000000000000
[ 0.325332] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.325332] CR2: ffff9b14c0018fd6 CR3: 0000000030e10001 CR4: 0000000000b70ee0
[ 0.325332] note: cpuhp/1[22] exited with preempt_count 1
[ 0.408687] traps: Missing ENDBR: 0xffff9b14c0019000
[ 0.409708] ------------[ cut here ]------------
[ 0.410664] kernel BUG at arch/x86/kernel/traps.c:252!
[ 0.411859] invalid opcode: 0000 [#2] PREEMPT SMP NOPTI
[ 0.411998] CPU: 1 PID: 27 Comm: kworker/1:0H Tainted: G D 5.18.16-arch1-1 #1 dd4fdd19f9b9db73fa00a1e8bfc0950337edf3ef
[ 0.411998] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v4.1 05/05/2021
[ 0.411998] RIP: 0010:exc_control_protection+0xc2/0xd0
[ 0.411998] Code: 8b 93 80 00 00 00 be f9 00 00 00 48 c7 c7 4b ed 46 84 e8 e1 8d 4d ff e9 72 ff ff ff 48 c7 c7 32 ed 46 84 e8 2b 24 fb ff 0f 0b <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 66 0f 1f 00 55 53 48 89
[ 0.411998] RSP: 0000:ffff9b14c016bc18 EFLAGS: 00010002
[ 0.411998] RAX: 0000000000000028 RBX: ffff9b14c016bc38 RCX: c0000000ffffefff
[ 0.411998] RDX: 0000000000000000 RSI: 00000000ffffefff RDI: 0000000000000001
[ 0.411998] RBP: 0000000000000003 R08: 0000000000000000 R09: ffff9b14c016ba38
[ 0.411998] R10: 0000000000000003 R11: ffffffff84ccaa08 R12: 0000000000000000
[ 0.411998] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 0.411998] FS: 0000000000000000(0000) GS:ffff8c40bf840000(0000) knlGS:0000000000000000
[ 0.411998] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.411998] CR2: ffff9b14c0018fd6 CR3: 0000000030e10001 CR4: 0000000000b70ee0
[ 0.411998] Call Trace:
[ 0.411998] <TASK>
[ 0.411998] asm_exc_control_protection+0x25/0x30
[ 0.411998] RIP: 0010:0xffff9b14c0019000
[ 0.411998] Code: Unable to access opcode bytes at RIP 0xffff9b14c0018fd6.
[ 0.411998] RSP: 0000:ffff9b14c016bce8 EFLAGS: 00010093
[ 0.411998] RAX: 0000000000000001 RBX: 00000000000000fd RCX: 000000000001000b
[ 0.411998] RDX: 00000000000000fd RSI: ffff9b14c0019000 RDI: 0000000000000000
[ 0.411998] RBP: 0000000000000000 R08: 0000000000000001 R09: ffff8c40bf832e00
[ 0.411998] R10: 00000000009d7195 R11: 0000000000000000 R12: 0000000000000000
[ 0.411998] R13: 0000000000000287 R14: ffff8c40812908d4 R15: 0000000000000000
[ 0.411998] ? __send_ipi_one+0x63/0x100
[ 0.411998] ? hv_send_ipi+0x14/0x40
[ 0.411998] ? check_preempt_curr+0x40/0x80
[ 0.411998] ? ttwu_do_wakeup+0x17/0x170
[ 0.411998] ? try_to_wake_up+0x22b/0x560
[ 0.411998] ? rescuer_thread+0x3b0/0x3b0
[ 0.411998] ? __kthread_create_on_node+0xdf/0x1e0
[ 0.411998] ? vsnprintf+0x379/0x610
[ 0.411998] ? kthread_create_on_node+0x55/0x70
[ 0.411998] ? create_worker+0xcc/0x1a0
[ 0.411998] ? worker_thread+0x2b1/0x390
[ 0.411998] ? rescuer_thread+0x3b0/0x3b0
[ 0.411998] ? kthread+0xdb/0x110
[ 0.411998] ? kthread_complete_and_exit+0x20/0x20
[ 0.411998] ? ret_from_fork+0x1f/0x30
[ 0.411998] </TASK>
[ 0.411998] Modules linked in:
[ 0.411998] ---[ end trace 0000000000000000 ]---
[ 0.411998] RIP: 0010:exc_control_protection+0xc2/0xd0
[ 0.411998] Code: 8b 93 80 00 00 00 be f9 00 00 00 48 c7 c7 4b ed 46 84 e8 e1 8d 4d ff e9 72 ff ff ff 48 c7 c7 32 ed 46 84 e8 2b 24 fb ff 0f 0b <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 66 0f 1f 00 55 53 48 89
[ 0.411998] RSP: 0000:ffff9b14c0143c38 EFLAGS: 00010002
[ 0.411998] RAX: 0000000000000028 RBX: ffff9b14c0143c58 RCX: c0000000ffffefff
[ 0.411998] RDX: 0000000000000000 RSI: 00000000ffffefff RDI: 0000000000000001
[ 0.411998] RBP: 0000000000000003 R08: 0000000000000000 R09: ffff9b14c0143a58
[ 0.411998] R10: 0000000000000003 R11: ffffffff84ccaa08 R12: 0000000000000000
[ 0.411998] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 0.411998] FS: 0000000000000000(0000) GS:ffff8c40bf840000(0000) knlGS:0000000000000000
[ 0.411998] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.411998] CR2: ffff9b14c0018fd6 CR3: 0000000030e10001 CR4: 0000000000b70ee0
[ 0.411998] note: kworker/1:0H[27] exited with preempt_count 3
Comment by loqs (loqs) - Thursday, 04 August 2022, 22:06 GMT
[ 0.010654] Kernel command line: rw loglevel=7 debug bgrt_disable root=LABEL=ROOT console=tty0 console=ttyS0,115200
Does not contain ibt=off
Comment by Jeff (jefferai) - Thursday, 04 August 2022, 22:50 GMT
Sorry, I don’t know how that posted twice. I think my browser restarted as a result of my machine restarting and when the tab came back up it posted again.

When I said it worked I was referring to the previous post of yours about trying to get a serial console.

With ibt=off I can successfully boot. Should I be reporting this somewhere else to get it looked at properly?

Thanks!
Comment by Doug Newgard (Scimmia) - Thursday, 04 August 2022, 22:57 GMT
This is generally an issue with a 3rd party module.
Comment by loqs (loqs) - Thursday, 04 August 2022, 23:01 GMT
Might be https://bugzilla.kernel.org/show_bug.cgi?id=216102 or start your own bug on the kernel bug tracker and add Peter Zijlstra (Intel) <peterz@infradead.org> who added IBT support to the kernel.
Comment by Jeff (jefferai) - Monday, 08 August 2022, 16:39 GMT Comment by Toolybird (Toolybird) - Sunday, 28 May 2023, 20:51 GMT
I don't understand why this is still an issue. Doesn't anyone else (besides Arch users) boot linux on Hyper-V?

Loading...