syzbot


upstream test error: KCSAN: data-race in generic_fillattr / shmem_unlink

Status: auto-obsoleted due to no activity on 2024/08/16 22:32
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+cc81bba806d43bd89458@syzkaller.appspotmail.com
First crash: 57d, last: 57d

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

write to 0xffff8881044b09d0 of 8 bytes by task 3071 on cpu 1:
 inode_set_ctime_to_ts include/linux/fs.h:1617 [inline]
 shmem_unlink+0x133/0x190 mm/shmem.c:3405
 vfs_unlink+0x275/0x430 fs/namei.c:4349
 do_unlinkat+0x236/0x4c0 fs/namei.c:4413
 __do_sys_unlink fs/namei.c:4461 [inline]
 __se_sys_unlink fs/namei.c:4459 [inline]
 __x64_sys_unlink+0x30/0x40 fs/namei.c:4459
 x64_sys_call+0x28a3/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:88
 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 0xffff8881044b09d0 of 8 bytes by task 3070 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:1150
 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: 0x000000002cce3d2e -> 0x000000002d66d3ad

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3070 Comm: udevd Not tainted 6.10.0-rc7-syzkaller-00244-g975f3b6da180 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/12 22:31 upstream 975f3b6da180 eaeb5c15 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce upstream test error: KCSAN: data-race in generic_fillattr / shmem_unlink
* Struck through repros no longer work on HEAD.