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
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 1215d, last: 1214d
similar bugs (3):
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) 2 327d 328d 0/24 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) 1 375d 375d 0/24 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) 1741 461d 1158d 0/24 auto-closed as invalid on 2021/12/06 01:22

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):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 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
* Struck through repros no longer work on HEAD.