syzbot


KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests (3)

Status: moderation: reported on 2020/01/10 21:14
Reported-by: syzbot+44f9b37d2de57637dbfd@syzkaller.appspotmail.com
First crash: 1168d, last: 6h44m
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests (2) 31 1170d 1204d 0/24 closed as invalid on 2019/11/19 14:04
upstream KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests 1 1206d 1206d 0/24 closed as invalid on 2019/10/15 15:50

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

read-write to 0xffff8881023e9358 of 8 bytes by task 13284 on cpu 0:
 blk_mq_sched_dispatch_requests+0x80/0xf0 block/blk-mq-sched.c:333
 __blk_mq_run_hw_queue+0x8b/0x150 block/blk-mq.c:2174
 __blk_mq_delay_run_hw_queue+0x15b/0x2e0 block/blk-mq.c:2250
 blk_mq_run_hw_queue+0x1be/0x350 block/blk-mq.c:2298
 blk_mq_sched_insert_requests+0x220/0x300 block/blk-mq-sched.c:493
 blk_mq_dispatch_plug_list+0x1e9/0x2c0 block/blk-mq.c:2758
 blk_mq_flush_plug_list+0x38a/0x3e0 block/blk-mq.c:2800
 __blk_flush_plug+0x25a/0x2b0 block/blk-core.c:1137
 blk_finish_plug+0x44/0x60 block/blk-core.c:1161
 __iomap_dio_rw+0xd27/0x1000 fs/iomap/direct-io.c:609
 iomap_dio_rw+0x3c/0x80 fs/iomap/direct-io.c:689
 ext4_dio_write_iter fs/ext4/file.c:587 [inline]
 ext4_file_write_iter+0xa36/0x11b0 fs/ext4/file.c:698
 do_iter_write+0x494/0x750 fs/read_write.c:861
 vfs_iter_write+0x4c/0x70 fs/read_write.c:902
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:931
 splice_direct_to_actor+0x305/0x620 fs/splice.c:886
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1309
 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+0x63/0xcd

read-write to 0xffff8881023e9358 of 8 bytes by task 13266 on cpu 1:
 blk_mq_sched_dispatch_requests+0x80/0xf0 block/blk-mq-sched.c:333
 __blk_mq_run_hw_queue+0x8b/0x150 block/blk-mq.c:2174
 __blk_mq_delay_run_hw_queue+0x15b/0x2e0 block/blk-mq.c:2250
 blk_mq_run_hw_queue+0x1be/0x350 block/blk-mq.c:2298
 blk_mq_sched_insert_requests+0x220/0x300 block/blk-mq-sched.c:493
 blk_mq_dispatch_plug_list+0x1e9/0x2c0 block/blk-mq.c:2758
 blk_mq_flush_plug_list+0x38a/0x3e0 block/blk-mq.c:2800
 __blk_flush_plug+0x25a/0x2b0 block/blk-core.c:1137
 blk_finish_plug+0x44/0x60 block/blk-core.c:1161
 __iomap_dio_rw+0xd27/0x1000 fs/iomap/direct-io.c:609
 iomap_dio_rw+0x3c/0x80 fs/iomap/direct-io.c:689
 ext4_dio_write_iter fs/ext4/file.c:587 [inline]
 ext4_file_write_iter+0xa36/0x11b0 fs/ext4/file.c:698
 do_iter_write+0x494/0x750 fs/read_write.c:861
 vfs_iter_write+0x4c/0x70 fs/read_write.c:902
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:931
 splice_direct_to_actor+0x305/0x620 fs/splice.c:886
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1309
 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+0x63/0xcd

value changed: 0x0000000000004637 -> 0x0000000000004638

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 13266 Comm: syz-executor.0 Tainted: G        W          6.2.0-rc6-syzkaller-00011-gc0b67534c95c-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
==================================================================
syz-executor.0 (13266) used greatest stack depth: 10368 bytes left

Crashes (3023):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/02/01 10:27 upstream c0b67534c95c 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/02/01 05:31 upstream c0b67534c95c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/31 14:35 upstream 22b8077d0fce b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/31 00:46 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/30 11:07 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/30 09:32 upstream 6d796c50f84c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/29 20:17 upstream ab072681eabe 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/28 23:49 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/28 10:57 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/27 21:40 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/26 01:59 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/25 12:48 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/24 23:50 upstream fb6e71db53f3 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/23 20:55 upstream 7bf70dbb1882 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/23 13:57 upstream 2475bf0250de 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/23 12:50 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/23 11:35 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/23 07:47 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/22 22:06 upstream 2475bf0250de cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/22 05:17 upstream 2241ab53cbb5 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/21 15:48 upstream f883675bf652 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/21 15:39 upstream f883675bf652 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/21 00:46 upstream edc00350d205 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/20 22:38 upstream edc00350d205 dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/20 08:58 upstream d368967cb103 dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/19 21:26 upstream 081edded9b38 71197f3a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/19 07:10 upstream 7287904c8771 66fca3ae .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/18 11:27 upstream c1649ec55708 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/17 16:29 upstream 6e50979a9c87 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/16 22:08 upstream d532dd102151 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/16 02:24 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/15 06:52 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/14 14:14 upstream 97ec4d559d93 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/14 10:04 upstream 97ec4d559d93 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/13 14:32 upstream d9fc1511728c 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/13 05:52 upstream c757fc92a3f7 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/12 08:50 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/11 13:29 upstream 7dd4b804e080 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/11 01:43 upstream 40c18f363a08 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/10 08:06 upstream 5a41237ad1d4 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/10 07:58 upstream 5a41237ad1d4 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/09 21:44 upstream 1fe4fd6f5cad 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/09 03:18 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2023/01/08 09:24 upstream 9b43a525db12 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2021/01/17 10:06 upstream 0da0a8a0a0e1 813be542 .config console log report info
ci2-upstream-kcsan-gce 2020/01/10 15:24 https://github.com/google/ktsan.git kcsan 245a43005292 532ec44e .config console log report
ci2-upstream-kcsan-gce 2020/01/06 20:57 https://github.com/google/ktsan.git kcsan 245a43005292 53430d97 .config console log report
ci2-upstream-kcsan-gce 2019/11/20 22:33 https://github.com/google/ktsan.git kcsan 5863cc791e4c 8098ea0f .config console log report
* Struck through repros no longer work on HEAD.