syzbot


KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list (2)

Status: auto-closed as invalid on 2021/12/06 01:22
Reported-by: syzbot+2c308b859c8c103aae53@syzkaller.appspotmail.com
First crash: 1134d, last: 395d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list (4) 2 260d 261d 0/24 auto-closed as invalid on 2022/04/19 11:06
upstream KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list (3) 1 308d 308d 0/24 auto-closed as invalid on 2022/03/02 19:51
upstream KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list 2 1147d 1148d 0/24 closed as invalid on 2019/10/18 14:11

Sample crash report:
==================================================================
BUG: KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list

write to 0xffff888101b57968 of 8 bytes by task 8289 on cpu 1:
 blk_mq_dispatch_rq_list+0xaca/0x1070 block/blk-mq.c:1397
 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:201 [inline]
 blk_mq_do_dispatch_sched+0x3b5/0x640 block/blk-mq-sched.c:214
 __blk_mq_sched_dispatch_requests+0x1eb/0x290
 blk_mq_sched_dispatch_requests+0x9f/0x110 block/blk-mq-sched.c:360
 __blk_mq_run_hw_queue+0xbc/0x140 block/blk-mq.c:1492
 __blk_mq_delay_run_hw_queue+0x163/0x2f0 block/blk-mq.c:1569
 blk_mq_run_hw_queue+0x22c/0x250 block/blk-mq.c:1622
 blk_mq_sched_insert_requests+0x12b/0x1f0 block/blk-mq-sched.c:513
 blk_mq_flush_plug_list+0x302/0x3d0 block/blk-mq.c:1947
 blk_flush_plug_list+0x235/0x260 block/blk-core.c:1726
 blk_finish_plug+0x44/0x60 block/blk-core.c:1743
 read_pages+0x2e9/0x540 mm/readahead.c:150
 page_cache_ra_unbounded+0x3d2/0x430 mm/readahead.c:239
 ondemand_readahead+0x58c/0x7c0
 page_cache_sync_ra+0xaf/0xe0 mm/readahead.c:580
 page_cache_sync_readahead include/linux/pagemap.h:883 [inline]
 filemap_get_pages mm/filemap.c:2545 [inline]
 filemap_read+0x3ad/0x1220 mm/filemap.c:2628
 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2779
 ext4_file_read_iter+0x1db/0x290
 call_read_iter include/linux/fs.h:2157 [inline]
 generic_file_splice_read+0x24f/0x330 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x63e/0xbb0 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1314 [inline]
 __se_sys_sendfile64 fs/read_write.c:1300 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1300
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888101b57968 of 8 bytes by task 8293 on cpu 0:
 blk_mq_dispatch_rq_list+0xab7/0x1070 block/blk-mq.c:1397
 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:201 [inline]
 blk_mq_do_dispatch_sched+0x3b5/0x640 block/blk-mq-sched.c:214
 __blk_mq_sched_dispatch_requests+0x1eb/0x290
 blk_mq_sched_dispatch_requests+0x9f/0x110 block/blk-mq-sched.c:360
 __blk_mq_run_hw_queue+0xbc/0x140 block/blk-mq.c:1492
 __blk_mq_delay_run_hw_queue+0x163/0x2f0 block/blk-mq.c:1569
 blk_mq_run_hw_queue+0x22c/0x250 block/blk-mq.c:1622
 blk_mq_sched_insert_requests+0x12b/0x1f0 block/blk-mq-sched.c:513
 blk_mq_flush_plug_list+0x302/0x3d0 block/blk-mq.c:1947
 blk_flush_plug_list+0x235/0x260 block/blk-core.c:1726
 blk_finish_plug+0x44/0x60 block/blk-core.c:1743
 read_pages+0x2e9/0x540 mm/readahead.c:150
 page_cache_ra_unbounded+0x3d2/0x430 mm/readahead.c:239
 ondemand_readahead+0x58c/0x7c0
 page_cache_sync_ra+0xaf/0xe0 mm/readahead.c:580
 page_cache_sync_readahead include/linux/pagemap.h:883 [inline]
 filemap_get_pages mm/filemap.c:2545 [inline]
 filemap_read+0x3ad/0x1220 mm/filemap.c:2628
 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2779
 ext4_file_read_iter+0x1db/0x290
 call_read_iter include/linux/fs.h:2157 [inline]
 generic_file_splice_read+0x24f/0x330 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x63e/0xbb0 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1314 [inline]
 __se_sys_sendfile64 fs/read_write.c:1300 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1300
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000001745 -> 0x0000000000001746

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8293 Comm: syz-executor.0 Not tainted 5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1741):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/11/01 01:21 upstream 8bb7eca972ad 098b5d53 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/31 11:39 upstream 180eca540ae0 098b5d53 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/30 21:50 upstream 119c85055d86 098b5d53 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/30 00:39 upstream a379fbbcb88b 098b5d53 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/29 07:42 upstream f25a5481af12 2353a3ec .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/28 18:38 upstream 411a44c24a56 be531bb4 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/28 00:14 upstream 1fc596a56b33 be531bb4 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/27 13:46 upstream d25f27432f80 be531bb4 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/27 12:34 upstream d25f27432f80 373bf66b .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/27 04:13 upstream d25f27432f80 d50eb50a .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/26 12:38 upstream 3906fe9bb7f1 d50eb50a .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/25 19:55 upstream 87066fdd2e30 c1132b49 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/25 18:03 upstream 87066fdd2e30 4f0000ee .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/24 23:09 upstream 6c62666d8879 4f0000ee .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/23 06:28 upstream 9c0c4d24ac00 282f03fb .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/22 15:23 upstream 64222515138e 282f03fb .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/22 14:11 upstream 64222515138e 55f90bc6 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/21 19:31 upstream 2f111a6fd5b5 55f90bc6 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/21 13:44 upstream 2f111a6fd5b5 c5cb7da8 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/20 22:43 upstream 2f111a6fd5b5 f111d03b .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/20 10:41 upstream d9abdee5fd5a 418a00eb .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/19 17:56 upstream d9abdee5fd5a 466b7db1 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/18 16:38 upstream 519d81956ee2 24dc29db .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/18 06:01 upstream cf52ad5ff16c 0c5d9412 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/17 05:56 upstream d999ade1cc86 0c5d9412 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/16 20:10 upstream 304040fb4909 0c5d9412 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/15 15:18 upstream 8fe31e0995f0 0c5d9412 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/15 08:19 upstream ec681c53f8d2 aab7690b .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/14 19:39 upstream 26d657410983 7aa5fe41 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/14 14:53 upstream 26d657410983 5462d470 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/13 21:04 upstream 348949d9a444 5462d470 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/13 09:10 upstream f4d0cc426f77 9d56e7dd .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/12 23:08 upstream f4d0cc426f77 08362356 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/12 14:25 upstream fa5878760579 08362356 .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/12 00:52 upstream fa5878760579 838e7e2c .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/11 08:43 upstream 64570fbc14f8 838e7e2c .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/10 19:07 upstream efb52a7d9511 838e7e2c .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/10 01:29 upstream 7fd2bf83d59a 838e7e2c .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/09 11:35 upstream 5d6ab0bb408f 838e7e2c .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/08 20:23 upstream 741668ef7832 efe0f24d .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/08 10:48 upstream 1da38549dd64 efe0f24d .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/10/07 17:47 upstream 4a16df549d23 efe0f24d .config log report info KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
ci2-upstream-kcsan-gce 2021/01/17 09:55 upstream 0da0a8a0a0e1 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2019/10/23 02:54 https://github.com/google/ktsan.git kcsan 05f2236801fe d0686497 .config log report
* Struck through repros no longer work on HEAD.