loop1: detected capacity change from 0 to 8192 ================================================================== BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf write to 0xffff8881188bce38 of 8 bytes by task 5189 on cpu 0: relay_switch_subbuf+0x39e/0x3b0 kernel/relay.c:708 relay_reserve include/linux/relay.h:248 [inline] __blk_add_trace+0x66a/0x730 kernel/trace/blktrace.c:276 blk_add_trace_plug+0x4c/0x70 kernel/trace/blktrace.c:949 trace_block_plug include/trace/events/block.h:430 [inline] blk_add_rq_to_plug+0x31b/0x3d0 block/blk-mq.c:1378 blk_mq_submit_bio+0x96c/0xe40 block/blk-mq.c:3146 __submit_bio+0xf2/0x470 block/blk-core.c:629 __submit_bio_noacct_mq block/blk-core.c:710 [inline] submit_bio_noacct_nocheck+0x295/0x6e0 block/blk-core.c:739 submit_bio_noacct+0x766/0x9a0 block/blk-core.c:868 submit_bio+0x218/0x230 block/blk-core.c:910 submit_bh_wbc+0x2ed/0x330 fs/buffer.c:2814 submit_bh fs/buffer.c:2819 [inline] __sync_dirty_buffer+0x171/0x250 fs/buffer.c:2857 sync_dirty_buffer+0x1a/0x20 fs/buffer.c:2870 fat_mirror_bhs+0x278/0x330 fs/fat/fatent.c:400 fat_alloc_clusters+0x994/0xa80 fs/fat/fatent.c:543 fat_add_cluster fs/fat/inode.c:107 [inline] __fat_get_block fs/fat/inode.c:154 [inline] fat_get_block+0x25c/0x5e0 fs/fat/inode.c:189 __block_write_begin_int+0x417/0xfa0 fs/buffer.c:2116 block_write_begin fs/buffer.c:2226 [inline] cont_write_begin+0x546/0x860 fs/buffer.c:2577 fat_write_begin+0x51/0xe0 fs/fat/inode.c:228 generic_perform_write+0x1a8/0x4a0 mm/filemap.c:4055 __generic_file_write_iter+0xa1/0x120 mm/filemap.c:4156 generic_file_write_iter+0x77/0x1c0 mm/filemap.c:4182 aio_write+0x2f7/0x420 fs/aio.c:1633 io_submit_one+0xb0c/0x1230 fs/aio.c:2052 __do_sys_io_submit fs/aio.c:2111 [inline] __se_sys_io_submit+0xf5/0x280 fs/aio.c:2081 __x64_sys_io_submit+0x43/0x50 fs/aio.c:2081 x64_sys_call+0x2c20/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:210 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f write to 0xffff8881188bce38 of 8 bytes by task 5186 on cpu 1: relay_switch_subbuf+0x39e/0x3b0 kernel/relay.c:708 relay_reserve include/linux/relay.h:248 [inline] __blk_add_trace+0x66a/0x730 kernel/trace/blktrace.c:276 blk_add_trace_plug+0x4c/0x70 kernel/trace/blktrace.c:949 trace_block_plug include/trace/events/block.h:430 [inline] blk_add_rq_to_plug+0x31b/0x3d0 block/blk-mq.c:1378 blk_mq_submit_bio+0x96c/0xe40 block/blk-mq.c:3146 __submit_bio+0xf2/0x470 block/blk-core.c:629 __submit_bio_noacct_mq block/blk-core.c:710 [inline] submit_bio_noacct_nocheck+0x295/0x6e0 block/blk-core.c:739 submit_bio_noacct+0x766/0x9a0 block/blk-core.c:868 submit_bio+0x218/0x230 block/blk-core.c:910 submit_bh_wbc+0x2ed/0x330 fs/buffer.c:2814 submit_bh fs/buffer.c:2819 [inline] write_dirty_buffer+0xf4/0x120 fs/buffer.c:2832 fat_sync_bhs+0x4b/0x140 fs/fat/misc.c:367 fat_alloc_clusters+0x941/0xa80 fs/fat/fatent.c:541 fat_add_cluster fs/fat/inode.c:107 [inline] __fat_get_block fs/fat/inode.c:154 [inline] fat_get_block+0x25c/0x5e0 fs/fat/inode.c:189 __block_write_begin_int+0x417/0xfa0 fs/buffer.c:2116 block_write_begin fs/buffer.c:2226 [inline] cont_write_begin+0x546/0x860 fs/buffer.c:2577 fat_write_begin+0x51/0xe0 fs/fat/inode.c:228 generic_perform_write+0x1a8/0x4a0 mm/filemap.c:4055 __generic_file_write_iter+0xa1/0x120 mm/filemap.c:4156 generic_file_write_iter+0x77/0x1c0 mm/filemap.c:4182 new_sync_write fs/read_write.c:586 [inline] vfs_write+0x77f/0x920 fs/read_write.c:679 ksys_write+0xe8/0x1b0 fs/read_write.c:731 __do_sys_write fs/read_write.c:742 [inline] __se_sys_write fs/read_write.c:739 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:739 x64_sys_call+0x287e/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x0000000000000038 -> 0x0000000000000030 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 5186 Comm: syz.1.521 Not tainted 6.13.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 ================================================================== syz.1.521 (5186) used greatest stack depth: 9880 bytes left