syzbot


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

Status: moderation: reported on 2026/02/22 08:53
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+3dc6e2ddbbbe238ab883@syzkaller.appspotmail.com
First crash: 19d, last: 5d21h
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision Error
c30a465c-02f2-44c5-979b-6eba0ac6664f assessment-kcsan Benign: ✅  Confident: ✅  KCSAN: data-race in generic_fillattr / inode_set_ctime_current (3) 2026/02/23 15:55 2026/02/23 15:55 2026/02/23 15:59 305c0ec5cd886e2d13738e28e1b2df9b0ec20fc9
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_current (2) fs 6 55 503d 635d 0/29 auto-obsoleted due to no activity on 2024/12/14 19:09
upstream KCSAN: data-race in generic_fillattr / inode_set_ctime_current fs 6 62 672d 824d 0/29 auto-obsoleted due to no activity on 2024/06/14 18:17

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

write to 0xffff88811fd9f260 of 4 bytes by task 3308 on cpu 0:
 inode_set_ctime_to_ts fs/inode.c:2779 [inline]
 inode_set_ctime_current+0x256/0x960 fs/inode.c:2842
 __simple_unlink fs/libfs.c:793 [inline]
 simple_unlink+0x2d/0x80 fs/libfs.c:808
 shmem_unlink+0x12d/0x140 mm/shmem.c:4005
 shmem_rename2+0x18e/0x310 mm/shmem.c:4086
 vfs_rename+0x97f/0xad0 fs/namei.c:6026
 filename_renameat2+0x3b6/0x6e0 fs/namei.c:6144
 __do_sys_rename fs/namei.c:6188 [inline]
 __se_sys_rename+0x4a/0x1c0 fs/namei.c:6184
 __x64_sys_rename+0x31/0x40 fs/namei.c:6184
 x64_sys_call+0x2b3/0x3020 arch/x86/include/generated/asm/syscalls_64.h:83
 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 0xffff88811fd9f260 of 4 bytes by task 4330 on cpu 1:
 inode_get_ctime_nsec include/linux/fs.h:1689 [inline]
 inode_get_ctime include/linux/fs.h:1695 [inline]
 generic_fillattr+0x1d1/0x340 fs/stat.c:101
 shmem_getattr+0x181/0x200 mm/shmem.c:1302
 vfs_getattr_nosec+0x146/0x1e0 fs/stat.c:213
 vfs_getattr+0x48/0x60 fs/stat.c:262
 vfs_statx_path+0x28/0x140 fs/stat.c:299
 vfs_statx+0xc4/0x170 fs/stat.c:356
 vfs_fstatat+0x118/0x170 fs/stat.c:373
 __do_sys_newfstatat fs/stat.c:538 [inline]
 __se_sys_newfstatat+0x55/0x3e0 fs/stat.c:532
 __x64_sys_newfstatat+0x55/0x70 fs/stat.c:532
 x64_sys_call+0x2c64/0x3020 arch/x86/include/generated/asm/syscalls_64.h:263
 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

value changed: 0x31a84450 -> 0x392e978f

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 4330 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 (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/03/07 22:35 upstream 4ae12d8bd9a8 5cb44a80 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / inode_set_ctime_current
2026/02/22 08:52 upstream fa5c82f4d2bb 6e7b5511 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / inode_set_ctime_current
* Struck through repros no longer work on HEAD.