syzbot


KCSAN: data-race in generic_fillattr / touch_atime (4)

Status: moderation: reported on 2024/10/05 07:23
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+4827d590678301e16258@syzkaller.appspotmail.com
First crash: 46d, last: 19h43m
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_fillattr / touch_atime (3) fs 2 118d 121d 0/28 auto-obsoleted due to no activity on 2024/08/29 17:20
upstream KCSAN: data-race in generic_fillattr / touch_atime (2) fs 1 161d 161d 0/28 auto-obsoleted due to no activity on 2024/07/17 21:50
upstream KCSAN: data-race in generic_fillattr / touch_atime fs 4 220d 278d 0/28 auto-obsoleted due to no activity on 2024/05/19 07:08

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

write to 0xffff888107b1f828 of 4 bytes by task 3489 on cpu 1:
 inode_set_atime_to_ts include/linux/fs.h:1614 [inline]
 inode_update_timestamps fs/inode.c:2084 [inline]
 generic_update_time fs/inode.c:2106 [inline]
 inode_update_time fs/inode.c:2126 [inline]
 touch_atime+0x1f3/0x350 fs/inode.c:2198
 do_readlinkat+0x12b/0x210 fs/stat.c:575
 __do_sys_readlink fs/stat.c:599 [inline]
 __se_sys_readlink fs/stat.c:596 [inline]
 __x64_sys_readlink+0x47/0x60 fs/stat.c:596
 x64_sys_call+0x28ba/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:90
 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 0xffff888107b1f828 of 4 bytes by task 3304 on cpu 0:
 inode_get_atime_nsec include/linux/fs.h:1599 [inline]
 inode_get_atime include/linux/fs.h:1605 [inline]
 generic_fillattr+0x16f/0x330 fs/stat.c:96
 shmem_getattr+0x17b/0x200 mm/shmem.c:1174
 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: 0x2c265765 -> 0x1556f9bd

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3304 Comm: udevd Not tainted 6.12.0-syzkaller-01782-gbf9aa14fc523 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/20 10:56 upstream bf9aa14fc523 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / touch_atime
2024/11/15 23:02 upstream f868cd251776 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / touch_atime
2024/10/15 08:00 upstream eca631b8fe80 b01b6661 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / touch_atime
2024/10/05 07:22 upstream 2f91ff27b0ee d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / touch_atime
* Struck through repros no longer work on HEAD.