syzbot


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

Status: moderation: reported on 2025/12/27 06:36
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+7283384e463450436383@syzkaller.appspotmail.com
First crash: 80d, last: 14d
✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision Error
f0abd901-d2eb-4ce0-869f-6ff99f6d25e5 repro KCSAN: data-race in _copy_to_iter / fat_mirror_bhs (3) 2026/03/06 00:00 2026/03/06 00:00 2026/03/06 00:03 31e9c887f7dc24e04b3ca70d0d54fc34141844b0
fbad2bf7-995a-4fea-981d-c659064e691d assessment-kcsan Benign: ✅  Confident: ✅  KCSAN: data-race in _copy_to_iter / fat_mirror_bhs (3) 2026/02/24 14:34 2026/02/24 14:34 2026/02/24 15:02 305c0ec5cd886e2d13738e28e1b2df9b0ec20fc9
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in _copy_to_iter / fat_mirror_bhs block 6 1 316d 316d 0/29 auto-obsoleted due to no activity on 2025/06/30 11:05
upstream KCSAN: data-race in _copy_to_iter / fat_mirror_bhs (2) exfat 6 2 175d 223d 0/29 auto-obsoleted due to no activity on 2025/11/18 10:54

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

write to 0xffff888121b8d000 of 2048 bytes by task 11987 on cpu 0:
 fat_mirror_bhs+0x1df/0x320 fs/fat/fatent.c:395
 fat_alloc_clusters+0xb48/0xc50 fs/fat/fatent.c:543
 fat_add_cluster fs/fat/inode.c:108 [inline]
 __fat_get_block fs/fat/inode.c:155 [inline]
 fat_get_block+0x258/0x5e0 fs/fat/inode.c:190
 __block_write_begin_int+0x400/0xf90 fs/buffer.c:2142
 block_write_begin fs/buffer.c:2253 [inline]
 cont_write_begin+0x5fe/0x970 fs/buffer.c:2591
 fat_write_begin+0x4f/0xe0 fs/fat/inode.c:230
 generic_perform_write+0x183/0x490 mm/filemap.c:4314
 __generic_file_write_iter+0x9e/0x120 mm/filemap.c:4431
 generic_file_write_iter+0x8d/0x310 mm/filemap.c:4457
 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/0x370 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888121b8d000 of 512 bytes by task 22411 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+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: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/0x370 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: 22411 Comm: udevd Tainted: G        W           syzkaller #0 PREEMPT(full) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/03/03 12:15 upstream af4e9ef3d784 28b83e23 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat_mirror_bhs
2026/03/01 03:48 upstream 2f9339c052bd 43249bac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat_mirror_bhs
2026/01/25 16:11 upstream d91a46d6805a 40acda8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat_mirror_bhs
2025/12/27 06:35 upstream 3f0e9c8cefa9 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat_mirror_bhs
* Struck through repros no longer work on HEAD.