================================================================== BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf write to 0xffff8880b35b2838 of 8 bytes by task 8467 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 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_handle_dirty_metadata+0x19c/0x350 fs/ext4/ext4_jbd2.c:300 ext4_handle_dirty_dirblock+0x20a/0x280 fs/ext4/namei.c:404 ext4_init_new_dir fs/ext4/namei.c:2738 [inline] ext4_mkdir+0x4aa/0x820 fs/ext4/namei.c:2773 vfs_mkdir+0x283/0x390 fs/namei.c:3807 do_mkdirat+0x1ac/0x1f0 fs/namei.c:3830 __do_sys_mkdir fs/namei.c:3846 [inline] __se_sys_mkdir fs/namei.c:3844 [inline] __x64_sys_mkdir+0x40/0x50 fs/namei.c:3844 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff8880b35b2838 of 8 bytes by task 16663 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 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_handle_dirty_metadata+0x19c/0x350 fs/ext4/ext4_jbd2.c:300 ext4_handle_dirty_dirblock+0x20a/0x280 fs/ext4/namei.c:404 add_dirent_to_buf+0x271/0x390 fs/ext4/namei.c:2026 ext4_add_entry+0x37b/0x8f0 fs/ext4/namei.c:2225 ext4_add_nondir+0x31/0xa0 fs/ext4/namei.c:2553 ext4_symlink+0x7c0/0x970 fs/ext4/namei.c:3331 vfs_symlink fs/namei.c:4119 [inline] vfs_symlink+0x218/0x310 fs/namei.c:4105 do_symlinkat+0x1a5/0x1e0 fs/namei.c:4146 __do_sys_symlink fs/namei.c:4165 [inline] __se_sys_symlink fs/namei.c:4163 [inline] __x64_sys_symlink+0x3f/0x50 fs/namei.c:4163 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: 16663 Comm: syz-executor.3 Not tainted 5.4.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================