syzbot


KCSAN: data-race in generic_fillattr / inode_update_timestamps

Status: auto-obsoleted due to no activity on 2024/01/09 18:18
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+ec3c00269c1c4e69e4a1@syzkaller.appspotmail.com
First crash: 345d, last: 315d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_fillattr / inode_update_timestamps (2) fs 4 261d 277d 0/28 auto-obsoleted due to no activity on 2024/03/02 19:43

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

write to 0xffff888124cad280 of 8 bytes by task 3302 on cpu 1:
 inode_set_atime_to_ts include/linux/fs.h:1537 [inline]
 inode_update_timestamps+0x4d1/0x560 fs/inode.c:1914
 generic_update_time fs/inode.c:1936 [inline]
 inode_update_time fs/inode.c:1956 [inline]
 touch_atime+0x15c/0x2d0 fs/inode.c:2028
 do_readlinkat+0x164/0x210 fs/stat.c:505
 __do_sys_readlink fs/stat.c:527 [inline]
 __se_sys_readlink fs/stat.c:524 [inline]
 __x64_sys_readlink+0x47/0x50 fs/stat.c:524
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff888124cad280 of 8 bytes by task 6050 on cpu 0:
 inode_get_atime include/linux/fs.h:1531 [inline]
 generic_fillattr+0x16f/0x2f0 fs/stat.c:60
 shmem_getattr+0x17b/0x200 mm/shmem.c:1121
 vfs_getattr_nosec fs/stat.c:135 [inline]
 vfs_getattr+0x198/0x1e0 fs/stat.c:176
 vfs_statx+0x12f/0x2f0 fs/stat.c:248
 vfs_fstatat+0xcd/0x100 fs/stat.c:299
 __do_sys_newfstatat fs/stat.c:463 [inline]
 __se_sys_newfstatat+0x58/0x260 fs/stat.c:457
 __x64_sys_newfstatat+0x55/0x60 fs/stat.c:457
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000026333a89 -> 0x0000000027646789

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 6050 Comm: udevd Not tainted 6.7.0-rc4-syzkaller-00009-gbee0e7762ad2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/04 22:23 upstream bee0e7762ad2 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / inode_update_timestamps
2023/11/04 10:06 upstream 90b0c2b2edd1 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / inode_update_timestamps
* Struck through repros no longer work on HEAD.