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: 128d, last: 3h52m

Sample crash report:
[   1.0079173] 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 0xffff8ec6c8a41b11 for type 'union AML_RESOURCE' which requires 4 byte alignment

[   1.0079173] cpu0: Begin traceback...
[   1.0079173] vpanic() at netbsd:vpanic+0x2f3 sys/kern/subr_prf.c:288
[   1.0079173] Report() at netbsd:Report+0x3b sys/../common/lib/libc/misc/ubsan.c:1352
[   1.0079173] HandleTypeMismatch() at netbsd:HandleTypeMismatch+0xfc sys/../common/lib/libc/misc/ubsan.c:432
[   1.0079173] AcpiRsSetResourceHeader() at netbsd:AcpiRsSetResourceHeader+0x13f sys/external/bsd/acpica/dist/resources/rsutils.c:407
[   1.0079173] AcpiRsConvertResourceToAml() at netbsd:AcpiRsConvertResourceToAml+0xb9c sys/external/bsd/acpica/dist/resources/rsmisc.c:634
[   1.0079173] AcpiRsConvertResourcesToAml() at netbsd:AcpiRsConvertResourcesToAml+0xa1 sys/external/bsd/acpica/dist/resources/rslist.c:359
[   1.0079173] AcpiRsCreateAmlResources() at netbsd:AcpiRsCreateAmlResources+0xe3 sys/external/bsd/acpica/dist/resources/rscreate.c:608
[   1.0079173] AcpiRsSetSrsMethodData() at netbsd:AcpiRsSetSrsMethodData+0xc7 sys/external/bsd/acpica/dist/resources/rsutils.c:942
[   1.0079173] AcpiSetCurrentResources() at netbsd:AcpiSetCurrentResources+0x11a sys/external/bsd/acpica/dist/resources/rsxface.c:454
[   1.0079173] 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.0079173] acpi_pci_link_route_interrupt() at netbsd:acpi_pci_link_route_interrupt+0x746 sys/dev/acpi/acpi_pci_link.c:1068
[   1.0079173] mpacpi_findintr_linkdev() at netbsd:mpacpi_findintr_linkdev+0x84 sys/arch/x86/x86/mpacpi.c:1035
[   1.0079173] intr_find_mpmapping() at netbsd:intr_find_mpmapping+0x291 intr_scan_bus sys/arch/x86/x86/mp.c:226 [inline]
[   1.0079173] intr_find_mpmapping() at netbsd:intr_find_mpmapping+0x291 sys/arch/x86/x86/mp.c:191
[   1.0079173] pci_intr_map() at netbsd:pci_intr_map+0x2d3 sys/arch/x86/pci/pci_intr_machdep.c:156
[   1.0079173] pci_intx_alloc() at netbsd:pci_intx_alloc+0x46 sys/arch/x86/pci/pci_intr_machdep.c:448
[   1.0079173] pci_intr_alloc() at netbsd:pci_intr_alloc+0x127 sys/arch/x86/pci/pci_intr_machdep.c:573
[   1.0079173] virtio_pci_alloc_interrupts() at netbsd:virtio_pci_alloc_interrupts+0x3be sys/dev/pci/virtio_pci.c:1171
[   1.0079173] virtio_child_attach_finish() at netbsd:virtio_child_attach_finish+0x55f sys/dev/pci/virtio.c:1389
[   1.0079173] viomb_attach() at netbsd:viomb_attach+0x5c5 sys/dev/pci/viomb.c:194
[   1.0079173] config_attach_internal() at netbsd:config_attach_internal+0x4d5 sys/kern/subr_autoconf.c:1832
[   1.0079173] config_found_acquire() at netbsd:config_found_acquire+0x6a sys/kern/subr_autoconf.c:1275
[   1.0079173] config_found() at netbsd:config_found+0x4c sys/kern/subr_autoconf.c:1317
[   1.0079173] virtio_pci_rescan() at netbsd:virtio_pci_rescan+0x86 sys/dev/pci/virtio_pci.c:350
[   1.0079173] virtio_pci_attach() at netbsd:virtio_pci_attach+0x456 sys/dev/pci/virtio_pci.c:331
[   1.0079173] config_attach_internal() at netbsd:config_attach_internal+0x4d5 sys/kern/subr_autoconf.c:1832
[   1.0079173] config_found_acquire() at netbsd:config_found_acquire+0x6a sys/kern/subr_autoconf.c:1275
[   1.0079173] config_found() at netbsd:config_found+0x4c sys/kern/subr_autoconf.c:1317
[   1.0079173] pci_probe_device1() at netbsd:pci_probe_device1+0xeaa sys/dev/pci/pci.c:488
[   1.0079173] pci_enumerate_bus1() at netbsd:pci_enumerate_bus1+0x477 sys/dev/pci/pci.c:851
[   1.0079173] pcirescan() at netbsd:pcirescan+0x73 sys/dev/pci/pci.c:113
[   1.0079173] pciattach() at netbsd:pciattach+0x516 sys/dev/pci/pci.c:210
[   1.0079173] config_attach_internal() at netbsd:config_attach_internal+0x4d5 sys/kern/subr_autoconf.c:1832
[   1.0079173] config_found_acquire() at netbsd:config_found_acquire+0x6a sys/kern/subr_autoconf.c:1275
[   1.0079173] config_found() at netbsd:config_found+0x4c sys/kern/subr_autoconf.c:1317
[   1.0079173] mp_pci_scan() at netbsd:mp_pci_scan+0x197 sys/arch/x86/x86/mp.c:96
[   1.0079173] amd64_mainbus_attach() at netbsd:amd64_mainbus_attach+0x517 sys/arch/amd64/amd64/amd64_mainbus.c:220
[   1.0079173] config_attach_internal() at netbsd:config_attach_internal+0x4d5 sys/kern/subr_autoconf.c:1832
[   1.0079173] config_attach() at netbsd:config_attach+0x71 config_attach_acquire sys/kern/subr_autoconf.c:1867 [inline]
[   1.0079173] config_attach() at netbsd:config_attach+0x71 sys/kern/subr_autoconf.c:1895
[   1.0079173] config_rootfound() at netbsd:config_rootfound+0x4e sys/kern/subr_autoconf.c:1336
[   1.0079173] cpu_configure() at netbsd:cpu_configure+0x58 sys/arch/amd64/amd64/autoconf.c:112
[   1.0079173] main() at netbsd:main+0x43d sys/kern/init_main.c:557
[   1.0079173] cpu0: End traceback...
[   1.0079173] fatal breakpoint trap in supervisor mode
[   1.0079173] trap type 1 code 0 rip 0xffffffff8023547d cs 0x8 rflags 0x202 cr2 0 ilevel 0x8 rsp 0xffffffff870b5780
[   1.0079173] curlwp 0xffffffff867f9440 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 (628):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/03 11:05 netbsd 8bf240b25f71 115ceea7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/03 07:56 netbsd ab5dcb28dc7c 115ceea7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/03 05:12 netbsd 719fdc70f399 115ceea7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/02 23:19 netbsd 719fdc70f399 bc80e4f0 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/02 19:54 netbsd 5ffb5d708b6f bc80e4f0 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/02 17:42 netbsd a9892cdec747 bc80e4f0 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/02 06:17 netbsd bfd7e87278ac bc80e4f0 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/02 04:28 netbsd dfea798ee73f bc80e4f0 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/02 02:00 netbsd dfea798ee73f 091a06cd .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/01 23:59 netbsd 768d2cf00f7d 091a06cd .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/01 21:03 netbsd af7aca184e8f 091a06cd .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/01 18:10 netbsd 33217f1ca0d5 091a06cd .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/01 16:47 netbsd f8406c6f7632 091a06cd .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/01 15:22 netbsd 42d573b83dac 091a06cd .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/01 11:05 netbsd 42d573b83dac 6e83b42d .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/01 08:31 netbsd 0eccde506d73 6e83b42d .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/07/01 01:43 netbsd bdc4ad83b891 6e83b42d .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/30 18:27 netbsd 5dac4e086668 6e83b42d .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/30 16:18 netbsd 5dac4e086668 fc9d8ee5 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/30 13:26 netbsd bff6f3d1a532 fc9d8ee5 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/27 22:56 netbsd 65b586ddee03 fc9d8ee5 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/26 14:03 netbsd 65b586ddee03 803ce19b .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/25 19:58 netbsd 65b586ddee03 26d77996 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/25 12:47 netbsd 79d27e912234 26d77996 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/25 10:17 netbsd ee7e228c3953 26d77996 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/25 07:10 netbsd 1e60d18a226f 26d77996 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/25 04:36 netbsd 9dfcfc6d3905 26d77996 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/24 20:38 netbsd 142944465ef0 26d77996 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/24 19:02 netbsd dd5e759ebc87 26d77996 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/24 15:58 netbsd dd5e759ebc87 e2f27c35 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/24 09:51 netbsd bbc1cd7d6521 e2f27c35 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/24 06:33 netbsd 711ac88e7caa e2f27c35 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/24 02:31 netbsd 6742e8feee5e e2f27c35 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/24 00:28 netbsd f1f7ff77d4ac e2f27c35 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/23 23:17 netbsd 0dfa5bc2fc22 e2f27c35 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/23 18:47 netbsd 0dfa5bc2fc22 d6cdfb8a .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/21 21:16 netbsd b559724bcd58 d6cdfb8a .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/21 06:18 netbsd a6f63c5c8772 d6cdfb8a .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/21 03:26 netbsd f05741c053c6 d6cdfb8a .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/20 22:03 netbsd f05741c053c6 804b3919 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/20 19:16 netbsd bdd360b78816 804b3919 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/20 13:55 netbsd 0c7bd1b04fc5 804b3919 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/20 02:14 netbsd 0c7bd1b04fc5 ed3e87f7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/19 21:50 netbsd dfd65997ba0c ed3e87f7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/19 19:02 netbsd 10ec1774ec46 ed3e87f7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/19 16:18 netbsd 141a58df4f80 ed3e87f7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/19 10:38 netbsd 242d5046682f ed3e87f7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/18 14:50 netbsd bda2ed65e5e4 ed3e87f7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/06/18 13:09 netbsd bda2ed65e5e4 ca631f70 .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.