syzbot


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

Status: moderation: reported on 2024/10/02 05:30
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+bb47ed87e021144502dd@syzkaller.appspotmail.com
First crash: 3d12h, last: 3d12h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_fillattr / simple_rename_timestamp fs 1 241d 241d 0/28 auto-obsoleted due to no activity on 2024/03/13 09:42

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

write to 0xffff8881033203dc of 4 bytes by task 3254 on cpu 1:
 inode_set_mtime_to_ts include/linux/fs.h:1644 [inline]
 simple_rename_timestamp+0x50/0xd0 fs/libfs.c:812
 shmem_rename2+0x284/0x2c0 mm/shmem.c:3791
 vfs_rename+0x875/0x9c0 fs/namei.c:5013
 do_renameat2+0x732/0xa60 fs/namei.c:5170
 __do_sys_rename fs/namei.c:5217 [inline]
 __se_sys_rename fs/namei.c:5215 [inline]
 __x64_sys_rename+0x58/0x70 fs/namei.c:5215
 x64_sys_call+0x1a84/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:83
 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 0xffff8881033203dc of 4 bytes by task 3257 on cpu 0:
 inode_get_mtime_nsec include/linux/fs.h:1630 [inline]
 inode_get_mtime include/linux/fs.h:1636 [inline]
 generic_fillattr+0x1a6/0x2f0 fs/stat.c:61
 shmem_getattr+0x17b/0x200 mm/shmem.c:1169
 vfs_getattr_nosec fs/stat.c:166 [inline]
 vfs_getattr+0x19b/0x1e0 fs/stat.c:207
 vfs_statx_path fs/stat.c:251 [inline]
 vfs_statx+0x134/0x2f0 fs/stat.c:315
 vfs_fstatat+0xec/0x110 fs/stat.c:341
 __do_sys_newfstatat fs/stat.c:505 [inline]
 __se_sys_newfstatat+0x58/0x260 fs/stat.c:499
 __x64_sys_newfstatat+0x55/0x70 fs/stat.c:499
 x64_sys_call+0x141f/0x2d60 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: 0x175ec007 -> 0x1802762f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3257 Comm: udevd Not tainted 6.12.0-rc1-syzkaller-00031-ge32cde8d2bd7 #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/10/02 05:29 upstream e32cde8d2bd7 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / simple_rename_timestamp
* Struck through repros no longer work on HEAD.