==================================================================
BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf

write to 0xffff8880a3c64838 of 8 bytes by interrupt 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_rq+0x15b/0x1a0 kernel/trace/blktrace.c:813
 blk_add_trace_rq_complete+0xf4/0x110 kernel/trace/blktrace.c:842
 trace_block_rq_complete include/trace/events/block.h:116 [inline]
 blk_update_request+0x232/0x7b0 block/blk-core.c:1435
 scsi_end_request+0x6b/0x3e0 drivers/scsi/scsi_lib.c:579
 scsi_io_completion+0x11d/0xc80 drivers/scsi/scsi_lib.c:963
 scsi_finish_command+0x280/0x380 drivers/scsi/scsi.c:228
 scsi_softirq_done+0x259/0x280 drivers/scsi/scsi_lib.c:1477
 blk_done_softirq+0x1eb/0x250 block/blk-softirq.c:37
 __do_softirq+0x115/0x33f kernel/softirq.c:292
 run_ksoftirqd+0x46/0x60 kernel/softirq.c:603
 smpboot_thread_fn+0x37d/0x4a0 kernel/smpboot.c:165
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

write to 0xffff8880a3c64838 of 8 bytes by task 22272 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
 submit_bh_wbc+0x40f/0x460 fs/buffer.c:3095
 __block_write_full_page+0x4e9/0x870 fs/buffer.c:1767
 block_write_full_page+0x1c0/0x1e0 fs/buffer.c:2953
 blkdev_writepage+0x2e/0x40 fs/block_dev.c:609
 __writepage+0x40/0xb0 mm/page-writeback.c:2303
 write_cache_pages+0x47a/0xb40 mm/page-writeback.c:2238
 generic_writepages mm/page-writeback.c:2329 [inline]
 generic_writepages+0x79/0xc0 mm/page-writeback.c:2318
 blkdev_writepages+0x27/0x40 fs/block_dev.c:2031
 do_writepages+0x6b/0x170 mm/page-writeback.c:2344
 __filemap_fdatawrite_range+0x1c5/0x230 mm/filemap.c:421
 __filemap_fdatawrite mm/filemap.c:429 [inline]
 filemap_flush+0x2d/0x40 mm/filemap.c:456
 __sync_blockdev fs/block_dev.c:490 [inline]
 __sync_blockdev+0x81/0x90 fs/block_dev.c:485
 __sync_filesystem fs/sync.c:40 [inline]
 sync_filesystem+0x116/0x1a0 fs/sync.c:64
 ovl_sync_fs+0x92/0xa0 fs/overlayfs/super.c:276
 __sync_filesystem fs/sync.c:39 [inline]
 sync_filesystem fs/sync.c:67 [inline]
 sync_filesystem+0x168/0x1a0 fs/sync.c:48
 generic_shutdown_super+0x6b/0x260 fs/super.c:448
 kill_anon_super+0x2f/0x50 fs/super.c:1106
 deactivate_locked_super+0x64/0xb0 fs/super.c:335
 deactivate_super fs/super.c:366 [inline]
 deactivate_super+0xca/0xe0 fs/super.c:362
 cleanup_mnt+0x27f/0x330 fs/namespace.c:1102
 __cleanup_mnt+0x1f/0x30 fs/namespace.c:1109
 task_work_run+0xf6/0x130 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:163
 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:274 [inline]
 do_syscall_64+0x353/0x370 arch/x86/entry/common.c:300
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 22272 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
==================================================================