================================================================== BUG: KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list write to 0xffff88810101cef8 of 4 bytes by task 6452 on cpu 1: blk_mq_dispatch_rq_list+0xee0/0x10d0 __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_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] __syscall_exit_to_user_mode_work kernel/entry/common.c:201 [inline] syscall_exit_to_user_mode+0x59/0x130 kernel/entry/common.c:212 do_syscall_64+0xe2/0x1d0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x6d/0x75 read to 0xffff88810101cef8 of 4 bytes by task 6476 on cpu 0: 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_hw_queue+0x29c/0x4d0 block/blk-mq.c:2273 blk_mq_get_tag+0x47a/0x5a0 block/blk-mq-tag.c:170 __blk_mq_alloc_requests+0x6ba/0xc90 block/blk-mq.c:499 blk_mq_get_new_requests block/blk-mq.c:2891 [inline] blk_mq_submit_bio+0x69c/0xd90 block/blk-mq.c:2989 __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] __syscall_exit_to_user_mode_work kernel/entry/common.c:201 [inline] syscall_exit_to_user_mode+0x59/0x130 kernel/entry/common.c:212 do_syscall_64+0xe2/0x1d0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x6d/0x75 value changed: 0x00000001 -> 0x00000002 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 6476 Comm: syz-executor.2 Tainted: G W 6.8.0-syzkaller-11752-gdba89d1b81df #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 ==================================================================