================================================================== BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf write to 0xffff8881392b3c38 of 8 bytes by task 22661 on cpu 0: relay_switch_subbuf+0x39d/0x3b0 kernel/relay.c:711 relay_reserve include/linux/relay.h:248 [inline] __blk_add_trace+0x6ba/0x710 kernel/trace/blktrace.c:275 blk_add_trace_rq kernel/trace/blktrace.c:845 [inline] blk_add_trace_rq_issue+0x1be/0x1d0 kernel/trace/blktrace.c:859 trace_block_rq_issue include/trace/events/block.h:227 [inline] blk_mq_start_request+0x23b/0x280 block/blk-mq.c:1134 scsi_queue_rq+0x13d8/0x1570 drivers/scsi/scsi_lib.c:1744 blk_mq_dispatch_rq_list+0x544/0x1210 block/blk-mq.c:1896 __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:2013 __blk_mq_delay_run_hw_queue+0x194/0x390 block/blk-mq.c:2090 blk_mq_run_hw_queue+0x180/0x320 block/blk-mq.c:2141 blk_mq_sched_insert_requests+0x1cb/0x2a0 block/blk-mq-sched.c:493 blk_mq_dispatch_plug_list+0x1e9/0x2c0 block/blk-mq.c:2621 blk_mq_flush_plug_list+0x2ea/0x340 block/blk-mq.c:2663 blk_add_rq_to_plug+0x13f/0x390 block/blk-mq.c:1178 blk_mq_submit_bio+0x8c7/0xe50 block/blk-mq.c:2844 __submit_bio block/blk-core.c:648 [inline] __submit_bio_noacct_mq block/blk-core.c:725 [inline] submit_bio_noacct_nocheck+0x83d/0xaa0 block/blk-core.c:742 submit_bio_noacct+0x690/0x7f0 block/blk-core.c:849 submit_bio+0xfb/0x110 iomap_dio_submit_bio fs/iomap/direct-io.c:77 [inline] iomap_dio_bio_iter+0x9ed/0xba0 fs/iomap/direct-io.c:361 __iomap_dio_rw+0x8eb/0xf50 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:566 [inline] ext4_file_write_iter+0xaa9/0x1210 fs/ext4/file.c:677 call_write_iter include/linux/fs.h:2058 [inline] aio_write+0x2e0/0x3c0 fs/aio.c:1603 io_submit_one+0x89b/0x1190 fs/aio.c:2022 __do_sys_io_submit fs/aio.c:2081 [inline] __se_sys_io_submit+0x105/0x280 fs/aio.c:2051 __x64_sys_io_submit+0x3f/0x50 fs/aio.c:2051 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 0xffff8881392b3c38 of 8 bytes by task 1405 on cpu 1: relay_switch_subbuf+0x39d/0x3b0 kernel/relay.c:711 relay_reserve include/linux/relay.h:248 [inline] __blk_add_trace+0x6ba/0x710 kernel/trace/blktrace.c:275 blk_add_trace_bio kernel/trace/blktrace.c:905 [inline] blk_add_trace_bio_queue+0x13e/0x150 kernel/trace/blktrace.c:937 trace_block_bio_queue include/trace/events/block.h:355 [inline] submit_bio_noacct+0x7b2/0x7f0 block/blk-core.c:843 submit_bio+0xfb/0x110 submit_bh_wbc+0x2a8/0x2f0 fs/buffer.c:3039 submit_bh+0x1e/0x30 fs/buffer.c:3045 jbd2_journal_commit_transaction+0x1458/0x3180 fs/jbd2/commit.c:766 kjournald2+0x253/0x460 fs/jbd2/journal.c:213 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 value changed: 0x0000000000000040 -> 0x0000000000000030 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1405 Comm: jbd2/sda1-8 Not tainted 5.19.0-rc6-syzkaller-00378-gc658cabbfd32-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 ==================================================================