syzbot


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

Status: auto-obsoleted due to no activity on 2025/04/07 04:31
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+37a45749dbc529a6cb1c@syzkaller.appspotmail.com
First crash: 104d, last: 101d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_fillattr / setattr_copy (2) fs 1 174d 174d 0/28 auto-obsoleted due to no activity on 2025/01/23 14:54
upstream KCSAN: data-race in generic_fillattr / setattr_copy fs 1 483d 483d 0/28 auto-obsoleted due to no activity on 2024/02/28 21:09

Sample crash report:
 loop4: p1 < > p4
loop4: p4 size 8388608 extends beyond EOD, truncated
==================================================================
BUG: KCSAN: data-race in generic_fillattr / setattr_copy

write to 0xffff8881189e3540 of 4 bytes by task 3290 on cpu 0:
 inode_set_atime_to_ts include/linux/fs.h:1674 [inline]
 setattr_copy+0x249/0x4a0 fs/attr.c:359
 shmem_setattr+0x532/0x830 mm/shmem.c:1330
 notify_change+0x85c/0x8e0 fs/attr.c:552
 vfs_utimes+0x2c6/0x3e0 fs/utimes.c:66
 do_utimes_path fs/utimes.c:99 [inline]
 do_utimes+0x149/0x1f0 fs/utimes.c:140
 __do_sys_utimensat fs/utimes.c:159 [inline]
 __se_sys_utimensat fs/utimes.c:143 [inline]
 __x64_sys_utimensat+0xc6/0x170 fs/utimes.c:143
 x64_sys_call+0x272a/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:281
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881189e3540 of 4 bytes by task 3660 on cpu 1:
 inode_get_atime_nsec include/linux/fs.h:1659 [inline]
 inode_get_atime include/linux/fs.h:1665 [inline]
 generic_fillattr+0x16f/0x330 fs/stat.c:96
 shmem_getattr+0x17b/0x200 mm/shmem.c:1249
 vfs_getattr_nosec fs/stat.c:208 [inline]
 vfs_getattr fs/stat.c:246 [inline]
 vfs_statx_path+0x178/0x2f0 fs/stat.c:283
 vfs_statx+0xe1/0x170 fs/stat.c:349
 vfs_fstatat fs/stat.c:368 [inline]
 __do_sys_newfstatat fs/stat.c:532 [inline]
 __se_sys_newfstatat+0xdc/0x300 fs/stat.c:526
 __x64_sys_newfstatat+0x55/0x70 fs/stat.c:526
 x64_sys_call+0x236d/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:263
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x37a27db0 -> 0x37d703c1

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3660 Comm: syz.4.60 Not tainted 6.14.0-rc1-syzkaller-00276-g69b54314c975 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/10 04:30 upstream 69b54314c975 ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / setattr_copy
2025/02/06 17:03 upstream 92514ef226f5 8002dd28 .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.