syzbot


netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync

Status: fixed on 2022/04/01 15:56
Reported-by: syzbot+f91ba3ad8983b7f1611a@syzkaller.appspotmail.com
Fix commit: 9fdc83c65c2c Initialize "replun" -- found with KMSAN.
First crash: 826d, last: 817d

Sample crash report:
[   2.0557136] panic: MSan: Uninitialized Stack Memory In LinearDmaSyncOp At Offset 20, Variable 'replun.i.i' From scsi_probe_bus()

[   2.0653287] cpu1: Begin traceback...
[   2.0753607] vpanic() at netbsd:vpanic+0x9ec
[   2.1053438] panic() at netbsd:panic+0x1b3 sys/kern/subr_prf.c:209
[   2.1353460] kmsan_report_hook() at netbsd:kmsan_report_hook+0x184 sys/kern/subr_msan.c:178
[   2.1653486] bus_dmamap_sync() at netbsd:bus_dmamap_sync+0x10b
[   2.2053465] vioscsi_scsipi_request() at netbsd:vioscsi_scsipi_request+0x1839
[   2.2353601] scsipi_run_queue() at netbsd:scsipi_run_queue+0x2011 scsipi_adapter_request sys/dev/scsipi/scsipi_base.c:2832 [inline]
[   2.2353601] scsipi_run_queue() at netbsd:scsipi_run_queue+0x2011 sys/dev/scsipi/scsipi_base.c:2183
[   2.2653493] scsipi_execute_xs() at netbsd:scsipi_execute_xs+0xe7e sys/dev/scsipi/scsipi_base.c:2204
[   2.2953493] scsipi_command() at netbsd:scsipi_command+0x386
[   2.3253433] scsi_probe_bus() at netbsd:scsi_probe_bus+0xe01 scsi_report_luns sys/dev/scsipi/scsiconf.c:428 [inline]
[   2.3253433] scsi_probe_bus() at netbsd:scsi_probe_bus+0xe01 scsi_discover_luns sys/dev/scsipi/scsiconf.c:483 [inline]
[   2.3253433] scsi_probe_bus() at netbsd:scsi_probe_bus+0xe01 sys/dev/scsipi/scsiconf.c:542
[   2.3553649] scsibus_config() at netbsd:scsibus_config+0x349 sys/dev/scsipi/scsiconf.c:325
[   2.4153226] scsibus_discover_thread() at netbsd:scsibus_discover_thread+0x28 sys/dev/scsipi/scsiconf.c:291
[   2.4253207] cpu1: End traceback...
[   2.4353190] fatal breakpoint trap in supervisor mode
[   2.4353190] trap type 1 code 0 rip 0xffffffff8022288d cs 0x8 rflags 0x286 cr2 0 ilevel 0 rsp 0xffff97806f0b8480
[   2.4453181] curlwp 0xffff9780117ff6c0 pid 0.30 lowest kstack 0xffff97806f0b12c0
Stopped in pid 0.30 (system) at netbsd:breakpoint+0x5:  leave
breakpoint() at netbsd:breakpoint+0x5
vpanic() at netbsd:vpanic+0x9ec
panic() at netbsd:panic+0x1b3 sys/kern/subr_prf.c:209
kmsan_report_hook() at netbsd:kmsan_report_hook+0x184 sys/kern/subr_msan.c:178
bus_dmamap_sync() at netbsd:bus_dmamap_sync+0x10b
vioscsi_scsipi_request() at netbsd:vioscsi_scsipi_request+0x1839
scsipi_run_queue() at netbsd:scsipi_run_queue+0x2011 scsipi_adapter_request sys/dev/scsipi/scsipi_base.c:2832 [inline]
scsipi_run_queue() at netbsd:scsipi_run_queue+0x2011 sys/dev/scsipi/scsipi_base.c:2183
scsipi_execute_xs() at netbsd:scsipi_execute_xs+0xe7e sys/dev/scsipi/scsipi_base.c:2204
scsipi_command() at netbsd:scsipi_command+0x386
scsi_probe_bus() at netbsd:scsi_probe_bus+0xe01 scsi_report_luns sys/dev/scsipi/scsiconf.c:428 [inline]
scsi_probe_bus() at netbsd:scsi_probe_bus+0xe01 scsi_discover_luns sys/dev/scsipi/scsiconf.c:483 [inline]
scsi_probe_bus() at netbsd:scsi_probe_bus+0xe01 sys/dev/scsipi/scsiconf.c:542
scsibus_config() at netbsd:scsibus_config+0x349 sys/dev/scsipi/scsiconf.c:325
scsibus_discover_thread() at netbsd:scsibus_discover_thread+0x28 sys/dev/scsipi/scsiconf.c:291
ds          a918
es          ba33
fs          8470
gs          0
rdi         5
rsi         0
rbp         ffff97806f0b8480
rbx         0
rdx         1
rcx         ffff9780117ff6c0
--db_more--

Crashes (177):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/05 19:16 netbsd c4bf1cbe0ae2 a7dab638 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/05 17:38 netbsd 0523b4af230d a7dab638 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/05 13:45 netbsd 25702d44cb74 a7dab638 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/05 10:34 netbsd fc3d630a799d a7dab638 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/05 04:05 netbsd fc3d630a799d e13a05ed .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/05 02:09 netbsd 96ab9b0200dc e13a05ed .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/05 02:09 netbsd 96ab9b0200dc e13a05ed .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/04 23:56 netbsd 043332616c95 e13a05ed .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/04 22:34 netbsd 08f94d966f23 e13a05ed .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/04 20:44 netbsd 08f94d966f23 a3e470b2 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/04 18:53 netbsd 4f0cb528a9ed a3e470b2 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/04 10:36 netbsd 76de611b274e a3e470b2 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/04 09:34 netbsd 76de611b274e 30646bfe .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/04 01:58 netbsd c7f4f3706791 30646bfe .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/04 01:58 netbsd c7f4f3706791 30646bfe .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/04 00:00 netbsd afeb3d00e893 30646bfe .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/03 19:47 netbsd 447656580c29 30646bfe .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/03 13:13 netbsd 447656580c29 4ebb2798 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/03 01:51 netbsd b4a9ee597c7f 4ebb2798 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/02 19:59 netbsd a3673b9826b7 4ebb2798 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/02 09:21 netbsd c3377fcb5607 4ebb2798 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/02 04:14 netbsd 1d9f2438e6ee 4ebb2798 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/01 22:24 netbsd 391c28010df7 c1c1631d .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/01 20:25 netbsd d7c07216d417 c1c1631d .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/01 17:28 netbsd 547b12604791 c1c1631d .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/01 15:05 netbsd ab47608acaf5 c1c1631d .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/01 15:05 netbsd ab47608acaf5 c1c1631d .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/01 12:28 netbsd ad50fcd4eec3 c1c1631d .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/01 10:10 netbsd 66b3d6237752 6b7c57fe .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/01 08:10 netbsd 70b9504a2bd8 6b7c57fe .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/01 04:14 netbsd 151b02ce2881 6b7c57fe .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/01 02:42 netbsd 258c6780c66a 6b7c57fe .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/01 00:27 netbsd d23e58e98858 6b7c57fe .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/02/01 00:27 netbsd d23e58e98858 6b7c57fe .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/01/31 22:18 netbsd 982656fc51c9 6b7c57fe .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/01/31 20:06 netbsd a0487e28860b a491ad2d .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/01/31 18:01 netbsd 2feacb00703d a491ad2d .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/01/31 14:28 netbsd bdf84b8b7e4f a491ad2d .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/01/31 12:14 netbsd 5835b9452d46 a491ad2d .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/01/31 10:00 netbsd 62a9d56bac25 a491ad2d .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/01/31 08:44 netbsd b4329d503698 a491ad2d .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/01/30 23:59 netbsd b4329d503698 495e00c5 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/01/30 22:08 netbsd 91d3258f4280 495e00c5 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/01/30 17:27 netbsd 01d09bed5616 495e00c5 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/01/30 15:33 netbsd 060be59da116 495e00c5 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/01/30 02:11 netbsd b40a169f5fe1 495e00c5 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/01/30 02:11 netbsd b40a169f5fe1 495e00c5 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
2022/01/28 05:11 netbsd 18e3a769564f 495e00c5 .config console log report ci2-netbsd-kmsan netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync
* Struck through repros no longer work on HEAD.