syzbot


netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader

Status: upstream: reported on 2025/02/24 20:24
Reported-by: syzbot+cc4a1be11d1daf5e1efe@syzkaller.appspotmail.com
First crash: 70d, last: 11h35m

Sample crash report:
[   1.0187296] panic: UBSan: Undefined Behavior in /syzkaller/managers/ci2-netbsd-kubsan/kernel/sys/external/bsd/acpica/dist/resources/rsutils.c:407:37, member access within misaligned address 0xffff876308a41b11 for type 'union AML_RESOURCE' which requires 4 byte alignment

[   1.0187296] cpu0: Begin traceback...
[   1.0187296] vpanic() at netbsd:vpanic+0x2f3 sys/kern/subr_prf.c:288
[   1.0187296] Report() at netbsd:Report+0x3b sys/../common/lib/libc/misc/ubsan.c:1352
[   1.0187296] HandleTypeMismatch() at netbsd:HandleTypeMismatch+0xfc sys/../common/lib/libc/misc/ubsan.c:432
[   1.0187296] AcpiRsSetResourceHeader() at netbsd:AcpiRsSetResourceHeader+0x13f sys/external/bsd/acpica/dist/resources/rsutils.c:407
[   1.0187296] AcpiRsConvertResourceToAml() at netbsd:AcpiRsConvertResourceToAml+0xb9c sys/external/bsd/acpica/dist/resources/rsmisc.c:634
[   1.0187296] AcpiRsConvertResourcesToAml() at netbsd:AcpiRsConvertResourcesToAml+0xa1 sys/external/bsd/acpica/dist/resources/rslist.c:359
[   1.0187296] AcpiRsCreateAmlResources() at netbsd:AcpiRsCreateAmlResources+0xe3 sys/external/bsd/acpica/dist/resources/rscreate.c:608
[   1.0187296] AcpiRsSetSrsMethodData() at netbsd:AcpiRsSetSrsMethodData+0xc7 sys/external/bsd/acpica/dist/resources/rsutils.c:942
[   1.0187296] AcpiSetCurrentResources() at netbsd:AcpiSetCurrentResources+0x11a sys/external/bsd/acpica/dist/resources/rsxface.c:454
[   1.0187296] acpi_pci_link_route_interrupt() at netbsd:acpi_pci_link_route_interrupt+0x746 acpi_pci_link_route_irqs sys/dev/acpi/acpi_pci_link.c:905 [inline]
[   1.0187296] acpi_pci_link_route_interrupt() at netbsd:acpi_pci_link_route_interrupt+0x746 sys/dev/acpi/acpi_pci_link.c:1068
[   1.0187296] mpacpi_findintr_linkdev() at netbsd:mpacpi_findintr_linkdev+0x84 sys/arch/x86/x86/mpacpi.c:1035
[   1.0187296] intr_find_mpmapping() at netbsd:intr_find_mpmapping+0x291 intr_scan_bus sys/arch/x86/x86/mp.c:226 [inline]
[   1.0187296] intr_find_mpmapping() at netbsd:intr_find_mpmapping+0x291 sys/arch/x86/x86/mp.c:191
[   1.0187296] pci_intr_map() at netbsd:pci_intr_map+0x2d3 sys/arch/x86/pci/pci_intr_machdep.c:156
[   1.0187296] pci_intx_alloc() at netbsd:pci_intx_alloc+0x46 sys/arch/x86/pci/pci_intr_machdep.c:448
[   1.0187296] pci_intr_alloc() at netbsd:pci_intr_alloc+0x127 sys/arch/x86/pci/pci_intr_machdep.c:573
[   1.0187296] virtio_pci_alloc_interrupts() at netbsd:virtio_pci_alloc_interrupts+0x3be sys/dev/pci/virtio_pci.c:1171
[   1.0187296] virtio_child_attach_finish() at netbsd:virtio_child_attach_finish+0x55f sys/dev/pci/virtio.c:1389
[   1.0187296] viomb_attach() at netbsd:viomb_attach+0x5c5 sys/dev/pci/viomb.c:194
[   1.0187296] config_attach_internal() at netbsd:config_attach_internal+0x4d5 sys/kern/subr_autoconf.c:1832
[   1.0187296] config_found_acquire() at netbsd:config_found_acquire+0x6a sys/kern/subr_autoconf.c:1275
[   1.0187296] config_found() at netbsd:config_found+0x4c sys/kern/subr_autoconf.c:1317
[   1.0187296] virtio_pci_rescan() at netbsd:virtio_pci_rescan+0x86 sys/dev/pci/virtio_pci.c:350
[   1.0187296] virtio_pci_attach() at netbsd:virtio_pci_attach+0x456 sys/dev/pci/virtio_pci.c:331
[   1.0187296] config_attach_internal() at netbsd:config_attach_internal+0x4d5 sys/kern/subr_autoconf.c:1832
[   1.0187296] config_found_acquire() at netbsd:config_found_acquire+0x6a sys/kern/subr_autoconf.c:1275
[   1.0187296] config_found() at netbsd:config_found+0x4c sys/kern/subr_autoconf.c:1317
[   1.0187296] pci_probe_device1() at netbsd:pci_probe_device1+0xeaa sys/dev/pci/pci.c:488
[   1.0187296] pci_enumerate_bus1() at netbsd:pci_enumerate_bus1+0x477 sys/dev/pci/pci.c:851
[   1.0187296] pcirescan() at netbsd:pcirescan+0x73 sys/dev/pci/pci.c:113
[   1.0187296] pciattach() at netbsd:pciattach+0x516 sys/dev/pci/pci.c:210
[   1.0187296] config_attach_internal() at netbsd:config_attach_internal+0x4d5 sys/kern/subr_autoconf.c:1832
[   1.0187296] config_found_acquire() at netbsd:config_found_acquire+0x6a sys/kern/subr_autoconf.c:1275
[   1.0187296] config_found() at netbsd:config_found+0x4c sys/kern/subr_autoconf.c:1317
[   1.0187296] mp_pci_scan() at netbsd:mp_pci_scan+0x197 sys/arch/x86/x86/mp.c:96
[   1.0187296] amd64_mainbus_attach() at netbsd:amd64_mainbus_attach+0x517 sys/arch/amd64/amd64/amd64_mainbus.c:220
[   1.0187296] config_attach_internal() at netbsd:config_attach_internal+0x4d5 sys/kern/subr_autoconf.c:1832
[   1.0187296] config_attach() at netbsd:config_attach+0x71 config_attach_acquire sys/kern/subr_autoconf.c:1867 [inline]
[   1.0187296] config_attach() at netbsd:config_attach+0x71 sys/kern/subr_autoconf.c:1895
[   1.0187296] config_rootfound() at netbsd:config_rootfound+0x4e sys/kern/subr_autoconf.c:1336
[   1.0187296] cpu_configure() at netbsd:cpu_configure+0x58 sys/arch/amd64/amd64/autoconf.c:112
[   1.0187296] main() at netbsd:main+0x43d sys/kern/init_main.c:553
[   1.0187296] cpu0: End traceback...
[   1.0187296] fatal breakpoint trap in supervisor mode
[   1.0187296] trap type 1 code 0 rip 0xffffffff8023547d cs 0x8 rflags 0x202 cr2 0 ilevel 0x8 rsp 0xffffffff870b5780
[   1.0187296] curlwp 0xffffffff867f89c0 pid 0.0 lowest kstack 0xffffffff870b12c0
Stopped in pid 0.0 (system) at  netbsd:breakpoint+0x5:  leave
breakpoint() at netbsd:breakpoint+0x5
db_panic() at netbsd:db_panic+0xec sys/ddb/db_panic.c:71
vpanic() at netbsd:vpanic+0x2f3 sys/kern/subr_prf.c:288
Report() at netbsd:Report+0x3b sys/../common/lib/libc/misc/ubsan.c:1352
HandleTypeMismatch() at netbsd:HandleTypeMismatch+0xfc sys/../common/lib/libc/misc/ubsan.c:432
AcpiRsSetResourceHeader() at netbsd:AcpiRsSetResourceHeader+0x13f sys/external/bsd/acpica/dist/resources/rsutils.c:407
AcpiRsConvertResourceToAml() at netbsd:AcpiRsConvertResourceToAml+0xb9c sys/external/bsd/acpica/dist/resources/rsmisc.c:634
AcpiRsConvertResourcesToAml() at netbsd:AcpiRsConvertResourcesToAml+0xa1 sys/external/bsd/acpica/dist/resources/rslist.c:359
AcpiRsCreateAmlResources() at netbsd:AcpiRsCreateAmlResources+0xe3 sys/external/bsd/acpica/dist/resources/rscreate.c:608
AcpiRsSetSrsMethodData() at netbsd:AcpiRsSetSrsMethodData+0xc7 sys/external/bsd/acpica/dist/resources/rsutils.c:942
AcpiSetCurrentResources() at netbsd:AcpiSetCurrentResources+0x11a sys/external/bsd/acpica/dist/resources/rsxface.c:454
acpi_pci_link_route_interrupt() at netbsd:acpi_pci_link_route_interrupt+0x746 acpi_pci_link_route_irqs sys/dev/acpi/acpi_pci_link.c:905 [inline]
acpi_pci_link_route_interrupt() at netbsd:acpi_pci_link_route_interrupt+0x746 sys/dev/acpi/acpi_pci_link.c:1068
mpacpi_findintr_linkdev() at netbsd:mpacpi_findintr_linkdev+0x84 sys/arch/x86/x86/mpacpi.c:1035
intr_find_mpmapping() at netbsd:intr_find_mpmapping+0x291 intr_scan_bus sys/arch/x86/x86/mp.c:226 [inline]
intr_find_mpmapping() at netbsd:intr_find_mpmapping+0x291 sys/arch/x86/x86/mp.c:191
pci_intr_map() at netbsd:pci_intr_map+0x2d3 sys/arch/x86/pci/pci_intr_machdep.c:156
pci_intx_alloc() at netbsd:pci_intx_alloc+0x46 sys/arch/x86/pci/pci_intr_machdep.c:448
pci_intr_alloc() at netbsd:pci_intr_alloc+0x127 sys/arch/x86/pci/pci_intr_machdep.c:573
virtio_pci_alloc_interrupts() at netbsd:virtio_pci_alloc_interrupts+0x3be sys/dev/pci/virtio_pci.c:1171
virtio_child_attach_finish() at netbsd:virtio_child_attach_finish+0x55f sys/dev/pci/virtio.c:1389
viomb_attach() at netbsd:viomb_attach+0x5c5 sys/dev/pci/viomb.c:194
config_attach_internal() at netbsd:config_attach_internal+0x4d5 sys/kern/subr_autoconf.c:1832
config_found_acquire() at netbsd:config_found_acquire+0x6a sys/kern/subr_autoconf.c:1275
--db_more--

Crashes (414):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/06 02:13 netbsd 72efb380d842 ae98e6b9 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/05 21:08 netbsd 72efb380d842 6ca47dd8 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/05 18:43 netbsd 9e8b173b997e 6ca47dd8 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/05 13:31 netbsd 6d5fb7c7bff6 6ca47dd8 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/05 08:52 netbsd 6d5fb7c7bff6 b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/05 05:52 netbsd 0209310e1e41 b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/05 03:17 netbsd 5c76ccdc7982 b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/05 00:31 netbsd fd36732d18e4 b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/04 20:37 netbsd 914298241c65 b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/04 18:03 netbsd b82bd96e5dcb b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/04 14:13 netbsd d44cbe3ac89b b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/04 11:51 netbsd f965ef9a470b b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/04 02:57 netbsd 309fd22513fe b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/03 23:48 netbsd 3d78a0577490 b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/03 20:59 netbsd f61edb39439c b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/03 17:46 netbsd d2a90b7a99da b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/03 14:00 netbsd 9da2d607c7b5 b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/03 11:00 netbsd 523068663897 b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/03 05:49 netbsd a9a4f997828f b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/03 03:18 netbsd 152af96e5248 b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/03 00:51 netbsd 99391f662323 b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/02 21:38 netbsd 7c6fb521cfe8 b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/02 16:42 netbsd fd12f9bf8190 b0714e37 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/02 12:40 netbsd fd12f9bf8190 d7f099d1 .config console log report ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/02 09:11 netbsd 62acccdf5643 d7f099d1 .config console log report ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/02 07:14 netbsd 62acccdf5643 51b137cd .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/02 02:38 netbsd 5e8595b5ceeb 51b137cd .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/01 22:18 netbsd f73c4012f6d4 51b137cd .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/01 20:18 netbsd e3f255dd3be1 51b137cd .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/01 17:48 netbsd 5ffb12de143d 51b137cd .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/01 13:58 netbsd cf2285895c91 51b137cd .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/01 12:58 netbsd a63d82079215 51b137cd .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/01 11:24 netbsd a63d82079215 ce7952f4 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/01 08:07 netbsd c27fe0a20621 ce7952f4 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/01 05:38 netbsd 088aa622ebac ce7952f4 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/30 21:14 netbsd e6a2d74ebcb7 ce7952f4 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/30 19:24 netbsd e6a2d74ebcb7 85a5a23f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/30 17:03 netbsd 2af0e5da1188 85a5a23f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/30 13:13 netbsd 806bc3af07b7 85a5a23f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/30 09:31 netbsd f147045a9318 85a5a23f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/30 04:26 netbsd c382a0b390b5 85a5a23f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/30 00:50 netbsd 112546ac0403 85a5a23f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/29 19:32 netbsd 433542087936 85a5a23f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/29 15:08 netbsd 433542087936 aeb6ec69 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/29 12:28 netbsd f3a12ae6b137 aeb6ec69 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/29 08:49 netbsd 176d05d8303c aeb6ec69 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/29 06:22 netbsd 7e0c3e9a0654 aeb6ec69 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/29 01:57 netbsd 46b7fbc759f9 aeb6ec69 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/28 23:25 netbsd cb45be917737 aeb6ec69 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/28 20:45 netbsd a4e46e138b4b aeb6ec69 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/28 19:14 netbsd 60d3f002686e aeb6ec69 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/28 17:44 netbsd 60d3f002686e c6b4fb39 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/28 14:28 netbsd 88f1dbcab5eb c6b4fb39 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/04/28 12:12 netbsd f5a9cff097f3 c6b4fb39 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/02/24 20:24 netbsd 19c0a1efffc4 d34966d1 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
* Struck through repros no longer work on HEAD.