syzbot


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

Status: auto-obsoleted due to no activity on 2024/07/17 21:50
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+133d4110384cf842ed62@syzkaller.appspotmail.com
First crash: 143d, last: 143d
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 100d 103d 0/28 auto-obsoleted due to no activity on 2024/08/29 17:20
upstream KCSAN: data-race in generic_fillattr / touch_atime (4) fs 2 19d 29d 0/28 moderation: reported on 2024/10/05 07:23
upstream KCSAN: data-race in generic_fillattr / touch_atime fs 4 203d 261d 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 0xffff8881189403d0 of 8 bytes by task 3089 on cpu 0:
 inode_set_atime_to_ts include/linux/fs.h:1557 [inline]
 inode_update_timestamps fs/inode.c:1878 [inline]
 generic_update_time fs/inode.c:1900 [inline]
 inode_update_time fs/inode.c:1920 [inline]
 touch_atime+0x1f3/0x350 fs/inode.c:1992
 file_accessed include/linux/fs.h:2458 [inline]
 shmem_file_read_iter+0x4b3/0x550 mm/shmem.c:2899
 new_sync_read fs/read_write.c:395 [inline]
 vfs_read+0x5e6/0x6e0 fs/read_write.c:476
 ksys_read+0xeb/0x1b0 fs/read_write.c:619
 __do_sys_read fs/read_write.c:629 [inline]
 __se_sys_read fs/read_write.c:627 [inline]
 __x64_sys_read+0x42/0x50 fs/read_write.c:627
 x64_sys_call+0x27e5/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:1
 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 0xffff8881189403d0 of 8 bytes by task 3010 on cpu 1:
 inode_get_atime include/linux/fs.h:1551 [inline]
 generic_fillattr+0x16f/0x2f0 fs/stat.c:60
 shmem_getattr+0x17b/0x200 mm/shmem.c:1139
 vfs_getattr_nosec fs/stat.c:135 [inline]
 vfs_getattr fs/stat.c:176 [inline]
 vfs_fstat+0x1b9/0x470 fs/stat.c:198
 vfs_fstatat+0x85/0x100 fs/stat.c:300
 __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


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/12 21:49 upstream cea2a26553ac f815599d .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.