================================================================== BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf write to 0xffff888120c11238 of 8 bytes by task 8797 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_read fs/ext4/inode.c:3835 [inline] ext4_direct_IO+0x361/0xfb0 fs/ext4/inode.c:3869 generic_file_read_iter+0x1b0/0x1440 mm/filemap.c:2303 ext4_file_read_iter fs/ext4/file.c:77 [inline] ext4_file_read_iter+0xfa/0x240 fs/ext4/file.c:65 call_read_iter include/linux/fs.h:1889 [inline] generic_file_splice_read+0x35c/0x500 fs/splice.c:307 do_splice_to+0xf2/0x130 fs/splice.c:877 splice_direct_to_actor+0x1a1/0x510 fs/splice.c:954 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 0xffff888120c11238 of 8 bytes by task 8791 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_bio.isra.0+0x12f/0x150 kernel/trace/blktrace.c:865 blk_add_trace_bio_queue+0x3d/0x50 kernel/trace/blktrace.c:902 trace_block_bio_queue include/trace/events/block.h:357 [inline] generic_make_request_checks+0xf34/0x1130 block/blk-core.c:966 generic_make_request+0x3e/0x740 block/blk-core.c:1018 submit_bio+0x96/0x3c0 block/blk-core.c:1190 ext4_mpage_readpages+0xfff/0x15c0 fs/ext4/readpage.c:408 ext4_readpages+0x92/0xc0 fs/ext4/inode.c:3342 read_pages+0xa2/0x2d0 mm/readahead.c:126 __do_page_cache_readahead+0x353/0x390 mm/readahead.c:212 ra_submit mm/internal.h:62 [inline] ondemand_readahead+0x35d/0x710 mm/readahead.c:492 page_cache_sync_readahead+0x1ad/0x1e0 mm/readahead.c:527 generic_file_buffered_read mm/filemap.c:2051 [inline] generic_file_read_iter+0xeb6/0x1440 mm/filemap.c:2324 ext4_file_read_iter fs/ext4/file.c:77 [inline] ext4_file_read_iter+0xfa/0x240 fs/ext4/file.c:65 call_read_iter include/linux/fs.h:1889 [inline] generic_file_splice_read+0x35c/0x500 fs/splice.c:307 do_splice_to+0xf2/0x130 fs/splice.c:877 splice_direct_to_actor+0x1a1/0x510 fs/splice.c:954 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: 8791 Comm: syz-executor.4 Not tainted 5.4.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================