syzbot


KCSAN: data-race in _copy_to_iter / fat_set_state (12)

Status: moderation: reported on 2025/07/05 03:51
Subsystems: exfat
[Documentation on labels]
Reported-by: syzbot+a42c3a5dc197dc3daa86@syzkaller.appspotmail.com
First crash: 7d12h, last: 3d14h
Similar bugs (11)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (6) exfat 6 4 631d 652d 0/29 auto-obsoleted due to no activity on 2023/11/24 07:27
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (5) exfat 6 1 697d 697d 0/29 auto-obsoleted due to no activity on 2023/09/19 09:04
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (4) exfat 6 1 754d 754d 0/29 auto-obsoleted due to no activity on 2023/07/24 15:00
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (11) exfat 6 1 145d 145d 0/29 auto-obsoleted due to no activity on 2025/04/13 16:36
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (9) exfat 6 1 292d 292d 0/29 auto-obsoleted due to no activity on 2024/10/27 23:03
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (7) exfat 6 6 498d 557d 0/29 auto-obsoleted due to no activity on 2024/04/05 03:03
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (10) exfat 6 2 207d 232d 0/29 auto-obsoleted due to no activity on 2025/02/11 10:54
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (8) exfat 6 2 370d 404d 0/29 auto-obsoleted due to no activity on 2024/08/11 01:41
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (3) exfat 6 1 847d 847d 0/29 auto-obsoleted due to no activity on 2023/04/29 03:39
upstream KCSAN: data-race in _copy_to_iter / fat_set_state (2) exfat 6 2 975d 1002d 0/29 auto-obsoleted due to no activity on 2022/12/15 10:49
upstream KCSAN: data-race in _copy_to_iter / fat_set_state exfat 6 1 1073d 1073d 0/29 auto-closed as invalid on 2022/09/08 00:15

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

write to 0xffff88812c6ed041 of 1 bytes by task 3894 on cpu 1:
 fat_set_state+0x16c/0x1e0 fs/fat/inode.c:-1
 fat_fill_super+0x1875/0x1ce0 fs/fat/inode.c:1832
 vfat_fill_super+0x24/0x30 fs/fat/namei_vfat.c:1197
 get_tree_bdev_flags+0x291/0x300 fs/super.c:1681
 get_tree_bdev+0x1f/0x30 fs/super.c:1704
 vfat_get_tree+0x1c/0x30 fs/fat/namei_vfat.c:1202
 vfs_get_tree+0x54/0x1d0 fs/super.c:1804
 do_new_mount+0x207/0x680 fs/namespace.c:3902
 path_mount+0x4a4/0xb20 fs/namespace.c:4226
 do_mount fs/namespace.c:4239 [inline]
 __do_sys_mount fs/namespace.c:4450 [inline]
 __se_sys_mount+0x28f/0x2e0 fs/namespace.c:4427
 __x64_sys_mount+0x67/0x80 fs/namespace.c:4427
 x64_sys_call+0xd36/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:166
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88812c6ed000 of 512 bytes by task 3295 on cpu 0:
 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:300 [inline]
 iterate_and_advance include/linux/iov_iter.h:328 [inline]
 _copy_to_iter+0x12d/0xe30 lib/iov_iter.c:185
 copy_page_to_iter+0x18f/0x2d0 lib/iov_iter.c:362
 copy_folio_to_iter include/linux/uio.h:204 [inline]
 filemap_read+0x407/0xa00 mm/filemap.c:2762
 blkdev_read_iter+0x22d/0x2e0 block/fops.c:833
 new_sync_read fs/read_write.c:491 [inline]
 vfs_read+0x5cd/0x6f0 fs/read_write.c:572
 ksys_read+0xda/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+0x2d77/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:1
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3295 Comm: udevd Not tainted 6.16.0-rc5-syzkaller-00025-gd006330be3f7 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/09 02:03 upstream d006330be3f7 4d9fdfa4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat_set_state
2025/07/05 03:51 upstream a79a588fc176 d869b261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_to_iter / fat_set_state
* Struck through repros no longer work on HEAD.