syzbot


KCSAN: data-race in fat32_ent_put / fat_mirror_bhs (3)

Status: moderation: reported on 2026/02/08 19:57
Subsystems: exfat
Labels: prio:low
[Documentation on labels]
Reported-by: syzbot+e4ddb4d04ca84e14a5b5@syzkaller.appspotmail.com
First crash: 111d, last: 10d
✨ AI Jobs (4)
ID Workflow Result Correct Bug Created Started Finished Revision Error
b7183e06-e607-4986-8b56-1a5f37c526a6 assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ✅ NetworkTrigger: ❌ PeripheralTrigger: ✅ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ✅ VMHostTrigger: ❌ KCSAN: data-race in fat32_ent_put / fat_mirror_bhs (3) 2026/05/17 03:06 2026/05/17 03:06 2026/05/17 03:35 de5aae85e5f28e2fa1c7deefcc24fe286abe5140
eb46dae8-f28a-453c-83df-e3dda5d39c02 repro KCSAN: data-race in fat32_ent_put / fat_mirror_bhs (3) 2026/03/08 00:05 2026/03/08 00:05 2026/03/08 00:07 31e9c887f7dc24e04b3ca70d0d54fc34141844b0
c102b84b-248a-4eba-8c60-0600aae0e3ac assessment-kcsan Benign: ✅ Confident: ✅ KCSAN: data-race in fat32_ent_put / fat_mirror_bhs (3) 2026/02/24 21:15 2026/02/24 21:15 2026/02/24 21:20 305c0ec5cd886e2d13738e28e1b2df9b0ec20fc9
d500fb09-7157-4dde-8013-955297192a5c assessment-kcsan 💥 KCSAN: data-race in fat32_ent_put / fat_mirror_bhs (3) 2026/02/08 19:56 2026/02/08 19:56 2026/02/08 19:56 97745f52f5b9361548048f53f0b3b51b9313fedf fork/exec ./syz-agent: no such file or directory
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fat32_ent_put / fat_mirror_bhs (2) exfat 6 1 207d 207d 0/29 auto-obsoleted due to no activity on 2025/12/30 19:51
upstream KCSAN: data-race in fat32_ent_put / fat_mirror_bhs exfat 6 1 340d 340d 0/29 auto-obsoleted due to no activity on 2025/08/20 03:32

Sample crash report:
==================================================================
BUG: KCSAN: data-race in fat32_ent_put / fat_mirror_bhs

read-write to 0xffff888129571100 of 4 bytes by task 28102 on cpu 0:
 fat32_ent_put+0x4e/0x90 fs/fat/fatent.c:194
 fat_ent_write+0x6c/0xe0 fs/fat/fatent.c:422
 fat_chain_add+0x172/0x490 fs/fat/misc.c:136
 fat_add_cluster fs/fat/inode.c:113 [inline]
 __fat_get_block fs/fat/inode.c:155 [inline]
 fat_get_block+0x475/0x5f0 fs/fat/inode.c:190
 __block_write_begin_int+0x400/0xf90 fs/buffer.c:2042
 block_write_begin fs/buffer.c:2153 [inline]
 cont_write_begin+0x5fe/0x970 fs/buffer.c:2491
 fat_write_begin+0x52/0xe0 fs/fat/inode.c:230
 cont_expand_zero fs/buffer.c:2419 [inline]
 cont_write_begin+0x1b0/0x970 fs/buffer.c:2481
 fat_write_begin+0x52/0xe0 fs/fat/inode.c:230
 generic_perform_write+0x183/0x490 mm/filemap.c:4325
 __generic_file_write_iter+0xec/0x120 mm/filemap.c:4439
 generic_file_write_iter+0x8d/0x310 mm/filemap.c:4468
 do_iter_readv_writev+0x4fd/0x5a0 fs/read_write.c:-1
 vfs_writev+0x2e1/0x900 fs/read_write.c:1059
 do_pwritev fs/read_write.c:1155 [inline]
 __do_sys_pwritev2 fs/read_write.c:1213 [inline]
 __se_sys_pwritev2+0xfc/0x1c0 fs/read_write.c:1204
 __x64_sys_pwritev2+0x67/0x80 fs/read_write.c:1204
 x64_sys_call+0xe07/0x3020 arch/x86/include/generated/asm/syscalls_64.h:329
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x12c/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888129571000 of 512 bytes by task 28111 on cpu 1:
 fat_mirror_bhs+0x1df/0x330 fs/fat/fatent.c:399
 fat_ent_write+0xd0/0xe0 fs/fat/fatent.c:428
 fat_chain_add+0x172/0x490 fs/fat/misc.c:136
 fat_add_entries+0xdbb/0x10b0 fs/fat/dir.c:1399
 vfat_add_entry+0x2103/0x2280 fs/fat/namei_vfat.c:675
 vfat_rename fs/fat/namei_vfat.c:971 [inline]
 vfat_rename2+0x81d/0x13f0 fs/fat/namei_vfat.c:1176
 vfs_rename+0x97f/0xad0 fs/namei.c:6054
 filename_renameat2+0x3b6/0x6e0 fs/namei.c:6172
 __do_sys_renameat2 fs/namei.c:6201 [inline]
 __se_sys_renameat2+0x4f/0x1c0 fs/namei.c:6196
 __x64_sys_renameat2+0x67/0x80 fs/namei.c:6196
 x64_sys_call+0x2a12/0x3020 arch/x86/include/generated/asm/syscalls_64.h:317
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x12c/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 28111 Comm: syz.8.4663 Tainted: G        W           syzkaller #0 PREEMPT(full) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
==================================================================
bio_check_eod: 1 callbacks suppressed
syz.8.4663: attempt to access beyond end of device
loop8: rw=2049, sector=129, nr_sectors = 1 limit=128

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/05/21 08:51 upstream 8bc67e4db64a 41b8c833 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in fat32_ent_put / fat_mirror_bhs
2026/04/08 12:38 upstream 3036cd0d3328 2c961e87 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in fat32_ent_put / fat_mirror_bhs
2026/03/31 07:30 upstream d0c3bcd5b897 d0af506e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in fat32_ent_put / fat_mirror_bhs
2026/03/02 03:34 upstream 39c633261414 43249bac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in fat32_ent_put / fat_mirror_bhs
2026/02/08 19:56 upstream e98f34af6116 4c131dc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in fat32_ent_put / fat_mirror_bhs
* Struck through repros no longer work on HEAD.