================================================================== BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf write to 0xffff88813bc55238 of 8 bytes by task 19346 on cpu 0: relay_switch_subbuf+0x39d/0x3b0 kernel/relay.c:708 relay_reserve include/linux/relay.h:248 [inline] __blk_add_trace+0x6a7/0x700 kernel/trace/blktrace.c:276 blk_add_trace_rq kernel/trace/blktrace.c:848 [inline] blk_add_trace_rq_issue+0x1b2/0x1c0 kernel/trace/blktrace.c:861 trace_block_rq_issue include/trace/events/block.h:227 [inline] blk_mq_start_request+0x23b/0x280 block/blk-mq.c:1220 scsi_queue_rq+0x13d8/0x1570 drivers/scsi/scsi_lib.c:1759 blk_mq_dispatch_rq_list+0x977/0x1250 block/blk-mq.c:1992 __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_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:591 [inline] __submit_bio_noacct_mq block/blk-core.c:668 [inline] submit_bio_noacct_nocheck+0x83d/0xaa0 block/blk-core.c:685 submit_bio_noacct+0x6a5/0x810 block/blk-core.c:791 submit_bio+0xfb/0x110 block/blk-core.c:827 ext4_io_submit fs/ext4/page-io.c:378 [inline] io_submit_add_bh fs/ext4/page-io.c:420 [inline] ext4_bio_write_page+0x5cd/0xb60 fs/ext4/page-io.c:546 mpage_submit_page fs/ext4/inode.c:2121 [inline] mpage_map_and_submit_buffers fs/ext4/inode.c:2366 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2505 [inline] ext4_writepages+0x1020/0x1cf0 fs/ext4/inode.c:2834 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 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 write to 0xffff88813bc55238 of 8 bytes by task 19342 on cpu 1: relay_switch_subbuf+0x39d/0x3b0 kernel/relay.c:708 relay_reserve include/linux/relay.h:248 [inline] __blk_add_trace+0x6a7/0x700 kernel/trace/blktrace.c:276 blk_add_trace_rq kernel/trace/blktrace.c:848 [inline] blk_add_trace_rq_insert+0x1b2/0x1c0 kernel/trace/blktrace.c:855 trace_block_rq_insert include/trace/events/block.h:213 [inline] dd_insert_request+0x30b/0x570 block/mq-deadline.c:744 dd_insert_requests+0xfc/0x140 block/mq-deadline.c:781 blk_mq_sched_insert_requests+0xc0/0x2a0 block/blk-mq-sched.c:477 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:591 [inline] __submit_bio_noacct_mq block/blk-core.c:668 [inline] submit_bio_noacct_nocheck+0x83d/0xaa0 block/blk-core.c:685 submit_bio_noacct+0x6a5/0x810 block/blk-core.c:791 submit_bio+0xfb/0x110 block/blk-core.c:827 ext4_io_submit fs/ext4/page-io.c:378 [inline] io_submit_add_bh fs/ext4/page-io.c:420 [inline] ext4_bio_write_page+0x5cd/0xb60 fs/ext4/page-io.c:546 mpage_submit_page fs/ext4/inode.c:2121 [inline] mpage_map_and_submit_buffers fs/ext4/inode.c:2366 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2505 [inline] ext4_writepages+0x1020/0x1cf0 fs/ext4/inode.c:2834 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:721 asm_exc_general_protection+0x22/0x30 arch/x86/include/asm/idtentry.h:564 value changed: 0x0000000000000038 -> 0x0000000000000030 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 19342 Comm: syz-executor.2 Not tainted 6.1.0-rc4-syzkaller-00011-g59f2f4b8a757-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 ==================================================================