syzbot


KCSAN: data-race in dd_has_work / dd_insert_request
Status: moderation: reported on 2021/03/30 11:56
Reported-by: syzbot+7cd16c2f3f9c292c2ae7@syzkaller.appspotmail.com
First crash: 449d, last: 8h17m

Sample crash report:
nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead.
==================================================================
BUG: KCSAN: data-race in dd_has_work / dd_insert_request

write to 0xffff88810293d698 of 8 bytes by task 5812 on cpu 1:
 __list_add include/linux/list.h:72 [inline]
 list_add_tail include/linux/list.h:102 [inline]
 dd_insert_request+0x438/0x570 block/mq-deadline.c:759
 dd_insert_requests+0xfc/0x140 block/mq-deadline.c:778
 blk_mq_sched_insert_requests+0xc0/0x2a0 block/blk-mq-sched.c:477
 blk_mq_dispatch_plug_list+0x1e9/0x2c0 block/blk-mq.c:2648
 blk_mq_flush_plug_list+0x2ea/0x340 block/blk-mq.c:2690
 __blk_flush_plug+0x25a/0x2b0 block/blk-core.c:1219
 blk_finish_plug+0x44/0x60 block/blk-core.c:1243
 ext4_writepages+0x172d/0x1d00 fs/ext4/inode.c:2867
 do_writepages+0x1db/0x350 mm/page-writeback.c:2443
 filemap_fdatawrite_wbc+0xd6/0xf0 mm/filemap.c:388
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 filemap_write_and_wait_range+0xbf/0x2e0 mm/filemap.c:673
 __iomap_dio_rw+0x51e/0xf50 fs/iomap/direct-io.c:572
 iomap_dio_rw+0x3c/0x80 fs/iomap/direct-io.c:689
 ext4_dio_read_iter fs/ext4/file.c:79 [inline]
 ext4_file_read_iter+0x22d/0x2a0 fs/ext4/file.c:130
 call_read_iter include/linux/fs.h:2054 [inline]
 generic_file_splice_read+0x1de/0x2c0 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2ac/0x660 fs/splice.c:870
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1297
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

read to 0xffff88810293d698 of 8 bytes by task 5824 on cpu 0:
 list_empty_careful include/linux/list.h:329 [inline]
 dd_has_work_for_prio block/mq-deadline.c:838 [inline]
 dd_has_work+0x188/0x260 block/mq-deadline.c:847
 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:109 [inline]
 blk_mq_do_dispatch_sched+0x148/0x780 block/blk-mq-sched.c:187
 __blk_mq_sched_dispatch_requests+0x1ca/0x270
 blk_mq_sched_dispatch_requests+0x8f/0xf0 block/blk-mq-sched.c:339
 __blk_mq_run_hw_queue+0x7e/0x100 block/blk-mq.c:2025
 __blk_mq_delay_run_hw_queue+0x194/0x390 block/blk-mq.c:2102
 blk_mq_run_hw_queue+0x180/0x310 block/blk-mq.c:2153
 blk_mq_sched_insert_requests+0x1cb/0x2a0 block/blk-mq-sched.c:493
 blk_mq_dispatch_plug_list+0x1e9/0x2c0 block/blk-mq.c:2648
 blk_mq_flush_plug_list+0x2ea/0x340 block/blk-mq.c:2690
 __blk_flush_plug+0x25a/0x2b0 block/blk-core.c:1219
 blk_finish_plug+0x44/0x60 block/blk-core.c:1243
 __iomap_dio_rw+0xc6d/0xf50 fs/iomap/direct-io.c:609
 iomap_dio_rw+0x3c/0x80 fs/iomap/direct-io.c:689
 ext4_dio_read_iter fs/ext4/file.c:79 [inline]
 ext4_file_read_iter+0x22d/0x2a0 fs/ext4/file.c:130
 call_read_iter include/linux/fs.h:2054 [inline]
 generic_file_splice_read+0x1de/0x2c0 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2ac/0x660 fs/splice.c:870
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1297
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

value changed: 0xffff88810293d690 -> 0xffff8881037554c8

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

Crashes (976):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/27 08:29 upstream 7e284070abe5 116e7a7b .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/26 23:53 upstream 16477cdfefdb 3037caa9 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/26 07:51 upstream d7227785e384 3037caa9 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/25 17:41 upstream fdaf9a5840ac 3037caa9 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/25 05:20 upstream 0350785b0a09 647c0e27 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/24 10:23 upstream 143a6252e1b8 fcfad4ff .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/24 04:33 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/23 09:07 upstream 4b0986a3613c 7268fa62 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/22 20:14 upstream 978df3e15846 7268fa62 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/22 06:41 upstream eaea45fc0e7b 7268fa62 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/21 21:10 upstream 6c3f5bec9b40 7268fa62 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/21 04:17 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/20 17:25 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/20 14:36 upstream 3d7285a335ed cb1ac2e7 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/20 11:54 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/19 06:10 upstream f993aed406ea 50c53f39 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/18 17:14 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/18 00:24 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/16 04:57 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/15 15:39 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/15 06:41 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/14 10:50 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/13 21:45 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/13 10:58 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/13 00:05 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/11 22:29 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/11 00:56 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/09 16:27 upstream 9be9ed2612b5 8b277b8e .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/09 09:35 upstream c5eb0a61238d 8b277b8e .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/09 08:31 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/09 06:21 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/09 05:03 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/09 05:03 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/09 02:49 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/09 01:14 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/08 23:22 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/08 21:13 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/08 19:05 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/08 17:50 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/08 15:40 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/08 14:05 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/08 11:43 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/08 10:22 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/08 09:15 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/08 08:02 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/08 06:47 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2022/05/08 05:01 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2021/03/29 20:13 upstream 1e43c377a79f 6a81331a .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2021/03/26 11:46 upstream db24726bfefa a8529b82 .config log report info KCSAN: data-race in dd_has_work / dd_insert_request
ci2-upstream-kcsan-gce 2021/03/03 18:27 upstream f69d02e37a85 06ed56cd .config log report info KCSAN: data-race in dd_has_work / dd_insert_request