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: 80d, last: 2h30m

Sample crash report:
[   1.0082442] 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.0082442] cpu0: Begin traceback...
[   1.0082442] vpanic() at netbsd:vpanic+0x2f3 sys/kern/subr_prf.c:288
[   1.0082442] Report() at netbsd:Report+0x3b sys/../common/lib/libc/misc/ubsan.c:1352
[   1.0082442] HandleTypeMismatch() at netbsd:HandleTypeMismatch+0xfc sys/../common/lib/libc/misc/ubsan.c:432
[   1.0082442] AcpiRsSetResourceHeader() at netbsd:AcpiRsSetResourceHeader+0x13f sys/external/bsd/acpica/dist/resources/rsutils.c:407
[   1.0082442] AcpiRsConvertResourceToAml() at netbsd:AcpiRsConvertResourceToAml+0xb9c sys/external/bsd/acpica/dist/resources/rsmisc.c:634
[   1.0082442] AcpiRsConvertResourcesToAml() at netbsd:AcpiRsConvertResourcesToAml+0xa1 sys/external/bsd/acpica/dist/resources/rslist.c:359
[   1.0082442] AcpiRsCreateAmlResources() at netbsd:AcpiRsCreateAmlResources+0xe3 sys/external/bsd/acpica/dist/resources/rscreate.c:608
[   1.0082442] AcpiRsSetSrsMethodData() at netbsd:AcpiRsSetSrsMethodData+0xc7 sys/external/bsd/acpica/dist/resources/rsutils.c:942
[   1.0082442] AcpiSetCurrentResources() at netbsd:AcpiSetCurrentResources+0x11a sys/external/bsd/acpica/dist/resources/rsxface.c:454
[   1.0082442] 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.0082442] acpi_pci_link_route_interrupt() at netbsd:acpi_pci_link_route_interrupt+0x746 sys/dev/acpi/acpi_pci_link.c:1068
[   1.0082442] mpacpi_findintr_linkdev() at netbsd:mpacpi_findintr_linkdev+0x84 sys/arch/x86/x86/mpacpi.c:1035
[   1.0082442] intr_find_mpmapping() at netbsd:intr_find_mpmapping+0x291 intr_scan_bus sys/arch/x86/x86/mp.c:226 [inline]
[   1.0082442] intr_find_mpmapping() at netbsd:intr_find_mpmapping+0x291 sys/arch/x86/x86/mp.c:191
[   1.0082442] pci_intr_map() at netbsd:pci_intr_map+0x2d3 sys/arch/x86/pci/pci_intr_machdep.c:156
[   1.0082442] pci_intx_alloc() at netbsd:pci_intx_alloc+0x46 sys/arch/x86/pci/pci_intr_machdep.c:448
[   1.0082442] pci_intr_alloc() at netbsd:pci_intr_alloc+0x127 sys/arch/x86/pci/pci_intr_machdep.c:573
[   1.0082442] virtio_pci_alloc_interrupts() at netbsd:virtio_pci_alloc_interrupts+0x3be sys/dev/pci/virtio_pci.c:1171
[   1.0082442] virtio_child_attach_finish() at netbsd:virtio_child_attach_finish+0x55f sys/dev/pci/virtio.c:1389
[   1.0082442] viomb_attach() at netbsd:viomb_attach+0x5c5 sys/dev/pci/viomb.c:194
[   1.0082442] config_attach_internal() at netbsd:config_attach_internal+0x4d5 sys/kern/subr_autoconf.c:1832
[   1.0082442] config_found_acquire() at netbsd:config_found_acquire+0x6a sys/kern/subr_autoconf.c:1275
[   1.0082442] config_found() at netbsd:config_found+0x4c sys/kern/subr_autoconf.c:1317
[   1.0082442] virtio_pci_rescan() at netbsd:virtio_pci_rescan+0x86 sys/dev/pci/virtio_pci.c:350
[   1.0082442] virtio_pci_attach() at netbsd:virtio_pci_attach+0x456 sys/dev/pci/virtio_pci.c:331
[   1.0082442] config_attach_internal() at netbsd:config_attach_internal+0x4d5 sys/kern/subr_autoconf.c:1832
[   1.0082442] config_found_acquire() at netbsd:config_found_acquire+0x6a sys/kern/subr_autoconf.c:1275
[   1.0082442] config_found() at netbsd:config_found+0x4c sys/kern/subr_autoconf.c:1317
[   1.0082442] pci_probe_device1() at netbsd:pci_probe_device1+0xeaa sys/dev/pci/pci.c:488
[   1.0082442] pci_enumerate_bus1() at netbsd:pci_enumerate_bus1+0x477 sys/dev/pci/pci.c:851
[   1.0082442] pcirescan() at netbsd:pcirescan+0x73 sys/dev/pci/pci.c:113
[   1.0082442] pciattach() at netbsd:pciattach+0x516 sys/dev/pci/pci.c:210
[   1.0082442] config_attach_internal() at netbsd:config_attach_internal+0x4d5 sys/kern/subr_autoconf.c:1832
[   1.0082442] config_found_acquire() at netbsd:config_found_acquire+0x6a sys/kern/subr_autoconf.c:1275
[   1.0082442] config_found() at netbsd:config_found+0x4c sys/kern/subr_autoconf.c:1317
[   1.0082442] mp_pci_scan() at netbsd:mp_pci_scan+0x197 sys/arch/x86/x86/mp.c:96
[   1.0082442] amd64_mainbus_attach() at netbsd:amd64_mainbus_attach+0x517 sys/arch/amd64/amd64/amd64_mainbus.c:220
[   1.0082442] config_attach_internal() at netbsd:config_attach_internal+0x4d5 sys/kern/subr_autoconf.c:1832
[   1.0082442] config_attach() at netbsd:config_attach+0x71 config_attach_acquire sys/kern/subr_autoconf.c:1867 [inline]
[   1.0082442] config_attach() at netbsd:config_attach+0x71 sys/kern/subr_autoconf.c:1895
[   1.0082442] config_rootfound() at netbsd:config_rootfound+0x4e sys/kern/subr_autoconf.c:1336
[   1.0082442] cpu_configure() at netbsd:cpu_configure+0x58 sys/arch/amd64/amd64/autoconf.c:112
[   1.0082442] main() at netbsd:main+0x43d sys/kern/init_main.c:557
[   1.0082442] cpu0: End traceback...
[   1.0082442] fatal breakpoint trap in supervisor mode
[   1.0082442] trap type 1 code 0 rip 0xffffffff8023547d cs 0x8 rflags 0x202 cr2 0 ilevel 0x8 rsp 0xffffffff870b5780
[   1.0082442] curlwp 0xffffffff867f88c0 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--Connection to us-central1-ssh-serialport.googleapis.com closed by remote host.

Crashes (469):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/16 08:55 netbsd 9b5e7d0ad46b cfde8269 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/16 04:01 netbsd a63915e49dc8 cfde8269 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/16 01:37 netbsd a0b57d6c4b2e cfde8269 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/15 16:20 netbsd 21ecc635b06b cfde8269 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/15 13:59 netbsd 21ecc635b06b d6b2ee52 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/15 05:10 netbsd 02a5c856a427 d6b2ee52 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/15 02:36 netbsd 4fcd5977a514 d6b2ee52 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/15 01:31 netbsd 2257750d55d6 d6b2ee52 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/14 23:02 netbsd 2257750d55d6 a4fa04ef .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/14 16:19 netbsd d60d05018f46 a4fa04ef .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/14 13:02 netbsd 74ea252b4373 a4fa04ef .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/14 10:54 netbsd 74ea252b4373 7344edeb .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/14 07:52 netbsd 3ba299f541b5 7344edeb .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/14 05:35 netbsd f7632f1ee345 7344edeb .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/13 19:06 netbsd f1cb95f025f2 7344edeb .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/13 15:48 netbsd 91466c73be6d 7344edeb .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/13 14:43 netbsd ea7e1827e0cb 7344edeb .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/13 09:46 netbsd ea7e1827e0cb f6671af7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/13 07:42 netbsd ac837051f211 f6671af7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/13 04:07 netbsd 732aabecfd60 f6671af7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/12 18:31 netbsd 62fefc6bff3d f6671af7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/12 17:31 netbsd 45960ca092e6 f6671af7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/12 10:57 netbsd 45960ca092e6 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/12 08:21 netbsd 10cfed82c282 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/12 05:24 netbsd 2e595711a2b9 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/12 02:29 netbsd 6fbccf7708eb 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/12 00:12 netbsd c1881602f8f2 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/11 18:26 netbsd d1d622422a9e 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/10 23:46 netbsd cefb785c4c1c 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/10 20:58 netbsd 8331a6f05b6e 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/10 18:43 netbsd e4a8ae239557 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/10 15:32 netbsd 00e3174c6211 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/10 13:25 netbsd ed8dd43d4e2e 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/10 06:12 netbsd 8c34a18af30f 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/10 03:30 netbsd 073a3a54773a 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/10 00:18 netbsd 211e872fa441 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/09 22:00 netbsd 55a241f2480c 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/09 18:59 netbsd ab2f3d515b40 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/09 15:13 netbsd 76791926f610 77908e5f .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/09 12:58 netbsd 76791926f610 bb813bcc .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/09 09:47 netbsd 8d1db4ca7a46 bb813bcc .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/09 04:58 netbsd 84680c5b9546 bb813bcc .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/09 01:28 netbsd 75568e7859a8 bb813bcc .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/08 17:50 netbsd 75568e7859a8 dbf35fa1 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/08 06:52 netbsd 9d927280669b dbf35fa1 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/08 04:01 netbsd 0495e1e072f5 dbf35fa1 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/08 00:14 netbsd 2bcd02594075 dbf35fa1 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/07 21:06 netbsd c5b5810ebd2b dbf35fa1 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/07 19:13 netbsd be7cd4d024ed dbf35fa1 .config console log report [disk image] [netbsd.gdb] ci2-netbsd-kubsan netbsd test error: UBSan: Undefined Behavior in AcpiRsSetResourceHeader
2025/05/07 17:47 netbsd 640cfd0dff3c dbf35fa1 .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.