syzbot


KMSAN: uninit-value in scsi_mode_sense

Status: upstream: reported C repro on 2020/09/01 17:18
Reported-by: syzbot+6b02c1da3865f750164a@syzkaller.appspotmail.com
First crash: 779d, last: 182d
Patch testing requests:
Created Duration User Patch Repo Result
2021/05/05 23:16 23m phil@philpotter.co.uk patch https://github.com/google/kmsan.git master OK
2020/09/02 23:28 14m dragonjetli@gmail.com https://github.com/google/kmsan.git master report log

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in scsi_mode_sense+0x1064/0x1710 drivers/scsi/scsi_lib.c:2166
CPU: 0 PID: 819 Comm: kworker/u4:13 Not tainted 5.13.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_unbound async_run_entry_fn
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x24c/0x2e0 lib/dump_stack.c:120
 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:121
 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:200
 scsi_mode_sense+0x1064/0x1710 drivers/scsi/scsi_lib.c:2166
 sd_read_write_protect_flag drivers/scsi/sd.c:2648 [inline]
 sd_revalidate_disk+0x705e/0xdd40 drivers/scsi/sd.c:3238
 sd_probe+0xfa1/0x1780 drivers/scsi/sd.c:3474
 really_probe+0xc71/0x25a0 drivers/base/dd.c:580
 driver_probe_device+0x31b/0x420 drivers/base/dd.c:763
 __device_attach_driver+0x6d8/0x8d0 drivers/base/dd.c:870
 bus_for_each_drv+0x2c8/0x3f0 drivers/base/bus.c:431
 __device_attach_async_helper+0x311/0x3e0 drivers/base/dd.c:896
 async_run_entry_fn+0xd2/0x630 kernel/async.c:127
 process_one_work+0x1219/0x1fe0 kernel/workqueue.c:2276
 worker_thread+0x10ec/0x2340 kernel/workqueue.c:2422
 kthread+0x521/0x560 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:120 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:288
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:225
 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:245
 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110
 bio_copy_kern_endio_read+0x484/0x5e0 block/blk-map.c:403
 bio_endio+0x8e2/0xa70 block/bio.c:1416
 req_bio_endio block/blk-core.c:265 [inline]
 blk_update_request+0xf2e/0x2690 block/blk-core.c:1454
 scsi_end_request+0x117/0xe20 drivers/scsi/scsi_lib.c:537
 scsi_io_completion+0x34e/0x3040 drivers/scsi/scsi_lib.c:937
 scsi_finish_command+0x82d/0x850 drivers/scsi/scsi.c:214
 scsi_complete+0x24d/0xb00 drivers/scsi/scsi_lib.c:1426
 blk_complete_reqs block/blk-mq.c:577 [inline]
 blk_done_softirq+0x130/0x1d0 block/blk-mq.c:582
 __do_softirq+0x1b9/0x715 kernel/softirq.c:559

Uninit was created at:
 kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:120
 kmsan_alloc_page+0xd0/0x1e0 mm/kmsan/kmsan_shadow.c:274
 __alloc_pages+0xb14/0xf70 mm/page_alloc.c:5241
 alloc_pages+0x7b6/0xb60 mm/mempolicy.c:2272
 bio_copy_kern block/blk-map.c:449 [inline]
 blk_rq_map_kern+0xcfd/0x1430 block/blk-map.c:640
 __scsi_execute+0x337/0xbf0 drivers/scsi/scsi_lib.c:224
 scsi_execute_req include/scsi/scsi_device.h:462 [inline]
 scsi_mode_sense+0x652/0x1710 drivers/scsi/scsi_lib.c:2143
 sd_read_write_protect_flag drivers/scsi/sd.c:2648 [inline]
 sd_revalidate_disk+0x705e/0xdd40 drivers/scsi/sd.c:3238
 sd_probe+0xfa1/0x1780 drivers/scsi/sd.c:3474
 really_probe+0xc71/0x25a0 drivers/base/dd.c:580
 driver_probe_device+0x31b/0x420 drivers/base/dd.c:763
 __device_attach_driver+0x6d8/0x8d0 drivers/base/dd.c:870
 bus_for_each_drv+0x2c8/0x3f0 drivers/base/bus.c:431
 __device_attach_async_helper+0x311/0x3e0 drivers/base/dd.c:896
 async_run_entry_fn+0xd2/0x630 kernel/async.c:127
 process_one_work+0x1219/0x1fe0 kernel/workqueue.c:2276
 worker_thread+0x10ec/0x2340 kernel/workqueue.c:2422
 kthread+0x521/0x560 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
=====================================================

Crashes (3451):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2021/08/01 06:09 https://github.com/google/kmsan.git master dfab4dc3af38 6c236867 .config log report syz C KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2020/08/20 14:28 https://github.com/google/kmsan.git master ce8056d1f79e ed282a3a .config log report syz C
ci-upstream-kmsan-gce 2020/08/13 07:07 https://github.com/google/kmsan.git master ce8056d1f79e bc15f7db .config log report syz C
ci-upstream-kmsan-gce 2022/03/27 13:13 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/27 11:27 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/27 07:37 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/27 06:03 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/27 04:59 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/27 03:14 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/27 01:41 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 23:54 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 20:16 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 19:09 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 17:49 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 16:15 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 15:16 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 13:46 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 12:01 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 10:35 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 09:22 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 08:08 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 07:05 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 06:04 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 03:47 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 01:59 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/26 00:30 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/25 23:32 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/25 22:29 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/25 20:28 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/25 18:45 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/25 16:14 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/25 14:33 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/25 13:18 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/25 11:58 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/25 10:57 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/25 09:48 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/25 08:02 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/25 04:34 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/25 03:24 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/25 00:24 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/24 22:35 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/24 18:21 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/24 15:34 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/24 14:16 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce 2022/03/24 13:52 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce-386 2022/03/13 09:55 https://github.com/google/kmsan.git master 724946410067 9e8eaa75 .config log report info KMSAN: uninit-value in scsi_mode_sense
ci-upstream-kmsan-gce-386 2021/01/17 09:11 https://github.com/google/kmsan.git master 73d62e81b476 65a7a854 .config log report info
ci-upstream-kmsan-gce-386 2020/08/07 20:44 https://github.com/google/kmsan.git master 05fd5f9f0208 cb436c69 .config log report
* Struck through repros no longer work on HEAD.