KCSAN: data-race in fat12_ent_put / fat_mirror_bhs (2)

Status: upstream: reported on 2026/09/12 14:38
Subsystems: exfat
Labels: race:harmful
[Documentation on labels]
Reported-by: syzbot+ff8bd63dc02136db5a1a@syzkaller.appspotmail.com
First crash: 8h39m, last: 1h38m
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision
2b378d84 assessment-kcsan Benign: ❌ KCSAN: data-race in fat12_ent_put / fat_mirror_bhs (2) 2026/09/12 13:54 2026/09/12 13:54 2026/09/12 14:37 70a60e12
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [exfat?] KCSAN: data-race in fat12_ent_put / fat_mirror_bhs (2) 0 (1) 2026/09/12 14:38
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fat12_ent_put / fat_mirror_bhs prio:low exfat 6 68 75d 218d 0/29 auto-obsoleted due to no activity on 2026/08/24 11:30

Sample crash report:
loop3: detected capacity change from 0 to 8192
==================================================================
BUG: KCSAN: data-race in fat12_ent_put / fat_mirror_bhs

read-write to 0xffff888127b2b1a6 of 1 bytes by task 13946 on cpu 1:
 fat12_ent_put+0xc4/0x180 fs/fat/fatent.c:165
 fat_alloc_clusters+0x55e/0xc40 fs/fat/fatent.c:508
 fat_add_cluster fs/fat/inode.c:108 [inline]
 __fat_get_block fs/fat/inode.c:155 [inline]
 fat_get_block+0x252/0x5e0 fs/fat/inode.c:190
 __block_write_begin_int+0x400/0xf90 fs/buffer.c:2030
 block_write_begin fs/buffer.c:2144 [inline]
 cont_write_begin+0x5bf/0x920 fs/buffer.c:2506
 fat_write_begin+0x52/0xe0 fs/fat/inode.c:230
 generic_perform_write+0x186/0x490 mm/filemap.c:4374
 __generic_file_write_iter+0x9e/0x120 mm/filemap.c:4491
 generic_file_write_iter+0x77/0x1f0 mm/filemap.c:4517
 __kernel_write_iter+0x30f/0x590 fs/read_write.c:621
 dump_emit_page fs/coredump.c:1293 [inline]
 dump_user_range+0xa73/0xd00 fs/coredump.c:1367
 elf_core_dump+0x21c0/0x2340 fs/binfmt_elf.c:2106
 coredump_write+0xafb/0xdd0 fs/coredump.c:1047
 do_coredump fs/coredump.c:1126 [inline]
 vfs_coredump+0x2762/0x3270 fs/coredump.c:1195
 get_signal+0xd33/0xf10 kernel/signal.c:3036
 arch_do_signal_or_restart+0x96/0x480 arch/x86/kernel/signal.c:337
 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:101 [inline]
 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
 irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:244 [inline]
 irqentry_exit_to_user_mode include/linux/irq-entry-common.h:315 [inline]
 irqentry_exit+0x14d/0x610 kernel/entry/common.c:165
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595

read to 0xffff888127b2b000 of 512 bytes by task 13918 on cpu 0:
 fat_mirror_bhs+0x1df/0x330 fs/fat/fatent.c:399
 fat_alloc_clusters+0xb25/0xc40 fs/fat/fatent.c:548
 fat_add_cluster fs/fat/inode.c:108 [inline]
 __fat_get_block fs/fat/inode.c:155 [inline]
 fat_get_block+0x252/0x5e0 fs/fat/inode.c:190
 __block_write_begin_int+0x400/0xf90 fs/buffer.c:2030
 block_write_begin fs/buffer.c:2144 [inline]
 cont_write_begin+0x5bf/0x920 fs/buffer.c:2506
 fat_write_begin+0x52/0xe0 fs/fat/inode.c:230
 cont_expand_zero fs/buffer.c:2434 [inline]
 cont_write_begin+0x18d/0x920 fs/buffer.c:2496
 fat_write_begin+0x52/0xe0 fs/fat/inode.c:230
 generic_cont_expand_simple+0xb0/0x150 fs/buffer.c:2397
 fat_cont_expand+0x3e/0x170 fs/fat/file.c:226
 fat_fallocate+0x177/0x1c0 fs/fat/file.c:304
 vfs_fallocate+0x3ac/0x400 fs/open.c:338
 ksys_fallocate fs/open.c:362 [inline]
 __do_sys_fallocate fs/open.c:367 [inline]
 __se_sys_fallocate fs/open.c:365 [inline]
 __x64_sys_fallocate+0x7a/0xd0 fs/open.c:365
 x64_sys_call+0x1e1d/0x2550 arch/x86/include/generated/asm/syscalls_64.h:286
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x112/0x360 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 13918 Comm: syz.3.1712 Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/12 20:55 upstream 5225b8eec4c9 70a60e12 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in fat12_ent_put / fat_mirror_bhs
2026/09/12 13:54 upstream 3026c6e4f223 70a60e12 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in fat12_ent_put / fat_mirror_bhs
* Struck through repros no longer work on HEAD.