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: 1047d, last: 5h53m
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 1049d 1084d 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 1085d 1085d 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 0xffff888101bd8558 of 8 bytes by task 1400 on cpu 0:
 blk_mq_sched_dispatch_requests+0x80/0xf0 block/blk-mq-sched.c:333
 __blk_mq_run_hw_queue+0x7e/0x100 block/blk-mq.c:2020
 __blk_mq_delay_run_hw_queue+0x15b/0x370 block/blk-mq.c:2096
 blk_mq_run_hw_queue+0x180/0x320 block/blk-mq.c:2144
 blk_mq_sched_insert_requests+0x1cb/0x2a0 block/blk-mq-sched.c:493
 blk_mq_dispatch_plug_list+0x1e9/0x2c0 block/blk-mq.c:2604
 blk_mq_flush_plug_list+0x2ea/0x340 block/blk-mq.c:2646
 __blk_flush_plug+0x25a/0x2b0 block/blk-core.c:1153
 blk_finish_plug+0x44/0x60 block/blk-core.c:1177
 jbd2_journal_commit_transaction+0x1a11/0x30a0 fs/jbd2/commit.c:829
 kjournald2+0x253/0x460 fs/jbd2/journal.c:210
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306

read-write to 0xffff888101bd8558 of 8 bytes by task 42 on cpu 1:
 blk_mq_sched_dispatch_requests+0x80/0xf0 block/blk-mq-sched.c:333
 __blk_mq_run_hw_queue+0x7e/0x100 block/blk-mq.c:2020
 blk_mq_run_work_fn+0x3d/0x50 block/blk-mq.c:2319
 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 arch/x86/entry/entry_64.S:306

value changed: 0x0000000000005097 -> 0x0000000000005098

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 42 Comm: kworker/1:1H Not tainted 6.0.0-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Workqueue: kblockd blk_mq_run_work_fn
==================================================================

Crashes (2774):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/10/03 15:37 upstream 4fe89d07dcc2 feb56351 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/10/02 20:59 upstream a962b54e162c feb56351 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/10/02 07:50 upstream b357fd1c2afc feb56351 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/10/01 13:16 upstream ffb4d94b4314 feb56351 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/30 17:49 upstream 70575e77839f feb56351 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/30 08:04 upstream 987a926c1d8a 45fd7169 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/29 13:48 upstream c3e0e1e23c70 45fd7169 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/28 18:47 upstream 49c13ed0316d 75c78242 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/28 00:00 upstream 46452d3786a8 75c78242 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/27 04:48 upstream 3800a713b607 10323ddf .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/27 03:30 upstream 3800a713b607 d59ba983 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/26 08:19 upstream f76349cf4145 d59ba983 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/25 22:56 upstream 5e049663f678 0042f2b4 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/25 04:31 upstream 1a61b828566f 0042f2b4 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/24 09:23 upstream a63f2e7cb110 0042f2b4 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/23 14:07 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/22 15:19 upstream dc164f4fb00a 0042f2b4 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/22 11:54 upstream dc164f4fb00a 60af5050 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/21 22:17 upstream 06f7db949993 60af5050 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/21 17:16 upstream 06f7db949993 380f82fb .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/21 10:09 upstream 60891ec99e14 380f82fb .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/20 18:47 upstream 60891ec99e14 c4b8ccfd .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/20 16:21 upstream 521a547ced64 c4b8ccfd .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/20 07:28 upstream 521a547ced64 7c41a9ba .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/19 12:11 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/19 06:53 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/18 17:45 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/18 17:40 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/17 05:36 upstream a335366bad13 dd9a85ff .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/16 16:21 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/15 06:57 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/14 09:54 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/13 19:32 upstream d1221cea11fc b884348d .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/13 13:42 upstream d1221cea11fc a08652b0 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/13 08:21 upstream e839a756012b a08652b0 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/12 23:15 upstream e839a756012b f371ed7e .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/12 16:32 upstream 80e78fcce86d f371ed7e .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/12 09:18 upstream 80e78fcce86d 356d8217 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/11 20:09 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/10 18:08 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/09 23:31 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/09 12:39 upstream 9b4509495418 90058bdc .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/09 10:47 upstream 506357871c18 90058bdc .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/09/09 03:06 upstream 506357871c18 f3027468 .config log report info 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 log report info
ci2-upstream-kcsan-gce 2020/01/10 15:24 https://github.com/google/ktsan.git kcsan 245a43005292 532ec44e .config log report
ci2-upstream-kcsan-gce 2020/01/06 20:57 https://github.com/google/ktsan.git kcsan 245a43005292 53430d97 .config log report
ci2-upstream-kcsan-gce 2019/11/20 22:33 https://github.com/google/ktsan.git kcsan 5863cc791e4c 8098ea0f .config log report
* Struck through repros no longer work on HEAD.