syzbot


netbsd boot error: assert failed: len <= map->dm_mapsize - offset

Status: auto-obsoleted due to no activity on 2022/12/16 12:40
Reported-by: syzbot+806fc6a0e01e8742ca69@syzkaller.appspotmail.com
First crash: 767d, last: 766d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset (2) 135 603d 606d 3/3 fixed on 2023/03/29 14:18

Sample crash report:
[   1.0530085] 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.0530085] cpu0: Begin traceback...
[   1.0530085] vpanic() at netbsd:vpanic+0xc9d
[   1.0530085] kern_assert() at netbsd:kern_assert+0x228
[   1.0530085] bus_dmamap_sync() at netbsd:bus_dmamap_sync+0x1364 _bus_dmamap_sync sys/arch/x86/x86/bus_dma.c:813 [inline]
[   1.0530085] bus_dmamap_sync() at netbsd:bus_dmamap_sync+0x1364 sys/arch/x86/x86/bus_dma.c:1373
[   1.0530085] virtio_enqueue_commit() at netbsd:virtio_enqueue_commit+0x1ac sys/dev/pci/virtio.c:1139
[   1.0530085] viornd_get() at netbsd:viornd_get+0x440 sys/dev/pci/viornd.c:87
[   1.0530085] rnd_attach_source() at netbsd:rnd_attach_source+0xb65
[   1.0530085] viornd_attach() at netbsd:viornd_attach+0xed6
[   1.0530085] config_attach_internal() at netbsd:config_attach_internal+0xdb7 sys/kern/subr_autoconf.c:1775
[   1.0530085] config_found() at netbsd:config_found+0x411 sys/kern/subr_autoconf.c:1262
[   1.0530085] virtio_pci_attach() at netbsd:virtio_pci_attach+0x1853 virtio_pci_rescan sys/dev/pci/virtio_pci.c:317 [inline]
[   1.0530085] virtio_pci_attach() at netbsd:virtio_pci_attach+0x1853 sys/dev/pci/virtio_pci.c:297
[   1.0530085] config_attach_internal() at netbsd:config_attach_internal+0xdb7 sys/kern/subr_autoconf.c:1775
[   1.0530085] config_found() at netbsd:config_found+0x411 sys/kern/subr_autoconf.c:1262
[   1.0530085] pci_probe_device() at netbsd:pci_probe_device+0x26d4 sys/dev/pci/pci.c:488
[   1.0530085] pci_enumerate_bus() at netbsd:pci_enumerate_bus+0x10d5 sys/dev/pci/pci.c:819
[   1.0530085] pciattach() at netbsd:pciattach+0xcc6 sys/dev/pci/pci.c:207
[   1.0530085] config_attach_internal() at netbsd:config_attach_internal+0xdb7 sys/kern/subr_autoconf.c:1775
[   1.0530085] config_found() at netbsd:config_found+0x411 sys/kern/subr_autoconf.c:1262
[   1.0530085] mp_pci_scan() at netbsd:mp_pci_scan+0x39e sys/arch/x86/x86/mp.c:96
[   1.0530085] amd64_mainbus_attach() at netbsd:amd64_mainbus_attach+0x737 sys/arch/amd64/amd64/amd64_mainbus.c:213
[   1.0530085] mainbus_attach() at netbsd:mainbus_attach+0x70f sys/arch/x86/x86/mainbus.c:245
[   1.0530085] config_attach_internal() at netbsd:config_attach_internal+0xdb7 sys/kern/subr_autoconf.c:1775
[   1.0530085] config_rootfound() at netbsd:config_rootfound+0x434 config_attach sys/kern/subr_autoconf.c:1810 [inline]
[   1.0530085] config_rootfound() at netbsd:config_rootfound+0x434 sys/kern/subr_autoconf.c:1290
[   1.0530085] cpu_configure() at netbsd:cpu_configure+0xcb sys/arch/amd64/amd64/autoconf.c:112
[   1.0530085] main() at netbsd:main+0xc04 sys/kern/init_main.c:555
[   1.0530085] cpu0: End traceback...
[   1.0530085] fatal breakpoint trap in supervisor mode
[   1.0530085] trap type 1 code 0 rip 0xffffffff8023675d cs 0x8 rflags 0x286 cr2 0 ilevel 0x8 rsp 0xffffffff86c6e6b0
[   1.0530085] curlwp 0xffffffff86869300 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--

Crashes (48):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/17 12:13 netbsd b19cdf75dd43 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 04:52 netbsd a41f20b04823 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 04:51 netbsd a41f20b04823 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 04:28 netbsd a41f20b04823 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 04:28 netbsd a41f20b04823 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 04:28 netbsd a41f20b04823 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 03:26 netbsd 7e3854b42e39 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 03:26 netbsd 7e3854b42e39 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 03:26 netbsd 7e3854b42e39 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 03:01 netbsd 7e3854b42e39 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 03:01 netbsd 7e3854b42e39 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 03:01 netbsd 7e3854b42e39 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 01:10 netbsd 7789112edfc1 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 01:10 netbsd 7789112edfc1 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 01:09 netbsd 7789112edfc1 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 00:47 netbsd 7789112edfc1 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 00:47 netbsd 7789112edfc1 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/17 00:47 netbsd 7789112edfc1 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 14:05 netbsd 38369b93e1c5 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 14:05 netbsd 38369b93e1c5 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 14:05 netbsd 38369b93e1c5 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 13:41 netbsd 38369b93e1c5 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 13:40 netbsd 38369b93e1c5 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 13:40 netbsd 38369b93e1c5 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 11:22 netbsd 3009c46368f0 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 11:22 netbsd 3009c46368f0 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 11:22 netbsd 3009c46368f0 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 10:59 netbsd 3009c46368f0 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 10:58 netbsd 3009c46368f0 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 10:58 netbsd 3009c46368f0 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 09:50 netbsd de9988f21728 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 09:50 netbsd de9988f21728 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 09:50 netbsd de9988f21728 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 09:27 netbsd de9988f21728 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 09:27 netbsd de9988f21728 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 09:27 netbsd de9988f21728 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 08:11 netbsd 6bfb81db0d13 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 08:11 netbsd 6bfb81db0d13 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 08:11 netbsd 6bfb81db0d13 67cb024c .config console log report ci2-netbsd netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 07:48 netbsd 6bfb81db0d13 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 07:48 netbsd 6bfb81db0d13 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
2022/10/16 07:48 netbsd 6bfb81db0d13 67cb024c .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: len <= map->dm_mapsize - offset
* Struck through repros no longer work on HEAD.