================================================================== BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf write to 0xffff8880ab9fa038 of 8 bytes by task 18924 on cpu 1: relay_switch_subbuf+0x478/0x490 kernel/relay.c:790 relay_reserve include/linux/relay.h:261 [inline] __blk_add_trace+0x801/0x840 kernel/trace/blktrace.c:272 blk_add_trace_bio_remap+0x1d9/0x200 kernel/trace/blktrace.c:1005 trace_block_bio_remap include/trace/events/block.h:559 [inline] blk_partition_remap block/blk-core.c:859 [inline] generic_make_request_checks+0xbf1/0x1130 block/blk-core.c:899 generic_make_request+0x3e/0x740 block/blk-core.c:1018 submit_bio+0x96/0x3c0 block/blk-core.c:1190 dio_bio_submit fs/direct-io.c:481 [inline] do_blockdev_direct_IO+0x64e1/0x78c0 fs/direct-io.c:1353 __blockdev_direct_IO+0x86/0xa0 fs/direct-io.c:1412 ext4_direct_IO_write fs/ext4/inode.c:3742 [inline] ext4_direct_IO+0x76c/0xfb0 fs/ext4/inode.c:3871 generic_file_direct_write+0x14d/0x2e0 mm/filemap.c:3208 __generic_file_write_iter+0x17e/0x380 mm/filemap.c:3391 ext4_file_write_iter+0x1bd/0xa00 fs/ext4/file.c:268 call_write_iter include/linux/fs.h:1895 [inline] do_iter_readv_writev+0x487/0x5b0 fs/read_write.c:693 do_iter_write fs/read_write.c:970 [inline] do_iter_write+0x13b/0x3c0 fs/read_write.c:951 vfs_iter_write+0x5c/0x80 fs/read_write.c:983 iter_file_splice_write+0x4c0/0x7f0 fs/splice.c:746 do_splice_from fs/splice.c:848 [inline] direct_splice_actor+0xa0/0xc0 fs/splice.c:1020 splice_direct_to_actor+0x215/0x510 fs/splice.c:975 do_splice_direct+0x161/0x1e0 fs/splice.c:1063 do_sendfile+0x384/0x7f0 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x12a/0x140 fs/read_write.c:1511 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff8880ab9fa038 of 8 bytes by task 18942 on cpu 0: relay_switch_subbuf+0x478/0x490 kernel/relay.c:790 relay_reserve include/linux/relay.h:261 [inline] __blk_add_trace+0x801/0x840 kernel/trace/blktrace.c:272 blk_add_trace_rq+0x15b/0x1a0 kernel/trace/blktrace.c:813 blk_add_trace_rq_insert+0xec/0x100 kernel/trace/blktrace.c:820 trace_block_rq_insert include/trace/events/block.h:192 [inline] blk_mq_sched_request_inserted+0xf2/0x140 block/blk-mq-sched.c:356 dd_insert_request block/mq-deadline.c:499 [inline] dd_insert_requests+0x1f1/0x5a0 block/mq-deadline.c:535 blk_mq_sched_insert_requests+0x134/0x2e0 block/blk-mq-sched.c:429 blk_mq_flush_plug_list+0x572/0x6c0 block/blk-mq.c:1772 blk_flush_plug_list+0x271/0x2a0 block/blk-core.c:1766 blk_finish_plug block/blk-core.c:1783 [inline] blk_finish_plug+0x60/0x84 block/blk-core.c:1779 do_blockdev_direct_IO+0x48b6/0x78c0 fs/direct-io.c:1355 __blockdev_direct_IO+0x86/0xa0 fs/direct-io.c:1412 ext4_direct_IO_write fs/ext4/inode.c:3742 [inline] ext4_direct_IO+0x76c/0xfb0 fs/ext4/inode.c:3871 generic_file_direct_write+0x14d/0x2e0 mm/filemap.c:3208 __generic_file_write_iter+0x17e/0x380 mm/filemap.c:3391 ext4_file_write_iter+0x1bd/0xa00 fs/ext4/file.c:268 call_write_iter include/linux/fs.h:1895 [inline] do_iter_readv_writev+0x487/0x5b0 fs/read_write.c:693 do_iter_write fs/read_write.c:970 [inline] do_iter_write+0x13b/0x3c0 fs/read_write.c:951 vfs_iter_write+0x5c/0x80 fs/read_write.c:983 iter_file_splice_write+0x4c0/0x7f0 fs/splice.c:746 do_splice_from fs/splice.c:848 [inline] direct_splice_actor+0xa0/0xc0 fs/splice.c:1020 splice_direct_to_actor+0x215/0x510 fs/splice.c:975 do_splice_direct+0x161/0x1e0 fs/splice.c:1063 do_sendfile+0x384/0x7f0 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x12a/0x140 fs/read_write.c:1511 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 18942 Comm: syz-executor.4 Not tainted 5.4.0-rc7+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================