================================================================== BUG: KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_do_dispatch_sched write to 0xffff888101aef0f8 of 4 bytes by task 41 on cpu 1: blk_mq_update_dispatch_busy block/blk-mq.c:1848 [inline] blk_mq_dispatch_rq_list+0x1131/0x1250 block/blk-mq.c:2088 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:173 [inline] blk_mq_do_dispatch_sched+0x49d/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+0x7e/0x100 block/blk-mq.c:2110 blk_mq_run_work_fn+0x3d/0x50 block/blk-mq.c:2409 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:306 read to 0xffff888101aef0f8 of 4 bytes by task 9695 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+0x7e/0x100 block/blk-mq.c:2110 __blk_mq_delay_run_hw_queue+0x15b/0x2e0 block/blk-mq.c:2186 blk_mq_run_hw_queue+0x180/0x320 block/blk-mq.c:2234 blk_mq_sched_insert_requests+0x1cb/0x2a0 block/blk-mq-sched.c:493 blk_mq_dispatch_plug_list+0x1e9/0x2c0 block/blk-mq.c:2694 blk_mq_flush_plug_list+0x2ea/0x340 block/blk-mq.c:2736 blk_add_rq_to_plug+0x142/0x390 block/blk-mq.c:1264 blk_mq_submit_bio+0x90b/0xe90 block/blk-mq.c:2927 __submit_bio block/blk-core.c:590 [inline] __submit_bio_noacct_mq block/blk-core.c:667 [inline] submit_bio_noacct_nocheck+0x83d/0xaa0 block/blk-core.c:684 submit_bio_noacct+0x6a5/0x810 block/blk-core.c:790 submit_bio+0xfb/0x110 block/blk-core.c:826 ext4_io_submit+0x86/0xa0 fs/ext4/page-io.c:378 ext4_writepages+0xaca/0x1cf0 fs/ext4/inode.c:2854 do_writepages+0x1db/0x350 mm/page-writeback.c:2469 filemap_fdatawrite_wbc+0xd6/0xf0 mm/filemap.c:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] __filemap_fdatawrite mm/filemap.c:427 [inline] filemap_flush+0x93/0xc0 mm/filemap.c:454 ext4_alloc_da_blocks+0x47/0x100 fs/ext4/inode.c:3140 ext4_release_file+0x5b/0x1d0 fs/ext4/file.c:158 __fput+0x245/0x570 fs/file_table.c:320 ____fput+0x11/0x20 fs/file_table.c:348 task_work_run+0xde/0x110 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x5ad/0x1740 kernel/exit.c:820 do_group_exit+0xfe/0x140 kernel/exit.c:950 get_signal+0xb40/0xc60 kernel/signal.c:2858 arch_do_signal_or_restart+0x87/0x2d0 arch/x86/kernel/signal.c:869 exit_to_user_mode_loop+0x78/0x130 kernel/entry/common.c:168 exit_to_user_mode_prepare+0x69/0x90 kernel/entry/common.c:203 irqentry_exit_to_user_mode+0x5/0x10 kernel/entry/common.c:309 irqentry_exit+0xe/0x40 kernel/entry/common.c:412 exc_general_protection+0x321/0x4b0 arch/x86/kernel/traps.c:728 asm_exc_general_protection+0x22/0x30 arch/x86/include/asm/idtentry.h:564 value changed: 0x00000007 -> 0x00000008 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 9695 Comm: syz-executor.1 Not tainted 6.1.0-rc5-syzkaller-00307-gfe24a97cf254-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 ================================================================== syz-executor.1 (9695) used greatest stack depth: 9448 bytes left