================================================================== BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf write to 0xffff8880a6eab438 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+0x820/0x860 kernel/trace/blktrace.c:271 blk_add_trace_rq+0x15b/0x1a0 kernel/trace/blktrace.c:809 blk_add_trace_rq_complete+0x5c/0x70 kernel/trace/blktrace.c:838 trace_block_rq_complete include/trace/events/block.h:116 [inline] blk_update_request+0x232/0x7b0 block/blk-core.c:1437 scsi_end_request+0x6b/0x360 drivers/scsi/scsi_lib.c:576 scsi_io_completion+0x11d/0xc80 drivers/scsi/scsi_lib.c:960 scsi_finish_command+0x283/0x380 drivers/scsi/scsi.c:228 scsi_softirq_done+0x259/0x280 drivers/scsi/scsi_lib.c:1476 blk_done_softirq+0x1eb/0x250 block/blk-softirq.c:37 __do_softirq+0x115/0x33f kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xbb/0xe0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] do_IRQ+0x81/0x130 arch/x86/kernel/irq.c:263 ret_from_intr+0x0/0x21 filemap_map_pages+0x8d8/0x990 mm/filemap.c:2650 do_fault_around mm/memory.c:3546 [inline] do_read_fault mm/memory.c:3580 [inline] do_fault mm/memory.c:3714 [inline] handle_pte_fault mm/memory.c:3945 [inline] __handle_mm_fault+0x2a92/0x2e00 mm/memory.c:4075 handle_mm_fault+0x21b/0x530 mm/memory.c:4112 do_user_addr_fault arch/x86/mm/fault.c:1441 [inline] __do_page_fault+0x456/0x8d0 arch/x86/mm/fault.c:1506 do_page_fault+0x38/0x194 arch/x86/mm/fault.c:1530 page_fault+0x34/0x40 arch/x86/entry/entry_64.S:1203 write to 0xffff8880a6eab438 of 8 bytes by task 29084 on cpu 0: relay_switch_subbuf+0x478/0x490 kernel/relay.c:790 relay_reserve include/linux/relay.h:261 [inline] __blk_add_trace+0x820/0x860 kernel/trace/blktrace.c:271 blk_add_trace_bio_remap+0x189/0x1a0 kernel/trace/blktrace.c:1001 trace_block_bio_remap include/trace/events/block.h:559 [inline] blk_partition_remap block/blk-core.c:858 [inline] generic_make_request_checks+0xdbe/0x1040 block/blk-core.c:898 generic_make_request+0x3e/0x700 block/blk-core.c:1020 submit_bio+0x96/0x3c0 block/blk-core.c:1192 iomap_dio_submit_bio.isra.0+0xfc/0x120 fs/iomap/direct-io.c:70 iomap_dio_bio_actor+0x40a/0x960 fs/iomap/direct-io.c:306 iomap_dio_actor+0x87/0x3a0 fs/iomap/direct-io.c:382 iomap_apply+0x20d/0x6a0 fs/iomap/apply.c:80 iomap_dio_rw+0x67e/0x9a0 fs/iomap/direct-io.c:498 ext4_dio_write_iter fs/ext4/file.c:438 [inline] ext4_file_write_iter+0xc38/0xd40 fs/ext4/file.c:545 call_write_iter include/linux/fs.h:1902 [inline] new_sync_write+0x388/0x4a0 fs/read_write.c:483 __vfs_write+0xb1/0xc0 fs/read_write.c:496 vfs_write fs/read_write.c:558 [inline] vfs_write+0x18a/0x390 fs/read_write.c:542 ksys_write+0xd5/0x1b0 fs/read_write.c:611 __do_sys_write fs/read_write.c:623 [inline] __se_sys_write fs/read_write.c:620 [inline] __x64_sys_write+0x4c/0x60 fs/read_write.c:620 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 29084 Comm: syz-executor.4 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================