================================================================== BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf write to 0xffff88812c880e38 of 8 bytes by task 25000 on cpu 1: relay_switch_subbuf+0x399/0x3a0 kernel/relay.c:708 relay_reserve include/linux/relay.h:248 [inline] __blk_add_trace+0x665/0x720 kernel/trace/blktrace.c:276 blk_add_trace_plug+0x4c/0x60 kernel/trace/blktrace.c:950 trace_block_plug include/trace/events/block.h:407 [inline] blk_add_rq_to_plug+0x2ae/0x3d0 block/blk-mq.c:1297 blk_mq_submit_bio+0x61d/0xdb0 block/blk-mq.c:3009 __submit_bio+0x11c/0x350 block/blk-core.c:607 __submit_bio_noacct_mq block/blk-core.c:686 [inline] submit_bio_noacct_nocheck+0x4ad/0x5e0 block/blk-core.c:715 submit_bio_noacct+0x67d/0x830 block/blk-core.c:825 submit_bio+0xb7/0xc0 block/blk-core.c:858 ext4_io_submit+0x8a/0xa0 fs/ext4/page-io.c:378 ext4_do_writepages+0xb3a/0x2100 fs/ext4/inode.c:2705 ext4_writepages+0x15e/0x2e0 fs/ext4/inode.c:2774 do_writepages+0x1c2/0x340 mm/page-writeback.c:2553 filemap_fdatawrite_wbc+0xdb/0xf0 mm/filemap.c:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] __filemap_fdatawrite mm/filemap.c:427 [inline] filemap_flush+0x95/0xc0 mm/filemap.c:454 ext4_alloc_da_blocks+0x50/0x130 fs/ext4/inode.c:3078 ext4_release_file+0x5f/0x1c0 fs/ext4/file.c:169 __fput+0x299/0x630 fs/file_table.c:376 ____fput+0x15/0x20 fs/file_table.c:404 task_work_run+0x135/0x1a0 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x604/0x16d0 kernel/exit.c:871 do_group_exit+0x101/0x150 kernel/exit.c:1020 get_signal+0xf4e/0x10a0 kernel/signal.c:2893 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+0x98/0x130 kernel/entry/common.c:225 irqentry_exit+0x12/0x40 kernel/entry/common.c:328 exc_general_protection+0x339/0x4c0 arch/x86/kernel/traps.c:643 asm_exc_general_protection+0x26/0x30 arch/x86/include/asm/idtentry.h:564 write to 0xffff88812c880e38 of 8 bytes by task 25523 on cpu 0: relay_switch_subbuf+0x399/0x3a0 kernel/relay.c:708 relay_reserve include/linux/relay.h:248 [inline] __blk_add_trace+0x665/0x720 kernel/trace/blktrace.c:276 blk_add_trace_unplug+0x76/0xb0 kernel/trace/blktrace.c:970 trace_block_unplug include/trace/events/block.h:452 [inline] blk_mq_dispatch_plug_list block/blk-mq.c:2753 [inline] blk_mq_flush_plug_list+0xcfa/0xdb0 block/blk-mq.c:2813 __blk_flush_plug+0x210/0x260 block/blk-core.c:1166 blk_flush_plug include/linux/blkdev.h:972 [inline] sched_submit_work kernel/sched/core.c:6783 [inline] schedule+0x46/0x80 kernel/sched/core.c:6816 add_transaction_credits fs/jbd2/transaction.c:315 [inline] start_this_handle+0x8fe/0x10f0 fs/jbd2/transaction.c:422 jbd2__journal_start+0x1d8/0x3d0 fs/jbd2/transaction.c:520 __ext4_journal_start_sb+0x16d/0x430 fs/ext4/ext4_jbd2.c:112 __ext4_journal_start fs/ext4/ext4_jbd2.h:326 [inline] ext4_do_writepages+0x9c7/0x2100 fs/ext4/inode.c:2668 ext4_writepages+0x15e/0x2e0 fs/ext4/inode.c:2774 do_writepages+0x1c2/0x340 mm/page-writeback.c:2553 filemap_fdatawrite_wbc+0xdb/0xf0 mm/filemap.c:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] __filemap_fdatawrite mm/filemap.c:427 [inline] filemap_flush+0x95/0xc0 mm/filemap.c:454 ext4_alloc_da_blocks+0x50/0x130 fs/ext4/inode.c:3078 ext4_release_file+0x5f/0x1c0 fs/ext4/file.c:169 __fput+0x299/0x630 fs/file_table.c:376 ____fput+0x15/0x20 fs/file_table.c:404 task_work_run+0x135/0x1a0 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x604/0x16d0 kernel/exit.c:871 do_group_exit+0x101/0x150 kernel/exit.c:1020 get_signal+0xf4e/0x10a0 kernel/signal.c:2893 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+0x98/0x130 kernel/entry/common.c:225 irqentry_exit+0x12/0x40 kernel/entry/common.c:328 exc_general_protection+0x339/0x4c0 arch/x86/kernel/traps.c:643 asm_exc_general_protection+0x26/0x30 arch/x86/include/asm/idtentry.h:564 value changed: 0x0000000000000030 -> 0x0000000000000038 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 25523 Comm: syz-executor.4 Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ==================================================================