syzbot


KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list

Status: closed as invalid on 2019/10/18 14:11
Subsystems: block
[Documentation on labels]
First crash: 1655d, last: 1654d
Similar bugs (4)
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) block 2 767d 768d 0/26 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) block 1 815d 815d 0/26 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) block 1741 902d 1598d 0/26 auto-closed as invalid on 2021/12/06 01:22
upstream KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list (5) block 168 28d 135d 0/26 moderation: reported on 2023/12/08 00:06

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

write to 0xffff88812aaf4160 of 8 bytes by task 8278 on cpu 1:
 blk_mq_dispatch_rq_list+0x4e6/0xe30 block/blk-mq.c:1282
 blk_mq_do_dispatch_sched+0x11d/0x260 block/blk-mq-sched.c:115
 blk_mq_sched_dispatch_requests+0x2b4/0x380 block/blk-mq-sched.c:211
 __blk_mq_run_hw_queue+0xb7/0x160 block/blk-mq.c:1387
 __blk_mq_delay_run_hw_queue+0x31b/0x3a0 block/blk-mq.c:1455
 blk_mq_run_hw_queue+0x103/0x1c0 block/blk-mq.c:1492
 blk_mq_sched_insert_requests+0x1ca/0x2e0 block/blk-mq-sched.c:444
 blk_mq_flush_plug_list+0x572/0x6c0 block/blk-mq.c:1756
 blk_flush_plug_list+0x271/0x2a0 block/blk-core.c:1728
 blk_finish_plug block/blk-core.c:1745 [inline]
 blk_finish_plug+0x60/0x84 block/blk-core.c:1741
 do_blockdev_direct_IO+0x1256/0x4cc0 fs/direct-io.c:1356
 __blockdev_direct_IO+0x86/0xa0 fs/direct-io.c:1413
 ext4_direct_IO_write fs/ext4/inode.c:3788 [inline]
 ext4_direct_IO+0x6f5/0xf70 fs/ext4/inode.c:3915
 generic_file_direct_write+0x14d/0x2e0 mm/filemap.c:3230

read to 0xffff88812aaf4160 of 8 bytes by task 8280 on cpu 0:
 blk_mq_dispatch_rq_list+0x4d1/0xe30 block/blk-mq.c:1282
 blk_mq_do_dispatch_sched+0x11d/0x260 block/blk-mq-sched.c:115
 blk_mq_sched_dispatch_requests+0x2b4/0x380 block/blk-mq-sched.c:211
 __blk_mq_run_hw_queue+0xb7/0x160 block/blk-mq.c:1387
 __blk_mq_delay_run_hw_queue+0x31b/0x3a0 block/blk-mq.c:1455
 blk_mq_run_hw_queue+0x103/0x1c0 block/blk-mq.c:1492
 blk_mq_sched_insert_requests+0x1ca/0x2e0 block/blk-mq-sched.c:444
 blk_mq_flush_plug_list+0x572/0x6c0 block/blk-mq.c:1756
 blk_flush_plug_list+0x271/0x2a0 block/blk-core.c:1728
 blk_finish_plug block/blk-core.c:1745 [inline]
 blk_finish_plug+0x60/0x84 block/blk-core.c:1741
 do_blockdev_direct_IO+0x1256/0x4cc0 fs/direct-io.c:1356
 __blockdev_direct_IO+0x86/0xa0 fs/direct-io.c:1413
 ext4_direct_IO_write fs/ext4/inode.c:3788 [inline]
 ext4_direct_IO+0x6f5/0xf70 fs/ext4/inode.c:3915

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

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/10 15:36 https://github.com/google/ktsan.git kcsan d724f94f63de d52eff28 .config console log report ci2-upstream-kcsan-gce
2019/10/09 19:50 https://github.com/google/ktsan.git kcsan d724f94f63de c4b9981b .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.