syzbot


KCSAN: data-race in inode_set_ctime_to_ts / inode_set_ctime_to_ts (2)

Status: moderation: reported on 2025/10/26 15:43
Subsystems: kernfs
[Documentation on labels]
Reported-by: syzbot+d7b0ca727977befe2b2d@syzkaller.appspotmail.com
First crash: 61d, last: 8d12h
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in inode_set_ctime_to_ts / inode_set_ctime_to_ts kernfs 6 1 325d 325d 0/29 auto-obsoleted due to no activity on 2025/04/01 13:08

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

write to 0xffff888100752ed8 of 8 bytes by task 3326 on cpu 0:
 inode_set_ctime_to_ts+0x72/0x170 fs/inode.c:2744
 set_inode_attr fs/kernfs/inode.c:165 [inline]
 kernfs_refresh_inode fs/kernfs/inode.c:179 [inline]
 kernfs_iop_permission+0x190/0x220 fs/kernfs/inode.c:290
 do_inode_permission fs/namei.c:526 [inline]
 inode_permission+0x2de/0x3c0 fs/namei.c:596
 lookup_inode_permission_may_exec fs/namei.c:636 [inline]
 may_lookup fs/namei.c:1915 [inline]
 link_path_walk+0xaf6/0xe30 fs/namei.c:2537
 path_parentat fs/namei.c:2793 [inline]
 __filename_parentat+0x15c/0x3f0 fs/namei.c:2817
 filename_parentat fs/namei.c:2835 [inline]
 filename_create+0x78/0x210 fs/namei.c:4860
 do_mkdirat+0x82/0x3b0 fs/namei.c:5156
 __do_sys_mkdirat fs/namei.c:5186 [inline]
 __se_sys_mkdirat fs/namei.c:5184 [inline]
 __x64_sys_mkdirat+0x4c/0x60 fs/namei.c:5184
 x64_sys_call+0x30c/0x3000 arch/x86/include/generated/asm/syscalls_64.h:259
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd8/0x2c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff888100752ed8 of 8 bytes by task 3319 on cpu 1:
 inode_set_ctime_to_ts+0x72/0x170 fs/inode.c:2744
 set_inode_attr fs/kernfs/inode.c:165 [inline]
 kernfs_refresh_inode fs/kernfs/inode.c:179 [inline]
 kernfs_iop_permission+0x190/0x220 fs/kernfs/inode.c:290
 do_inode_permission fs/namei.c:526 [inline]
 inode_permission+0x2de/0x3c0 fs/namei.c:596
 lookup_inode_permission_may_exec fs/namei.c:636 [inline]
 may_lookup fs/namei.c:1915 [inline]
 link_path_walk+0xaf6/0xe30 fs/namei.c:2537
 path_parentat fs/namei.c:2793 [inline]
 __filename_parentat+0x15c/0x3f0 fs/namei.c:2817
 filename_parentat fs/namei.c:2835 [inline]
 filename_create+0x78/0x210 fs/namei.c:4860
 do_mkdirat+0x82/0x3b0 fs/namei.c:5156
 __do_sys_mkdirat fs/namei.c:5186 [inline]
 __se_sys_mkdirat fs/namei.c:5184 [inline]
 __x64_sys_mkdirat+0x4c/0x60 fs/namei.c:5184
 x64_sys_call+0x30c/0x3000 arch/x86/include/generated/asm/syscalls_64.h:259
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd8/0x2c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000069443e1c -> 0x0000000069443e1d

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3319 Comm: syz-executor 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
2025/12/18 17:47 upstream ea1013c15392 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_set_ctime_to_ts / inode_set_ctime_to_ts
2025/10/26 15:42 upstream 72761a7e3122 c0460fcd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_set_ctime_to_ts / inode_set_ctime_to_ts
* Struck through repros no longer work on HEAD.