My ARM64 boot just broke (undefined instruction)

From: Martin Cracauer <cracauer_at_cons.org>
Date: Thu, 02 Feb 2023 10:13:55 UTC
I am getting a new boot panic on 14-current.

Platform:
- Apple Mac M1 mini
- QEMU 7.2.0 to arm64
- Last working kernel: Jan 25 main-n260242-f5924ad8fde4
- kern config GENERIC-NODEBUG

[...]
generic_timer0: <ARM Generic Timer> irq 34,35,36 on acpi0
Undefined instruction: d53be228
  x0:                0
  x1: ffff000000ed3cc0 (thread0_st + 0)
  x2:              100
  x3:          8000000
  x4: ffff000000802dd8 (generic_bs_w_4 + 0)
  x5:               50
  x6: ffff00000050ef38 (kvprintf + 470)
  x7:               d5
  x8: ffffa00000778900
  x9: ffff000000ed3cc0 (thread0_st + 0)
 x10: ffff000000f6c0f0 (isrc_table_lock + 18)
 x11:                1
 x12:                3
 x13: ff0f010000000300
 x14:                0
 x15:                0
 x16:                0
 x17:                0
 x18: ffff000000fe3870 (initstack + 3870)
 x19: ffffa00000781400
 x20: ffffa00000781500
 x21: ffffa00000781438
 x22: ffff0000007fd8c0 (arm_tmr_intr + 0)
 x23:                0
 x24: ffff0000009a7b99 (digits + 3b17)
 x25: ffff0000009d4bf9 (console_pausestr + e595)
 x26: ffff000000963970 (cam_status_table + 27d68)
 x27: ffffa00000784280
 x28: ffff000000d0dc90 (__set_sysinit_set_sym_mrmlbus_pcibmodule_sys_init + 0)
 x29: ffff000000fe3870 (initstack + 3870)
  sp: ffff000000fe3870
  lr: ffff0000007fd780 (arm_tmr_attach + 190)
 elr: ffff0000007fd7b8 (arm_tmr_attach + 1c8)
spsr:         604000c5
 far:                0
panic: Unknown kernel exception 0 esr_el1 2000000
cpuid = 0
time = 1
KDB: stack backtrace:
db_trace_self() at db_trace_self
db_trace_self_wrapper() at db_trace_self_wrapper+0x30
vpanic() at vpanic+0x13c
panic() at panic+0x44
do_el1h_sync() at do_el1h_sync+0x194
handle_el1h_sync() at handle_el1h_sync+0x10
--- exception, esr 0x2000000
arm_tmr_attach() at arm_tmr_attach+0x1c8
device_attach() at device_attach+0x3f8
bus_generic_new_pass() at bus_generic_new_pass+0x120
bus_generic_new_pass() at bus_generic_new_pass+0xb0
bus_generic_new_pass() at bus_generic_new_pass+0xb0
root_bus_configure() at root_bus_configure+0x40
mi_startup() at mi_startup+0x200
virtdone() at virtdone+0x6c
KDB: enter: panic
[ thread pid 0 tid 100000 ]
Stopped at      kdb_enter+0x44: undefined       f900027f
db> 

-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org>   http://www.cons.org/cracauer/