================================================================== BUG: KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_do_dispatch_sched write to 0xffff8881019da8f8 of 4 bytes by task 41 on cpu 1: blk_mq_update_dispatch_busy block/blk-mq.c:1912 [inline] blk_mq_dispatch_rq_list+0xeda/0x1290 block/blk-mq.c:2155 __blk_mq_sched_dispatch_requests+0x1b7/0x270 block/blk-mq-sched.c:306 blk_mq_sched_dispatch_requests+0x8f/0xf0 block/blk-mq-sched.c:339 __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_run_hw_queues+0x180/0x200 block/blk-mq.c:2346 scsi_kick_queue drivers/scsi/scsi_lib.c:307 [inline] scsi_starved_list_run drivers/scsi/scsi_lib.c:432 [inline] scsi_run_queue+0x4b8/0x5d0 drivers/scsi/scsi_lib.c:455 scsi_requeue_run_queue+0x21/0x30 drivers/scsi/scsi_lib.c:467 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:308 read to 0xffff8881019da8f8 of 4 bytes by task 25406 on cpu 0: __blk_mq_do_dispatch_sched block/blk-mq-sched.c:100 [inline] blk_mq_do_dispatch_sched+0xc9/0x7f0 block/blk-mq-sched.c:187 __blk_mq_sched_dispatch_requests+0x1cd/0x270 blk_mq_sched_dispatch_requests+0x8f/0xf0 block/blk-mq-sched.c:339 __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_add_rq_to_plug+0x142/0x390 block/blk-mq.c:1296 blk_mq_submit_bio+0x9a7/0xf10 block/blk-mq.c:2998 __submit_bio block/blk-core.c:602 [inline] __submit_bio_noacct_mq block/blk-core.c:679 [inline] submit_bio_noacct_nocheck+0x83d/0xaa0 block/blk-core.c:696 submit_bio_noacct+0x6a5/0x810 block/blk-core.c:802 submit_bio+0xfb/0x110 block/blk-core.c:838 iomap_dio_submit_bio fs/iomap/direct-io.c:77 [inline] iomap_dio_bio_iter+0xa0d/0xbd0 fs/iomap/direct-io.c:360 __iomap_dio_rw+0x981/0x1000 fs/iomap/direct-io.c:601 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 call_write_iter include/linux/fs.h:2189 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x468/0x760 fs/read_write.c:584 ksys_write+0xe8/0x1a0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:646 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: 0x00000009 -> 0x00000007 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 25406 Comm: syz-executor.5 Not tainted 6.2.0-rc5-syzkaller-00047-g7c46948a6e9c-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 ==================================================================