================================================================== BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf write to 0xffff88813bc62438 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:896 scsi_end_request+0x52/0x470 drivers/scsi/scsi_lib.c:539 scsi_io_completion+0x95/0x1f0 drivers/scsi/scsi_lib.c:977 scsi_finish_command+0x1b7/0x1c0 drivers/scsi/scsi.c:198 scsi_complete+0x19e/0x1d0 drivers/scsi/scsi_lib.c:1441 blk_complete_reqs block/blk-mq.c:1131 [inline] blk_done_softirq+0x92/0xc0 block/blk-mq.c:1136 __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 native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline] arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline] acpi_safe_halt drivers/acpi/processor_idle.c:112 [inline] acpi_idle_do_entry drivers/acpi/processor_idle.c:570 [inline] acpi_idle_enter+0x283/0x340 drivers/acpi/processor_idle.c:707 cpuidle_enter_state+0x2de/0x960 drivers/cpuidle/cpuidle.c:239 cpuidle_enter+0x3c/0x60 drivers/cpuidle/cpuidle.c:356 call_cpuidle kernel/sched/idle.c:155 [inline] cpuidle_idle_call kernel/sched/idle.c:236 [inline] do_idle+0x1a7/0x250 kernel/sched/idle.c:303 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:400 start_secondary+0x78/0x80 arch/x86/kernel/smpboot.c:264 secondary_startup_64_no_verify+0xcf/0xdb write to 0xffff88813bc62438 of 8 bytes by task 2701 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:799 submit_bio+0xfb/0x110 block/blk-core.c:841 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:763 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:308 value changed: 0x0000000000000040 -> 0x0000000000000030 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 2701 Comm: jbd2/sda1-8 Tainted: G W 6.2.0-rc1-syzkaller-00043-g2258c2dc850b-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 ==================================================================