syzbot


KCSAN: data-race in _copy_to_iter / fat32_ent_put (5)

Status: moderation: reported on 2025/12/17 22:17
Subsystems: exfat
[Documentation on labels]
Reported-by: syzbot+8439c7e7cbd735b50c95@syzkaller.appspotmail.com
First crash: 43d, last: 9d02h
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in _copy_to_iter / fat32_ent_put (2) exfat 6 1 1094d 1094d 0/29 auto-obsoleted due to no activity on 2023/04/12 08:12
upstream KCSAN: data-race in _copy_to_iter / fat32_ent_put (4) exfat 6 1 575d 575d 0/29 auto-obsoleted due to no activity on 2024/08/07 19:41
upstream KCSAN: data-race in _copy_to_iter / fat32_ent_put exfat 6 1 1165d 1165d 0/29 auto-obsoleted due to no activity on 2023/01/02 12:34
upstream KCSAN: data-race in _copy_to_iter / fat32_ent_put (3) exfat 6 1 1014d 1014d 0/29 auto-obsoleted due to no activity on 2023/05/26 23:35

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

read-write to 0xffff888139888070 of 4 bytes by task 5836 on cpu 0:
 fat32_ent_put+0x4e/0x90 fs/fat/fatent.c:191
 fat_ent_write+0x6c/0xe0 fs/fat/fatent.c:417
 fat_chain_add+0x16c/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+0x46c/0x5e0 fs/fat/inode.c:190
 __block_write_begin_int+0x400/0xf90 fs/buffer.c:2145
 block_write_begin fs/buffer.c:2256 [inline]
 cont_write_begin+0x5fe/0x970 fs/buffer.c:2594
 fat_write_begin+0x4f/0xe0 fs/fat/inode.c:230
 cont_expand_zero fs/buffer.c:2522 [inline]
 cont_write_begin+0x1b0/0x970 fs/buffer.c:2584
 fat_write_begin+0x4f/0xe0 fs/fat/inode.c:230
 generic_cont_expand_simple+0xb0/0x150 fs/buffer.c:2485
 fat_cont_expand+0x3e/0x170 fs/fat/file.c:223
 fat_fallocate+0x177/0x1c0 fs/fat/file.c:301
 vfs_fallocate+0x3b6/0x400 fs/open.c:339
 ksys_fallocate fs/open.c:363 [inline]
 __do_sys_fallocate fs/open.c:368 [inline]
 __se_sys_fallocate fs/open.c:366 [inline]
 __x64_sys_fallocate+0x7a/0xd0 fs/open.c:366
 x64_sys_call+0x1cd4/0x3000 arch/x86/include/generated/asm/syscalls_64.h:286
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc0/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888139888000 of 512 bytes by task 3314 on cpu 1:
 instrument_copy_to_user include/linux/instrumented.h:113 [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+0x18f/0x2d0 lib/iov_iter.c:374
 copy_folio_to_iter include/linux/uio.h:204 [inline]
 filemap_read+0x407/0xa10 mm/filemap.c:2851
 blkdev_read_iter+0x22d/0x2e0 block/fops.c:856
 new_sync_read fs/read_write.c:491 [inline]
 vfs_read+0x6c0/0x7f0 fs/read_write.c:572
 ksys_read+0xdc/0x1a0 fs/read_write.c:715
 __do_sys_read fs/read_write.c:724 [inline]
 __se_sys_read fs/read_write.c:722 [inline]
 __x64_sys_read+0x40/0x50 fs/read_write.c:722
 x64_sys_call+0x2889/0x3000 arch/x86/include/generated/asm/syscalls_64.h:1
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc0/0x2a0 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: 3314 Comm: udevd Not tainted syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/01/21 08:45 upstream 6c790212c588 6f1aa2f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat32_ent_put
2025/12/17 22:16 upstream ea1013c15392 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat32_ent_put
* Struck through repros no longer work on HEAD.