syzbot


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

Status: moderation: reported on 2024/06/15 20:03
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+0d36cf3d5d465c77e056@syzkaller.appspotmail.com
First crash: 5d09h, last: 1d07h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_fillattr / inode_set_ctime_current fs 62 41d 194d 0/27 auto-obsoleted due to no activity on 2024/06/14 18:17

Sample crash report:
udevd[5944]: inotify_add_watch(7, /dev/loop4p103, 10) failed: No such file or directory
==================================================================
BUG: KCSAN: data-race in generic_fillattr / inode_set_ctime_current

write to 0xffff888104423000 of 8 bytes by task 5945 on cpu 1:
 inode_set_ctime_to_ts include/linux/fs.h:1617 [inline]
 inode_set_ctime_current+0x38/0x50 fs/inode.c:2515
 shmem_mknod+0x117/0x180 mm/shmem.c:3285
 shmem_create+0x34/0x40 mm/shmem.c:3339
 lookup_open fs/namei.c:3505 [inline]
 open_last_lookups fs/namei.c:3574 [inline]
 path_openat+0xdde/0x1da0 fs/namei.c:3804
 do_filp_open+0xf7/0x200 fs/namei.c:3834
 do_sys_openat2+0xab/0x120 fs/open.c:1405
 do_sys_open fs/open.c:1420 [inline]
 __do_sys_openat fs/open.c:1436 [inline]
 __se_sys_openat fs/open.c:1431 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1431
 x64_sys_call+0x1057/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:258
 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 0xffff888104423000 of 8 bytes by task 5944 on cpu 0:
 inode_get_ctime include/linux/fs.h:1611 [inline]
 generic_fillattr+0x1e0/0x2f0 fs/stat.c:62
 shmem_getattr+0x17b/0x200 mm/shmem.c:1139
 vfs_getattr_nosec fs/stat.c:135 [inline]
 vfs_getattr+0x19b/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/0x70 fs/stat.c:462
 x64_sys_call+0x1451/0x2d70 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: 0x00000000015ee921 -> 0x0000000001f77fa1

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 5944 Comm: udevd Not tainted 6.10.0-rc4-syzkaller-00052-ge5b3efbe1ab1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/19 22:08 upstream e5b3efbe1ab1 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / inode_set_ctime_current
2024/06/16 14:25 upstream a3e18a540541 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / inode_set_ctime_current
2024/06/15 20:02 upstream 08a6b55aa0c6 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / inode_set_ctime_current
* Struck through repros no longer work on HEAD.