syzbot


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

Status: auto-obsoleted due to no activity on 2023/08/26 22:55
Subsystems: mm
[Documentation on labels]
First crash: 288d, last: 288d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_fillattr / shmem_rename2 (2) fs 82 1417d 1489d 0/26 auto-closed as invalid on 2020/07/23 12:50
upstream KCSAN: data-race in generic_fillattr / shmem_rename2 fs 1 1666d 1666d 0/26 closed as invalid on 2019/10/18 14:11

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

read-write to 0xffff888104be0cb8 of 8 bytes by task 3131 on cpu 1:
 shmem_rename2+0x200/0x2f0 mm/shmem.c:3267
 vfs_rename+0x833/0x9b0 fs/namei.c:4857
 do_renameat2+0x6d3/0xa20 fs/namei.c:5009
 __do_sys_rename fs/namei.c:5055 [inline]
 __se_sys_rename fs/namei.c:5053 [inline]
 __x64_sys_rename+0x5c/0x70 fs/namei.c:5053
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888104be0cb8 of 8 bytes by task 9994 on cpu 0:
 i_size_read include/linux/fs.h:879 [inline]
 generic_fillattr+0x13f/0x1e0 fs/stat.c:58
 shmem_getattr+0x32a/0x3b0 mm/shmem.c:1076
 vfs_getattr_nosec+0x1e3/0x3c0 fs/stat.c:133
 vfs_getattr fs/stat.c:170 [inline]
 vfs_statx+0x156/0x300 fs/stat.c:242
 vfs_fstatat fs/stat.c:276 [inline]
 __do_sys_newfstatat fs/stat.c:446 [inline]
 __se_sys_newfstatat+0x8a/0x2a0 fs/stat.c:440
 __x64_sys_newfstatat+0x55/0x60 fs/stat.c:440
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000001c34 -> 0x0000000000001c48

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 9994 Comm: udevd Not tainted 6.5.0-rc2-syzkaller-00338-g295e1388de2d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
==================================================================
udevd[9994]: inotify_add_watch(7, /dev/loop4p237, 10) failed: No such file or directory

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/22 22:50 upstream 295e1388de2d 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_fillattr / shmem_rename2
* Struck through repros no longer work on HEAD.