syzbot


KCSAN: data-race in generic_fillattr / setattr_copy (4)

Status: moderation: reported on 2025/07/15 10:55
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+db9be7fd1d56d4607cc0@syzkaller.appspotmail.com
First crash: 2d05h, last: 2d05h
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_fillattr / setattr_copy (3) fs 6 2 157d 160d 0/29 auto-obsoleted due to no activity on 2025/04/07 04:31
upstream KCSAN: data-race in generic_fillattr / setattr_copy (2) fs 6 1 231d 231d 0/29 auto-obsoleted due to no activity on 2025/01/23 14:54
upstream KCSAN: data-race in generic_fillattr / setattr_copy fs 6 1 539d 539d 0/29 auto-obsoleted due to no activity on 2024/02/28 21:09

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

write to 0xffff8881016ce6bc of 4 bytes by task 29290 on cpu 0:
 inode_set_mtime_to_ts include/linux/fs.h:1718 [inline]
 setattr_copy+0x2d3/0x4b0 fs/attr.c:361
 shmem_setattr+0x566/0x840 mm/shmem.c:1343
 notify_change+0x806/0x890 fs/attr.c:552
 vfs_utimes+0x2fc/0x410 fs/utimes.c:66
 do_utimes_path fs/utimes.c:99 [inline]
 do_utimes+0x154/0x210 fs/utimes.c:140
 __do_sys_utimensat fs/utimes.c:159 [inline]
 __se_sys_utimensat fs/utimes.c:143 [inline]
 __x64_sys_utimensat+0xc4/0x170 fs/utimes.c:143
 x64_sys_call+0x1a2c/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:281
 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 0xffff8881016ce6bc of 4 bytes by task 29291 on cpu 1:
 inode_get_mtime_nsec include/linux/fs.h:1704 [inline]
 inode_get_mtime include/linux/fs.h:1710 [inline]
 generic_fillattr+0x20e/0x340 fs/stat.c:102
 shmem_getattr+0x181/0x200 mm/shmem.c:1262
 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+0x2c22/0x2fb0 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: 0x1804a085 -> 0x18466be8

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 29291 Comm: udevd Not tainted 6.16.0-rc6-syzkaller-00002-g155a3c003e55 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/15 10:54 upstream 155a3c003e55 03fcfc4b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / setattr_copy
* Struck through repros no longer work on HEAD.