syzbot


KCSAN: data-race in generic_fillattr / setattr_copy

Status: auto-obsoleted due to no activity on 2024/02/28 21:09
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+afc7c1600cf5007f6055@syzkaller.appspotmail.com
First crash: 89d, last: 89d

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

write to 0xffff88814923c3e0 of 8 bytes by task 7014 on cpu 1:
 inode_set_mtime_to_ts include/linux/fs.h:1571 [inline]
 setattr_copy+0x1b9/0x2b0 fs/attr.c:313
 shmem_setattr+0x52e/0x830 mm/shmem.c:1220
 notify_change+0x866/0x8e0 fs/attr.c:499
 vfs_utimes+0x2c6/0x3e0 fs/utimes.c:66
 do_utimes_path fs/utimes.c:99 [inline]
 do_utimes+0x14f/0x1f0 fs/utimes.c:145
 __do_sys_utimensat fs/utimes.c:164 [inline]
 __se_sys_utimensat fs/utimes.c:148 [inline]
 __x64_sys_utimensat+0xc6/0x170 fs/utimes.c:148
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff88814923c3e0 of 8 bytes by task 5903 on cpu 0:
 inode_get_mtime include/linux/fs.h:1565 [inline]
 generic_fillattr+0x1a6/0x2f0 fs/stat.c:61
 shmem_getattr+0x17b/0x200 mm/shmem.c:1139
 vfs_getattr_nosec fs/stat.c:135 [inline]
 vfs_getattr+0x198/0x1e0 fs/stat.c:176
 vfs_statx+0x140/0x320 fs/stat.c:248
 vfs_fstatat+0xcd/0x100 fs/stat.c:304
 __do_sys_newfstatat fs/stat.c:468 [inline]
 __se_sys_newfstatat+0x58/0x260 fs/stat.c:462
 __x64_sys_newfstatat+0x55/0x60 fs/stat.c:462
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000001bf2678 -> 0x000000000257bcf8

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 5903 Comm: udevd Tainted: G        W          6.8.0-rc1-syzkaller-00037-g443b349019f2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
==================================================================
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/24 21:08 upstream 443b349019f2 1e153dc8 .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.