syzbot


KCSAN: data-race in _copy_to_iter / fat12_ent_put (8)

Status: moderation: reported on 2026/04/16 19:03
Subsystems: exfat
Labels: prio:low
[Documentation on labels]
Reported-by: syzbot+816dcf406a59578d6d84@syzkaller.appspotmail.com
First crash: 58d, last: 8d21h
✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision Error
2f9c2b3e-9bb8-4562-a277-6aa4424e6551 assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ✅ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ✅ VMHostTrigger: ❌ KCSAN: data-race in _copy_to_iter / fat12_ent_put (8) 2026/05/26 05:58 2026/05/26 05:58 2026/05/26 06:32 c69befb30ac10e158cc9d1557b508ee3f0eca1de
e2e60dae-5d5f-435a-bcab-be2fd527dcfd assessment-kcsan Benign: ✅ Confident: ✅ KCSAN: data-race in _copy_to_iter / fat12_ent_put (8) 2026/04/16 20:59 2026/04/16 20:59 2026/04/16 21:01 6285b005886f6564de23857bc6c14895bb14bd50
Similar bugs (7)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in _copy_to_iter / fat12_ent_put exfat 6 6 1373d 1404d 0/29 auto-obsoleted due to no activity on 2022/10/14 22:33
upstream KCSAN: data-race in _copy_to_iter / fat12_ent_put (7) exfat 6 5 150d 285d 0/29 auto-obsoleted due to no activity on 2026/03/12 02:36
upstream KCSAN: data-race in _copy_to_iter / fat12_ent_put (4) exfat 6 5 1113d 1143d 0/29 auto-obsoleted due to no activity on 2023/07/02 02:14
upstream KCSAN: data-race in _copy_to_iter / fat12_ent_put (5) exfat 6 21 933d 918d 0/29 auto-obsoleted due to no activity on 2023/12/28 22:56
upstream KCSAN: data-race in _copy_to_iter / fat12_ent_put (6) exfat 6 1 836d 836d 0/29 auto-obsoleted due to no activity on 2024/04/04 01:15
upstream KCSAN: data-race in _copy_to_iter / fat12_ent_put (3) exfat 6 3 1187d 1203d 0/29 auto-obsoleted due to no activity on 2023/04/24 07:39
upstream KCSAN: data-race in _copy_to_iter / fat12_ent_put (2) exfat 6 3 1303d 1337d 0/29 auto-obsoleted due to no activity on 2022/12/31 00:12

Sample crash report:
==================================================================
BUG: KCSAN: data-race in _copy_to_iter / fat12_ent_put

write to 0xffff888109c3e248 of 1 bytes by task 13948 on cpu 0:
 fat12_ent_put+0x74/0x180 fs/fat/fatent.c:168
 fat_alloc_clusters+0x57b/0xc50 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+0x25e/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
 generic_perform_write+0x183/0x490 mm/filemap.c:4325
 __generic_file_write_iter+0x9e/0x120 mm/filemap.c:4442
 generic_file_write_iter+0x8d/0x310 mm/filemap.c:4468
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x5a6/0x9f0 fs/read_write.c:688
 ksys_write+0xdc/0x1a0 fs/read_write.c:740
 __do_sys_write fs/read_write.c:751 [inline]
 __se_sys_write fs/read_write.c:748 [inline]
 __x64_sys_write+0x40/0x50 fs/read_write.c:748
 x64_sys_call+0x27e1/0x3020 arch/x86/include/generated/asm/syscalls_64.h:2
 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 0xffff888109c3e200 of 512 bytes by task 13164 on cpu 1:
 instrument_copy_to_user include/linux/instrumented.h:130 [inline]
 copy_to_user_iter lib/iov_iter.c:24 [inline]
 iterate_ubuf include/linux/iov_iter.h:30 [inline]
 iterate_and_advance2 include/linux/iov_iter.h:302 [inline]
 iterate_and_advance include/linux/iov_iter.h:330 [inline]
 _copy_to_iter+0x130/0xea0 lib/iov_iter.c:197
 copy_page_to_iter+0x178/0x210 lib/iov_iter.c:374
 copy_folio_to_iter include/linux/uio.h:204 [inline]
 filemap_read+0x407/0xa10 mm/filemap.c:2857
 blkdev_read_iter+0x22d/0x2e0 block/fops.c:855
 new_sync_read fs/read_write.c:493 [inline]
 vfs_read+0x6c0/0x7f0 fs/read_write.c:574
 ksys_read+0xdc/0x1a0 fs/read_write.c:717
 __do_sys_read fs/read_write.c:726 [inline]
 __se_sys_read fs/read_write.c:724 [inline]
 __x64_sys_read+0x40/0x50 fs/read_write.c:724
 x64_sys_call+0x2886/0x3020 arch/x86/include/generated/asm/syscalls_64.h:1
 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: 13164 Comm: udevd Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/06/05 14:48 upstream ddd664bbff63 48b6c3fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
2026/04/16 19:02 upstream 1d51b370a0f8 4743f87d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat12_ent_put
* Struck through repros no longer work on HEAD.