syzbot


KCSAN: data-race in generic_fillattr / simple_rename_timestamp

Status: auto-obsoleted due to no activity on 2024/03/13 09:42
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+3c86aba4678e18adaf93@syzkaller.appspotmail.com
First crash: 67d, last: 67d

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

write to 0xffff88810420d870 of 8 bytes by task 11128 on cpu 1:
 inode_set_mtime_to_ts include/linux/fs.h:1571 [inline]
 simple_rename_timestamp+0x50/0xd0 fs/libfs.c:721
 shmem_rename2+0x28c/0x2c0 mm/shmem.c:3461
 vfs_rename+0x867/0x9c0 fs/namei.c:4879
 do_renameat2+0x732/0xa60 fs/namei.c:5036
 __do_sys_rename fs/namei.c:5083 [inline]
 __se_sys_rename fs/namei.c:5081 [inline]
 __x64_sys_rename+0x5c/0x70 fs/namei.c:5081
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff88810420d870 of 8 bytes by task 16157 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+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x000000002500eb0d -> 0x000000002599818d

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 16157 Comm: udevd Not tainted 6.8.0-rc3-syzkaller-00010-g6d280f4d760e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/07 09:41 upstream 6d280f4d760e 6404acf9 .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.