================================================================== BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf write to 0xffff8881389fd638 of 8 bytes by task 13316 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_remap+0x218/0x230 kernel/trace/blktrace.c:1025 trace_block_bio_remap include/trace/events/block.h:479 [inline] blk_partition_remap+0x170/0x1b0 block/blk-core.c:615 submit_bio_noacct+0x378/0x820 block/blk-core.c:801 submit_bio+0x139/0x150 ext4_io_submit+0x4f/0x60 fs/ext4/page-io.c:378 ext4_writepages+0x5f0/0x1970 fs/ext4/inode.c:2762 do_writepages+0x1db/0x350 mm/page-writeback.c:2352 filemap_fdatawrite_wbc+0xd6/0xf0 mm/filemap.c:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] filemap_write_and_wait_range+0xbf/0x2e0 mm/filemap.c:673 __iomap_dio_rw+0x514/0xf80 fs/iomap/direct-io.c:562 iomap_dio_rw+0x38/0x80 fs/iomap/direct-io.c:681 ext4_dio_read_iter fs/ext4/file.c:79 [inline] ext4_file_read_iter+0x19c/0x200 fs/ext4/file.c:130 call_read_iter include/linux/fs.h:2044 [inline] generic_file_splice_read+0x1de/0x2c0 fs/splice.c:311 do_splice_to fs/splice.c:796 [inline] splice_direct_to_actor+0x2ac/0x660 fs/splice.c:870 do_splice_direct+0xfb/0x180 fs/splice.c:979 do_sendfile+0x3ad/0x900 fs/read_write.c:1246 __do_sys_sendfile64 fs/read_write.c:1311 [inline] __se_sys_sendfile64 fs/read_write.c:1297 [inline] __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1297 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+0x44/0xae write to 0xffff8881389fd638 of 8 bytes by task 1404 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_bio kernel/trace/blktrace.c:906 [inline] blk_add_trace_bio_backmerge+0x15d/0x170 kernel/trace/blktrace.c:926 trace_block_bio_backmerge include/trace/events/block.h:333 [inline] bio_attempt_back_merge+0x2ad/0x2f0 block/blk-merge.c:923 blk_attempt_bio_merge+0x438/0x480 block/blk-merge.c:1002 blk_attempt_plug_merge+0xb3/0xf0 block/blk-merge.c:1049 blk_mq_attempt_bio_merge block/blk-mq.c:2717 [inline] blk_mq_get_new_requests block/blk-mq.c:2740 [inline] blk_mq_submit_bio+0x76c/0xe40 block/blk-mq.c:2824 __submit_bio+0x130/0x330 block/blk-core.c:666 __submit_bio_noacct_mq block/blk-core.c:743 [inline] submit_bio_noacct_nocheck+0x3cb/0x480 block/blk-core.c:760 submit_bio_noacct+0x6c4/0x820 block/blk-core.c:867 submit_bio+0x139/0x150 submit_bh_wbc+0x2a8/0x2f0 fs/buffer.c:3045 submit_bh+0x1e/0x30 fs/buffer.c:3051 jbd2_journal_commit_transaction+0xf34/0x2490 fs/jbd2/commit.c:764 kjournald2+0x1af/0x370 fs/jbd2/journal.c:213 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 value changed: 0x0000000000000030 -> 0x0000000000000040 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1404 Comm: jbd2/sda1-8 Not tainted 5.18.0-rc5-syzkaller-00028-ga7391ad35724-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== ================================================================== BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf write to 0xffff8881389fd638 of 8 bytes by task 13535 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_unplug+0x74/0xb0 kernel/trace/blktrace.c:973 trace_block_unplug include/trace/events/block.h:424 [inline] blk_mq_dispatch_plug_list+0x27b/0x2c0 block/blk-mq.c:2596 blk_mq_flush_plug_list+0x2ea/0x340 block/blk-mq.c:2639 __blk_flush_plug+0x25a/0x2b0 block/blk-core.c:1244 blk_finish_plug+0x44/0x60 block/blk-core.c:1268 __iomap_dio_rw+0xc50/0xf80 fs/iomap/direct-io.c:599 iomap_dio_rw+0x38/0x80 fs/iomap/direct-io.c:681 ext4_dio_read_iter fs/ext4/file.c:79 [inline] ext4_file_read_iter+0x19c/0x200 fs/ext4/file.c:130 call_read_iter include/linux/fs.h:2044 [inline] generic_file_splice_read+0x1de/0x2c0 fs/splice.c:311 do_splice_to fs/splice.c:796 [inline] splice_direct_to_actor+0x2ac/0x660 fs/splice.c:870 do_splice_direct+0xfb/0x180 fs/splice.c:979 do_sendfile+0x3ad/0x900 fs/read_write.c:1246 __do_sys_sendfile64 fs/read_write.c:1311 [inline] __se_sys_sendfile64 fs/read_write.c:1297 [inline] __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1297 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+0x44/0xae write to 0xffff8881389fd638 of 8 bytes by task 1404 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:906 [inline] blk_add_trace_bio_queue+0x15d/0x170 kernel/trace/blktrace.c:938 trace_block_bio_queue include/trace/events/block.h:355 [inline] submit_bio_noacct+0x7e3/0x820 block/blk-core.c:861 submit_bio+0x139/0x150 submit_bh_wbc+0x2a8/0x2f0 fs/buffer.c:3045 submit_bh+0x1e/0x30 fs/buffer.c:3051 jbd2_journal_commit_transaction+0xf34/0x2490 fs/jbd2/commit.c:764 kjournald2+0x1af/0x370 fs/jbd2/journal.c:213 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 value changed: 0x0000000000000040 -> 0x0000000000000038 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1404 Comm: jbd2/sda1-8 Not tainted 5.18.0-rc5-syzkaller-00028-ga7391ad35724-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================