================================================================== BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf write to 0xffff88813bd3ec38 of 8 bytes by task 1395 on cpu 0: relay_switch_subbuf+0x39d/0x3b0 kernel/relay.c:708 relay_reserve include/linux/relay.h:248 [inline] __blk_add_trace+0x6a7/0x700 kernel/trace/blktrace.c:276 blk_add_trace_bio kernel/trace/blktrace.c:907 [inline] blk_add_trace_bio_queue+0x12e/0x140 kernel/trace/blktrace.c:939 trace_block_bio_queue include/trace/events/block.h:355 [inline] submit_bio_noacct+0x7cf/0x810 block/blk-core.c:784 submit_bio+0xfb/0x110 block/blk-core.c:826 submit_bh_wbc+0x2b0/0x2f0 fs/buffer.c:2702 submit_bh+0x18/0x20 fs/buffer.c:2707 jbd2_journal_commit_transaction+0x13f3/0x30b0 fs/jbd2/commit.c:764 kjournald2+0x233/0x420 fs/jbd2/journal.c:210 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 write to 0xffff88813bd3ec38 of 8 bytes by interrupt on cpu 1: relay_switch_subbuf+0x39d/0x3b0 kernel/relay.c:708 relay_reserve include/linux/relay.h:248 [inline] __blk_add_trace+0x6a7/0x700 kernel/trace/blktrace.c:276 blk_add_trace_rq kernel/trace/blktrace.c:848 [inline] blk_add_trace_rq_complete+0x1af/0x1c0 kernel/trace/blktrace.c:880 trace_block_rq_complete include/trace/events/block.h:147 [inline] blk_update_request+0x807/0x850 block/blk-mq.c:864 scsi_end_request+0x52/0x470 drivers/scsi/scsi_lib.c:541 scsi_io_completion+0x95/0x1f0 drivers/scsi/scsi_lib.c:979 scsi_finish_command+0x1b7/0x1c0 drivers/scsi/scsi.c:198 scsi_complete+0x19e/0x1d0 drivers/scsi/scsi_lib.c:1446 blk_complete_reqs block/blk-mq.c:1099 [inline] blk_done_softirq+0x92/0xc0 block/blk-mq.c:1104 __do_softirq+0xf2/0x2c7 kernel/softirq.c:571 __irq_exit_rcu kernel/softirq.c:650 [inline] irq_exit_rcu+0x41/0x70 kernel/softirq.c:662 common_interrupt+0x9f/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:640 memset_erms+0xb/0x10 arch/x86/lib/memset_64.S:64 mext_page_mkuptodate+0x6e/0x860 fs/ext4/move_extent.c:173 move_extent_per_page+0x5a3/0x12c0 fs/ext4/move_extent.c:350 ext4_move_extents+0x616/0x7b0 fs/ext4/move_extent.c:672 __ext4_ioctl fs/ext4/ioctl.c:1350 [inline] ext4_ioctl+0x1cb0/0x2c00 fs/ext4/ioctl.c:1606 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856 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+0x63/0xcd value changed: 0x0000000000000040 -> 0x0000000000000030 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 25588 Comm: syz-executor.3 Not tainted 6.1.0-rc8-syzkaller-00152-g3ecc37918c80-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 ==================================================================