syzbot


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

Status: auto-closed as invalid on 2021/05/20 00:55
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+af579360e06c53f6bae1@syzkaller.appspotmail.com
First crash: 1828d, last: 1316d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in wbt_issue / wbt_issue block 25 1830d 1863d 0/28 closed as invalid on 2019/11/19 14:04

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

write to 0xffff888141fe4a28 of 8 bytes by task 18043 on cpu 0:
 wbt_issue+0xbd/0xd0 block/blk-wbt.c:611
 __rq_qos_issue+0x3b/0x70 block/blk-rq-qos.c:54
 rq_qos_issue block/blk-rq-qos.h:159 [inline]
 blk_mq_start_request+0xd0/0x230 block/blk-mq.c:721
 loop_queue_rq+0x3c/0x230 drivers/block/loop.c:2004
 blk_mq_dispatch_rq_list+0x570/0xe80 block/blk-mq.c:1369
 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:186 [inline]
 blk_mq_do_dispatch_sched+0x370/0x610 block/blk-mq-sched.c:199
 __blk_mq_sched_dispatch_requests+0x1fd/0x2a0 block/blk-mq-sched.c:310
 blk_mq_sched_dispatch_requests+0x9f/0x110 block/blk-mq-sched.c:341
 __blk_mq_run_hw_queue+0xc1/0x140 block/blk-mq.c:1488
 __blk_mq_delay_run_hw_queue+0x188/0x330 block/blk-mq.c:1565
 blk_mq_run_hw_queue+0x231/0x260 block/blk-mq.c:1618
 blk_mq_sched_insert_requests+0x144/0x210 block/blk-mq-sched.c:491
 blk_mq_flush_plug_list+0x2f5/0x400 block/blk-mq.c:1942
 blk_flush_plug_list+0x235/0x260 block/blk-core.c:1749
 blk_finish_plug+0x44/0x60 block/blk-core.c:1766
 read_pages+0x3aa/0x6e0 mm/readahead.c:150
 page_cache_ra_unbounded+0x46c/0x4c0 mm/readahead.c:238
 do_page_cache_ra mm/readahead.c:267 [inline]
 force_page_cache_ra+0x226/0x260 mm/readahead.c:298
 page_cache_sync_ra+0x178/0x1a0 mm/readahead.c:572
 page_cache_sync_readahead include/linux/pagemap.h:840 [inline]
 filemap_get_pages+0x1ba/0x660 mm/filemap.c:2375
 filemap_read+0x1ba/0x7b0 mm/filemap.c:2458
 generic_file_read_iter+0x82/0x410 mm/filemap.c:2609
 blkdev_read_iter+0xb3/0xc0 fs/block_dev.c:1727
 call_read_iter include/linux/fs.h:1971 [inline]
 new_sync_read fs/read_write.c:415 [inline]
 vfs_read+0x565/0x5d0 fs/read_write.c:496
 ksys_read+0xce/0x180 fs/read_write.c:634
 __do_sys_read fs/read_write.c:644 [inline]
 __se_sys_read fs/read_write.c:642 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:642
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888141fe4a28 of 8 bytes by task 2013 on cpu 1:
 wbt_issue+0x76/0xd0 block/blk-wbt.c:609
 __rq_qos_issue+0x3b/0x70 block/blk-rq-qos.c:54
 rq_qos_issue block/blk-rq-qos.h:159 [inline]
 blk_mq_start_request+0xd0/0x230 block/blk-mq.c:721
 loop_queue_rq+0x3c/0x230 drivers/block/loop.c:2004
 blk_mq_dispatch_rq_list+0x570/0xe80 block/blk-mq.c:1369
 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:186 [inline]
 blk_mq_do_dispatch_sched+0x370/0x610 block/blk-mq-sched.c:199
 __blk_mq_sched_dispatch_requests+0x1fd/0x2a0 block/blk-mq-sched.c:310
 blk_mq_sched_dispatch_requests+0x9f/0x110 block/blk-mq-sched.c:341
 __blk_mq_run_hw_queue+0xc1/0x140 block/blk-mq.c:1488
 blk_mq_run_work_fn+0x3d/0x50 block/blk-mq.c:1820
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x616/0xa70 kernel/workqueue.c:2421
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2013 Comm: kworker/1:1H Tainted: G        W         5.12.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: kblockd blk_mq_run_work_fn
==================================================================

Crashes (654):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/15 00:55 upstream 7f75285ca572 fcdb12ba .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/14 13:31 upstream 50987beca096 3134b37f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/13 22:11 upstream eebe426d32e1 a184b83e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/13 01:33 upstream 89698becf06d 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/12 10:42 upstream d434405aaab7 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/11 20:30 upstream 7d900724913c 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/11 06:57 upstream 52e44129fba5 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/10 16:03 upstream d4961772226d 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/10 01:28 upstream 4e04e7513b0f 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/09 05:45 upstream 3fb4f979b4fa 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/08 08:43 upstream 454859c552da 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/08 00:06 upstream 3a22981230f9 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/06 21:49 upstream 2d743660786e 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/05 21:17 upstream 0a50438c8436 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/04 22:32 upstream e49d033bddf5 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/04 03:04 upstream 2023a53bdf41 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/03 19:35 upstream d93a0d43e3d0 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/03 01:45 upstream 0a84c2e440f7 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/04/01 19:26 upstream ffd9fb546d49 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/31 19:06 upstream d19cc4bfbff1 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/31 08:35 upstream 5e46d1b78a03 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/30 19:35 upstream 2bb25b3a748a 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/28 22:01 upstream 36a14638f7c0 a8529b82 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/27 03:05 upstream 0f4498cef9f5 a8529b82 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/26 12:14 upstream db24726bfefa a8529b82 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/25 22:09 upstream 002322402daf 6a383ecf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/25 09:12 upstream e138138003eb 6a383ecf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/24 22:40 upstream 4ee998b0ef8b 607e3baf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/24 15:55 upstream 7acac4b3196c 607e3baf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/23 20:41 upstream 7acac4b3196c e613994b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/23 15:56 upstream 84196390620a e613994b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/22 20:39 upstream 0d02ec6b3136 8092f30d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/22 01:47 upstream 5ee96fa9dd78 4c9a64da .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/21 15:17 upstream 812da4d39463 4c9a64da .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/20 22:25 upstream 812da4d39463 17810eae .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/20 14:34 upstream 1c273e10bc0c e45f5621 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/20 00:34 upstream 8b12a62a4e3e 3d01c4de .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/19 09:49 upstream 8b12a62a4e3e 2af9d324 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/18 21:28 upstream bf152b0b41dc 380dcc3e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/18 09:22 upstream 6417f03132a6 7216542e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/18 01:30 upstream 6417f03132a6 fdb2bb2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/16 19:56 upstream 1df27313f50a fdb2bb2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/16 06:20 upstream 1a4431a5db2b fdb2bb2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/15 15:49 upstream 1e28eed17697 fdb2bb2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/03/15 11:06 upstream 1e28eed17697 cc1cff8f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in wbt_issue / wbt_issue
2021/01/17 12:35 upstream 0da0a8a0a0e1 813be542 .config console log report info ci2-upstream-kcsan-gce
2020/01/08 14:19 https://github.com/google/ktsan.git kcsan 245a43005292 ddc3e859 .config console log report ci2-upstream-kcsan-gce
2019/11/19 16:26 https://github.com/google/ktsan.git kcsan 5863cc791e4c 432c7650 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.