syzbot


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

Status: auto-obsoleted due to no activity on 2024/08/29 17:20
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+644641841d32bb1ef1f0@syzkaller.appspotmail.com
First crash: 47d, last: 44d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_fillattr / touch_atime (2) fs 1 87d 87d 0/27 auto-obsoleted due to no activity on 2024/07/17 21:50
upstream KCSAN: data-race in generic_fillattr / touch_atime fs 4 146d 204d 0/27 auto-obsoleted due to no activity on 2024/05/19 07:08

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

read to 0xffff888115b7b540 of 4 bytes by task 3079 on cpu 0:
 inode_get_atime_nsec include/linux/fs.h:1554 [inline]
 inode_get_atime include/linux/fs.h:1560 [inline]
 generic_fillattr+0x16f/0x2f0 fs/stat.c:60
 shmem_getattr+0x17b/0x200 mm/shmem.c:1157
 vfs_getattr_nosec fs/stat.c:166 [inline]
 vfs_getattr fs/stat.c:207 [inline]
 vfs_fstat+0x1b9/0x470 fs/stat.c:229
 vfs_fstatat+0xa2/0x110 fs/stat.c:338
 __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+0x2d6a/0x2e00 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

write to 0xffff888115b7b540 of 4 bytes by task 3077 on cpu 1:
 inode_set_atime_to_ts include/linux/fs.h:1569 [inline]
 inode_update_timestamps fs/inode.c:1940 [inline]
 generic_update_time fs/inode.c:1962 [inline]
 inode_update_time fs/inode.c:1982 [inline]
 touch_atime+0x1f3/0x350 fs/inode.c:2054
 file_accessed include/linux/fs.h:2480 [inline]
 shmem_file_read_iter+0x4b3/0x550 mm/shmem.c:3058
 new_sync_read fs/read_write.c:395 [inline]
 vfs_read+0x5e9/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+0x2a36/0x2e00 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

value changed: 0x30f24091 -> 0x32236d92

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 3077 Comm: udevd Not tainted 6.10.0-syzkaller-12381-gc33ffdb70cc6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
==================================================================
udevd[3077]: inotify_add_watch(7, /dev/loop4p3, 10) failed: No such file or directory

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/25 17:19 upstream c33ffdb70cc6 466a14e5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / touch_atime
2024/07/22 14:00 upstream 933069701c1b df655b64 .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.