*** My document was produced with the assistance of Mistral Vibes . Jerome
Presson ***
Hello,
On OpenBSD 8.0/amd64 (syspatched GENERIC.MP#4), I get a kernel page fault at
every shutdown/reboot, caused by an azalia(4) device that failed to attach.
Kernel:
OpenBSD pc_openbsd 8.0 GENERIC.MP#4 amd64
kern.version=OpenBSD 8.0 (GENERIC.MP) #4: Wed Nov 4 12:16:42 CST 2026
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Relevant dmesg lines:
azalia0 at pci0 dev 3 function 0 "Intel Core 4G HD Audio" rev 0x06: can't
map device i/o space
azalia1 at pci0 dev 27 function 0 "Intel 8 Series HD Audio" rev 0.05: msi
azalia1: codecs: Realtek ALC280
audio0 at azalia1
So azalia0 fails to map its I/O space, is not detached, and its
azalia_pci_activate() handler is still called at shutdown with
DVACT_POWERDOWN, which calls azalia_shutdown() and dereferences an
unmapped/NULL bus space.
Trace at halt (ddb):
`syncing disks... done`
uvm_fault(0xfffffa82567f5a30, 0x10, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at azalia_shutdown+0x34: movq 0x10(%rax),%r11
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*435946 6189 0 0x3 0 0 K halt
azalia_shutdown(ffff80000008d800) at azalia_shutdown+0x34
azalia_pci_activate(ffff80000008d800,6) at azalia_pci_activate+0xc5
config_activate_children(ffff800000086300,6) at
config_activate_children+0x85
pciactivate(ffff800000086300,6) at pciactivate+0xab
config_activate_children(ffff800000032480,6) at
config_activate_children+0x85
config_suspend_all(6) at config_suspend_all+0x1d6
boot(8) at boot+0x121
reboot(8) at reboot+0x68
sys_reboot(...) at sys_reboot+0x9
Workaround: disabling azalia in UKC (config -e) makes the panic
disappear, but of course also disables the working ALC280 on azalia1.
Perhaps azalia_pci_attach() should detach (or mark unusable) the device
when the I/O space cannot be mapped, so azalia_shutdown() is not called
on it at DVACT_POWERDOWN.
Sent with Proton Mail secure email.