================================================================== BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf write to 0xffff8880b427be38 of 8 bytes by task 2504 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_issue+0xec/0x100 kernel/trace/blktrace.c:827 trace_block_rq_issue include/trace/events/block.h:207 [inline] blk_mq_start_request+0x21f/0x370 block/blk-mq.c:682 scsi_mq_prep_fn drivers/scsi/scsi_lib.c:1602 [inline] scsi_queue_rq+0x943/0x1850 drivers/scsi/scsi_lib.c:1672 blk_mq_dispatch_rq_list+0xbe9/0xe40 block/blk-mq.c:1273 blk_mq_do_dispatch_sched+0x11d/0x260 block/blk-mq-sched.c:115 blk_mq_sched_dispatch_requests+0x2b4/0x380 block/blk-mq-sched.c:211 __blk_mq_run_hw_queue+0xb7/0x160 block/blk-mq.c:1403 blk_mq_run_work_fn+0x57/0x70 block/blk-mq.c:1636 process_one_work+0x3d4/0x890 kernel/workqueue.c:2269 worker_thread+0xa0/0x800 kernel/workqueue.c:2415 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 write to 0xffff8880b427be38 of 8 bytes by task 26291 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.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 submit_bh_wbc+0x40f/0x460 fs/buffer.c:3095 submit_bh fs/buffer.c:3101 [inline] __sync_dirty_buffer+0xd3/0x210 fs/buffer.c:3187 sync_dirty_buffer+0x24/0x40 fs/buffer.c:3200 ext4_write_inode+0x312/0x330 fs/ext4/inode.c:5427 write_inode fs/fs-writeback.c:1312 [inline] __writeback_single_inode+0x6f7/0x8e0 fs/fs-writeback.c:1511 writeback_single_inode+0x232/0x310 fs/fs-writeback.c:1565 sync_inode fs/fs-writeback.c:2602 [inline] sync_inode_metadata+0x74/0xa0 fs/fs-writeback.c:2622 __generic_file_fsync+0x122/0x190 fs/libfs.c:1011 ext4_sync_file+0x48e/0xb00 fs/ext4/fsync.c:120 vfs_fsync_range+0x82/0x150 fs/sync.c:197 generic_write_sync include/linux/fs.h:2853 [inline] ext4_file_write_iter+0x45b/0xa00 fs/ext4/file.c:279 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: 1 PID: 26291 Comm: syz-executor.2 Not tainted 5.4.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================