NetBSD-Syzbot archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
netbsd boot error: assert failed: len <= map->dm_mapsize - offset
Hello,
syzbot found the following issue on:
HEAD commit: 6bfb81db0d13 pci_resource(9): Fix whitespace.
git tree: netbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=12cecf62880000
kernel config: https://syzkaller.appspot.com/x/.config?x=739e57438eb9ed9e
dashboard link: https://syzkaller.appspot.com/bug?extid=806fc6a0e01e8742ca69
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/edf7999df63c/disk-6bfb81db.raw.xz
netbsd.gdb: https://storage.googleapis.com/syzbot-assets/8c66cf76a394/netbsd-6bfb81db.gdb.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+806fc6a0e01e8742ca69%syzkaller.appspotmail.com@localhost
[ 1.0525827] panic: kernel diagnostic assertion "len <= map->dm_mapsize - offset" failed: file "/syzkaller/managers/ci2-netbsd-kmsan/kernel/sys/arch/x86/x86/bus_dma.c", line 816 bad length 0x0 + 1000 > 3
[ 1.0525827] cpu0: Begin traceback...
[ 1.0525827] vpanic() at netbsd:vpanic+0xc9d
[ 1.0525827] kern_assert() at netbsd:kern_assert+0x228
[ 1.0525827] bus_dmamap_sync() at netbsd:bus_dmamap_sync+0x1364 _bus_dmamap_sync sys/arch/x86/x86/bus_dma.c:813 [inline]
[ 1.0525827] bus_dmamap_sync() at netbsd:bus_dmamap_sync+0x1364 sys/arch/x86/x86/bus_dma.c:1373
[ 1.0525827] virtio_enqueue_commit() at netbsd:virtio_enqueue_commit+0x1ac sys/dev/pci/virtio.c:1139
[ 1.0525827] viornd_get() at netbsd:viornd_get+0x440 sys/dev/pci/viornd.c:87
[ 1.0525827] rnd_attach_source() at netbsd:rnd_attach_source+0xb65
[ 1.0525827] viornd_attach() at netbsd:viornd_attach+0xed6
[ 1.0525827] config_attach_internal() at netbsd:config_attach_internal+0xdb7 sys/kern/subr_autoconf.c:1775
[ 1.0525827] config_found() at netbsd:config_found+0x411 sys/kern/subr_autoconf.c:1262
[ 1.0525827] virtio_pci_attach() at netbsd:virtio_pci_attach+0x1853 virtio_pci_rescan sys/dev/pci/virtio_pci.c:317 [inline]
[ 1.0525827] virtio_pci_attach() at netbsd:virtio_pci_attach+0x1853 sys/dev/pci/virtio_pci.c:297
[ 1.0525827] config_attach_internal() at netbsd:config_attach_internal+0xdb7 sys/kern/subr_autoconf.c:1775
[ 1.0525827] config_found() at netbsd:config_found+0x411 sys/kern/subr_autoconf.c:1262
[ 1.0525827] pci_probe_device() at netbsd:pci_probe_device+0x26d4 sys/dev/pci/pci.c:488
[ 1.0525827] pci_enumerate_bus() at netbsd:pci_enumerate_bus+0x10d5 sys/dev/pci/pci.c:819
[ 1.0525827] pciattach() at netbsd:pciattach+0xcc6 sys/dev/pci/pci.c:207
[ 1.0525827] config_attach_internal() at netbsd:config_attach_internal+0xdb7 sys/kern/subr_autoconf.c:1775
[ 1.0525827] config_found() at netbsd:config_found+0x411 sys/kern/subr_autoconf.c:1262
[ 1.0525827] mp_pci_scan() at netbsd:mp_pci_scan+0x39e sys/arch/x86/x86/mp.c:96
[ 1.0525827] amd64_mainbus_attach() at netbsd:amd64_mainbus_attach+0x737 sys/arch/amd64/amd64/amd64_mainbus.c:213
[ 1.0525827] mainbus_attach() at netbsd:mainbus_attach+0x70f sys/arch/x86/x86/mainbus.c:245
[ 1.0525827] config_attach_internal() at netbsd:config_attach_internal+0xdb7 sys/kern/subr_autoconf.c:1775
[ 1.0525827] config_rootfound() at netbsd:config_rootfound+0x434 config_attach sys/kern/subr_autoconf.c:1810 [inline]
[ 1.0525827] config_rootfound() at netbsd:config_rootfound+0x434 sys/kern/subr_autoconf.c:1290
[ 1.0525827] cpu_configure() at netbsd:cpu_configure+0xcb sys/arch/amd64/amd64/autoconf.c:112
[ 1.0525827] main() at netbsd:main+0xc04 sys/kern/init_main.c:555
[ 1.0525827] cpu0: End traceback...
[ 1.0525827] fatal breakpoint trap in supervisor mode
[ 1.0525827] trap type 1 code 0 rip 0xffffffff8023675d cs 0x8 rflags 0x286 cr2 0 ilevel 0x8 rsp 0xffffffff86c6e6b0
[ 1.0525827] curlwp 0xffffffff868691c0 pid 0.0 lowest kstack 0xffffffff86c682c0
Stopped in pid 0.0 (system) at netbsd:breakpoint+0x5: leave
breakpoint() at netbsd:breakpoint+0x5
vpanic() at netbsd:vpanic+0xc9d
kern_assert() at netbsd:kern_assert+0x228
bus_dmamap_sync() at netbsd:bus_dmamap_sync+0x1364 _bus_dmamap_sync sys/arch/x86/x86/bus_dma.c:813 [inline]
bus_dmamap_sync() at netbsd:bus_dmamap_sync+0x1364 sys/arch/x86/x86/bus_dma.c:1373
virtio_enqueue_commit() at netbsd:virtio_enqueue_commit+0x1ac sys/dev/pci/virtio.c:1139
viornd_get() at netbsd:viornd_get+0x440 sys/dev/pci/viornd.c:87
rnd_attach_source() at netbsd:rnd_attach_source+0xb65
viornd_attach() at netbsd:viornd_attach+0xed6
config_attach_internal() at netbsd:config_attach_internal+0xdb7 sys/kern/subr_autoconf.c:1775
config_found() at netbsd:config_found+0x411 sys/kern/subr_autoconf.c:1262
virtio_pci_attach() at netbsd:virtio_pci_attach+0x1853 virtio_pci_rescan sys/dev/pci/virtio_pci.c:317 [inline]
virtio_pci_attach() at netbsd:virtio_pci_attach+0x1853 sys/dev/pci/virtio_pci.c:297
config_attach_internal() at netbsd:config_attach_internal+0xdb7 sys/kern/subr_autoconf.c:1775
config_found() at netbsd:config_found+0x411 sys/kern/subr_autoconf.c:1262
pci_probe_device() at netbsd:pci_probe_device+0x26d4 sys/dev/pci/pci.c:488
pci_enumerate_bus() at netbsd:pci_enumerate_bus+0x10d5 sys/dev/pci/pci.c:819
pciattach() at netbsd:pciattach+0xcc6 sys/dev/pci/pci.c:207
config_attach_internal() at netbsd:config_attach_internal+0xdb7 sys/kern/subr_autoconf.c:1775
config_found() at netbsd:config_found+0x411 sys/kern/subr_autoconf.c:1262
mp_pci_scan() at netbsd:mp_pci_scan+0x39e sys/arch/x86/x86/mp.c:96
amd64_mainbus_attach() at netbsd:amd64_mainbus_attach+0x737 sys/arch/amd64/amd64/amd64_mainbus.c:213
mainbus_attach() at netbsd:mainbus_attach+0x70f sys/arch/x86/x86/mainbus.c:245
config_attach_internal() at netbsd:config_attach_internal+0xdb7 sys/kern/subr_autoconf.c:1775
--db_more--
---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller%googlegroups.com@localhost.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
--
You received this message because you are subscribed to the Google Groups "syzkaller-netbsd-bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-netbsd-bugs+unsubscribe%googlegroups.com@localhost.
To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-netbsd-bugs/00000000000041cbd805eb2216e5%40google.com.
Home |
Main Index |
Thread Index |
Old Index