syzbot


KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue (2)

Status: auto-closed as invalid on 2022/06/19 16:38
Reported-by: syzbot+f5359a7d0291ed059d6a@syzkaller.appspotmail.com
First crash: 884d, last: 194d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue 17 892d 950d 0/24 closed as invalid on 2020/06/18 14:24

Sample crash report:
program syz-executor.4 is using a deprecated SCSI ioctl, please convert it to SG_IO
==================================================================
BUG: KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue

write to 0xffff8881027c7810 of 8 bytes by task 9 on cpu 0:
 __list_add include/linux/list.h:72 [inline]
 list_add include/linux/list.h:88 [inline]
 blk_mq_request_bypass_insert+0x6a/0x140 block/blk-mq.c:2359
 blk_mq_sched_insert_request+0xfd/0x220 block/blk-mq-sched.c:441
 blk_mq_requeue_work+0x39b/0x400 block/blk-mq.c:1312
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

read to 0xffff8881027c7810 of 8 bytes by task 31931 on cpu 1:
 list_empty_careful include/linux/list.h:329 [inline]
 blk_mq_hctx_has_pending block/blk-mq.c:101 [inline]
 blk_mq_run_hw_queue+0x19b/0x310 block/blk-mq.c:2097
 blk_mq_sched_insert_requests+0x1cb/0x2a0 block/blk-mq-sched.c:493
 blk_mq_dispatch_plug_list+0x1e9/0x2c0 block/blk-mq.c:2597
 blk_mq_flush_plug_list+0x2ea/0x340 block/blk-mq.c:2639
 __blk_flush_plug+0x25a/0x2b0 block/blk-core.c:1240
 blk_finish_plug+0x44/0x60 block/blk-core.c:1264
 ext4_writepages+0x14a1/0x1970 fs/ext4/inode.c:2855
 do_writepages+0x1db/0x350 mm/page-writeback.c:2352
 filemap_fdatawrite_wbc+0xd6/0xf0 mm/filemap.c:388
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 file_write_and_wait_range+0xd6/0x170 mm/filemap.c:779
 ext4_sync_file+0xad/0x560 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2732 [inline]
 ext4_buffered_write_iter+0x23f/0x280 fs/ext4/file.c:277
 ext4_file_write_iter+0x211/0xdf0
 __kernel_write+0x2c5/0x4f0 fs/read_write.c:536
 do_acct_process+0xb29/0xd10 kernel/acct.c:518
 slow_acct_process+0x17d/0x210 kernel/acct.c:577
 acct_process+0x5d/0x70 kernel/acct.c:601
 do_exit+0x54d/0x1720 kernel/exit.c:785
 do_group_exit+0xa5/0x160 kernel/exit.c:925
 get_signal+0xf54/0x1020 kernel/signal.c:2864
 arch_do_signal_or_restart+0x87/0x2d0 arch/x86/kernel/signal.c:867
 exit_to_user_mode_loop+0x78/0x130 kernel/entry/common.c:166
 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0xffff8881027c7808 -> 0xffff8881025c0048

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 31931 Comm: syz-executor.4 Not tainted 5.18.0-rc6-syzkaller-00161-gbc403203d65a-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (434):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/15 16:38 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/05/10 23:49 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/05/08 16:43 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/05/06 20:45 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/04/27 14:54 upstream 46cf2c613f4b 1fa34c1b .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/04/26 17:00 upstream d615b5416f8a 1fa34c1b .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/04/26 02:37 upstream af2d861d4cd2 152baedd .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/04/24 05:07 upstream 13bc32bad705 131df97d .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/04/21 13:58 upstream b253435746d9 d4befee1 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/04/12 06:10 upstream ce522ba9ef7e af01ee7d .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/04/08 19:27 upstream 1831fed55973 e22c3da3 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/04/08 08:24 upstream 42e7a03d3bad c6ff3e05 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/04/04 12:39 upstream 09bb8856d4a7 79a2a8fc .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/03/28 06:14 upstream f82da161ea75 89bc8608 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/03/27 20:50 upstream f022814633e1 89bc8608 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/03/21 12:23 upstream f443e374ae13 e2d91b1d .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/03/06 04:43 upstream 0014404f9c18 7bdd8b2c .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/03/02 03:33 upstream 575115360652 45a13a73 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/02/27 11:35 upstream 2293be58d6a1 45a13a73 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/02/25 18:31 upstream 53ab78cd6d5a 45a13a73 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/02/17 15:08 upstream f71077a4d84b 2bea8a27 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/02/04 09:48 upstream dcb85f85fa6f a3e470b2 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/01/31 14:29 upstream 26291c54e111 a491ad2d .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/01/30 20:33 upstream 8dd71685dcb7 495e00c5 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/01/27 01:22 upstream 0280e3c58f92 2cbffd88 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/01/18 10:51 upstream e3a8b6a1e70c 731a2d23 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/01/17 23:11 upstream 0c947b893d69 731a2d23 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/01/16 22:54 upstream 79e06c4c4950 723cfaf0 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/01/16 15:27 upstream d0a231f01e5b 723cfaf0 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/01/16 06:59 upstream a33f5c380c4b 723cfaf0 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/01/03 11:04 upstream c9e6606c7fe9 e1768e9c .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2022/01/01 09:38 upstream 800829388818 e1768e9c .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2021/12/23 10:28 upstream bc491fb12513 6caa12e4 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2021/12/14 15:01 upstream 5472f14a3742 d018dd31 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2021/12/14 06:29 upstream 5472f14a3742 5d14b1ea .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2021/12/11 23:06 upstream 6f513529296f 49ca1f59 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2021/12/10 01:42 upstream ded746bfc943 4d4ce9bc .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2021/12/09 21:18 upstream ded746bfc943 b54aa474 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2021/12/06 02:09 upstream 944207047ca4 a617004c .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2021/11/27 04:21 upstream c5c17547b778 63eeac02 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2021/11/22 05:55 upstream 40c93d7fff6f 4eb20a4e .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2021/11/18 01:13 upstream ee1703cda8dc cafff8b6 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2021/11/11 17:05 upstream debe436e77c7 75b04091 .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2021/11/04 13:58 upstream ce840177930f 4c1be0be .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2021/11/03 16:03 upstream dcd68326d29b 4c1be0be .config log report info KCSAN: data-race in blk_mq_request_bypass_insert / blk_mq_run_hw_queue
ci2-upstream-kcsan-gce 2021/01/17 11:22 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2020/09/04 22:27 upstream c70672d8d316 abf9ba4f .config log report
ci2-upstream-kcsan-gce 2020/09/01 11:12 upstream b51594df17d0 d5a3ae1f .config log report
ci2-upstream-kcsan-gce 2020/06/24 10:14 upstream 3e08a95294a4 bbad15ae .config log report
* Struck through repros no longer work on HEAD.