syzbot


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

Status: moderation: reported on 2024/11/28 14:54
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+7a4d7c20bae6188867a2@syzkaller.appspotmail.com
First crash: 22d, last: 22d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_fillattr / setattr_copy fs 1 331d 331d 0/28 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 0xffff88811802ec8c of 4 bytes by task 3994 on cpu 0:
 inode_set_mtime_to_ts include/linux/fs.h:1648 [inline]
 setattr_copy+0x2c8/0x4a0 fs/attr.c:361
 shmem_setattr+0x532/0x830 mm/shmem.c:1258
 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 0xffff88811802ec8c of 4 bytes by task 3589 on cpu 1:
 inode_get_mtime_nsec include/linux/fs.h:1634 [inline]
 inode_get_mtime include/linux/fs.h:1640 [inline]
 generic_fillattr+0x205/0x330 fs/stat.c:102
 shmem_getattr+0x17b/0x200 mm/shmem.c:1177
 vfs_getattr_nosec fs/stat.c:208 [inline]
 vfs_getattr fs/stat.c:246 [inline]
 vfs_statx_path+0x171/0x2d0 fs/stat.c:283
 vfs_statx+0xe1/0x170 fs/stat.c:347
 vfs_fstatat fs/stat.c:366 [inline]
 __do_sys_newfstatat fs/stat.c:530 [inline]
 __se_sys_newfstatat+0xdc/0x300 fs/stat.c:524
 __x64_sys_newfstatat+0x55/0x70 fs/stat.c:524
 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: 0x2b818231 -> 0x2c1a18f7

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3589 Comm: udevd Not tainted 6.12.0-syzkaller-10553-gb86545e02e8c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/28 14:53 upstream b86545e02e8c 5df23865 .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.