syzbot


KCSAN: data-race in generic_fillattr / inode_set_ctime_to_ts (3)

Status: moderation: reported on 2025/09/20 13:52
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+ccb40cebc41c3a03c891@syzkaller.appspotmail.com
First crash: 20d, last: 18d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_fillattr / inode_set_ctime_to_ts fs 6 5 167d 306d 0/29 auto-obsoleted due to no activity on 2025/06/21 18:02
upstream KCSAN: data-race in generic_fillattr / inode_set_ctime_to_ts (2) fs 6 2 85d 97d 0/29 auto-obsoleted due to no activity on 2025/09/11 09:54

Sample crash report:
==================================================================
BUG: KCSAN: data-race in generic_fillattr / inode_set_ctime_to_ts

write to 0xffff888105cc89b0 of 4 bytes by task 3289 on cpu 1:
 inode_set_ctime_to_ts+0x84/0x170 fs/inode.c:2667
 inode_set_ctime_current+0x1d6/0x770 fs/inode.c:2730
 shmem_symlink+0x36b/0x3d0 mm/shmem.c:4195
 vfs_symlink+0xd1/0x1e0 fs/namei.c:4730
 do_symlinkat+0xc7/0x3c0 fs/namei.c:4756
 __do_sys_symlink fs/namei.c:4777 [inline]
 __se_sys_symlink fs/namei.c:4775 [inline]
 __x64_sys_symlink+0x50/0x60 fs/namei.c:4775
 x64_sys_call+0x23cc/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:89
 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 0xffff888105cc89b0 of 4 bytes by task 4039 on cpu 0:
 inode_get_ctime_nsec include/linux/fs.h:1752 [inline]
 inode_get_ctime include/linux/fs.h:1758 [inline]
 generic_fillattr+0x1d1/0x340 fs/stat.c:101
 shmem_getattr+0x181/0x200 mm/shmem.c:1294
 vfs_getattr_nosec+0x146/0x1e0 fs/stat.c:213
 vfs_getattr fs/stat.c:262 [inline]
 vfs_statx_path fs/stat.c:299 [inline]
 vfs_statx+0x113/0x390 fs/stat.c:356
 vfs_fstatat+0x115/0x170 fs/stat.c:375
 __do_sys_newfstatat fs/stat.c:542 [inline]
 __se_sys_newfstatat+0x55/0x260 fs/stat.c:536
 __x64_sys_newfstatat+0x55/0x70 fs/stat.c:536
 x64_sys_call+0x135a/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:263
 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

value changed: 0x21adfad8 -> 0x0239ab31

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4039 Comm: udevd Not tainted syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/23 01:37 upstream cec1e6e5d1ab 0ac7291c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / inode_set_ctime_to_ts
2025/09/20 13:51 upstream cd89d487374c 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / inode_set_ctime_to_ts
* Struck through repros no longer work on HEAD.