================================================================== BUG: KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list write to 0xffff88810101c6f8 of 4 bytes by task 22667 on cpu 0: blk_mq_dispatch_rq_list+0xee0/0x10d0 __blk_mq_sched_dispatch_requests+0x1ce/0xd50 block/blk-mq-sched.c:301 blk_mq_sched_dispatch_requests+0x78/0xe0 block/blk-mq-sched.c:331 blk_mq_run_hw_queue+0x29c/0x4d0 block/blk-mq.c:2273 blk_mq_flush_plug_list+0x7bc/0xde0 block/blk-mq.c:2822 blk_add_rq_to_plug+0x102/0x3e0 block/blk-mq.c:1299 blk_mq_submit_bio+0xa22/0xd90 block/blk-mq.c:3014 __submit_bio+0x11c/0x370 block/blk-core.c:619 __submit_bio_noacct_mq block/blk-core.c:698 [inline] submit_bio_noacct_nocheck+0x597/0x6d0 block/blk-core.c:727 submit_bio_noacct+0x681/0x830 block/blk-core.c:837 submit_bio+0x218/0x230 block/blk-core.c:879 ext4_io_submit fs/ext4/page-io.c:378 [inline] io_submit_add_bh fs/ext4/page-io.c:419 [inline] ext4_bio_write_folio+0x6c0/0x9a0 fs/ext4/page-io.c:563 mpage_submit_folio fs/ext4/inode.c:1869 [inline] mpage_map_and_submit_buffers fs/ext4/inode.c:2115 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2254 [inline] ext4_do_writepages+0x13a7/0x2110 fs/ext4/inode.c:2679 ext4_writepages+0x159/0x2e0 fs/ext4/inode.c:2768 do_writepages+0x1d8/0x480 mm/page-writeback.c:2612 filemap_fdatawrite_wbc+0xdb/0x100 mm/filemap.c:397 __filemap_fdatawrite_range mm/filemap.c:430 [inline] __filemap_fdatawrite mm/filemap.c:436 [inline] filemap_flush+0x61/0x90 mm/filemap.c:463 ext4_alloc_da_blocks+0x50/0x130 fs/ext4/inode.c:3072 ext4_release_file+0x5f/0x1c0 fs/ext4/file.c:169 __fput+0x2c1/0x660 fs/file_table.c:422 ____fput+0x15/0x20 fs/file_table.c:450 task_work_run+0x13a/0x1a0 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x5fd/0x1740 kernel/exit.c:878 do_group_exit+0x102/0x150 kernel/exit.c:1027 get_signal+0xf2f/0x1080 kernel/signal.c:2911 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:105 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] irqentry_exit_to_user_mode+0x94/0x130 kernel/entry/common.c:225 irqentry_exit+0x12/0x50 kernel/entry/common.c:328 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 read to 0xffff88810101c6f8 of 4 bytes by task 45 on cpu 1: blk_mq_update_dispatch_busy block/blk-mq.c:1907 [inline] blk_mq_dispatch_rq_list+0xc3e/0x10d0 block/blk-mq.c:2158 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:170 [inline] blk_mq_do_dispatch_sched block/blk-mq-sched.c:184 [inline] __blk_mq_sched_dispatch_requests+0x604/0xd50 block/blk-mq-sched.c:309 blk_mq_sched_dispatch_requests+0x78/0xe0 block/blk-mq-sched.c:331 blk_mq_run_work_fn+0x65/0xe0 block/blk-mq.c:2443 process_one_work kernel/workqueue.c:3254 [inline] process_scheduled_works+0x465/0x990 kernel/workqueue.c:3335 worker_thread+0x526/0x730 kernel/workqueue.c:3416 kthread+0x1d1/0x210 kernel/kthread.c:388 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243 value changed: 0x00000007 -> 0x00000008 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 45 Comm: kworker/1:1H Not tainted 6.8.0-syzkaller-11136-g66a27abac311 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 Workqueue: kblockd blk_mq_run_work_fn ==================================================================