================================================================== BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf write to 0xffff88813d6bd438 of 8 bytes by task 15253 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:1252 scsi_queue_rq+0x13f3/0x15a0 drivers/scsi/scsi_lib.c:1757 blk_mq_dispatch_rq_list+0x997/0x1290 block/blk-mq.c:2056 __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+0x8b/0x150 block/blk-mq.c:2174 __blk_mq_delay_run_hw_queue+0x15b/0x2e0 block/blk-mq.c:2250 blk_mq_run_hw_queue+0x1be/0x350 block/blk-mq.c:2298 blk_mq_sched_insert_requests+0x220/0x300 block/blk-mq-sched.c:493 blk_mq_dispatch_plug_list+0x1e9/0x2c0 block/blk-mq.c:2758 blk_mq_flush_plug_list+0x38a/0x3e0 block/blk-mq.c:2800 __blk_flush_plug+0x25a/0x2b0 block/blk-core.c:1140 blk_finish_plug+0x44/0x60 block/blk-core.c:1164 __iomap_dio_rw+0xd27/0x1000 fs/iomap/direct-io.c:609 iomap_dio_rw+0x3c/0x80 fs/iomap/direct-io.c:689 ext4_dio_write_iter fs/ext4/file.c:587 [inline] ext4_file_write_iter+0xa36/0x11b0 fs/ext4/file.c:698 do_iter_write+0x494/0x750 fs/read_write.c:861 vfs_iter_write+0x4c/0x70 fs/read_write.c:902 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0x80/0xa0 fs/splice.c:931 splice_direct_to_actor+0x305/0x620 fs/splice.c:886 do_splice_direct+0xfb/0x180 fs/splice.c:974 do_sendfile+0x3bf/0x910 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd write to 0xffff88813d6bd438 of 8 bytes by task 15251 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_bio kernel/trace/blktrace.c:907 [inline] blk_add_trace_bio_queue+0x12e/0x140 kernel/trace/blktrace.c:939 trace_block_bio_queue include/trace/events/block.h:355 [inline] submit_bio_noacct+0x7cf/0x810 block/blk-core.c:799 submit_bio+0xfb/0x110 block/blk-core.c:841 iomap_dio_submit_bio fs/iomap/direct-io.c:77 [inline] iomap_dio_bio_iter+0xa0d/0xbd0 fs/iomap/direct-io.c:360 __iomap_dio_rw+0x981/0x1000 fs/iomap/direct-io.c:601 iomap_dio_rw+0x3c/0x80 fs/iomap/direct-io.c:689 ext4_dio_write_iter fs/ext4/file.c:587 [inline] ext4_file_write_iter+0xa36/0x11b0 fs/ext4/file.c:698 do_iter_write+0x494/0x750 fs/read_write.c:861 vfs_iter_write+0x4c/0x70 fs/read_write.c:902 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0x80/0xa0 fs/splice.c:931 splice_direct_to_actor+0x305/0x620 fs/splice.c:886 do_splice_direct+0xfb/0x180 fs/splice.c:974 do_sendfile+0x3bf/0x910 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x0000000000000040 -> 0x0000000000000030 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 15251 Comm: syz-executor.4 Not tainted 6.2.0-rc2-syzkaller-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 ================================================================== syz-executor.4 (15251) used greatest stack depth: 10256 bytes left