syzbot


KCSAN: data-race in path_openat / vfs_rename

Status: closed as invalid on 2020/06/18 14:24
Subsystems: fs
[Documentation on labels]
First crash: 1461d, last: 1461d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in path_openat / vfs_rename (2) fs 1 1156d 1156d 0/26 auto-closed as invalid on 2021/03/25 02:59
upstream KCSAN: data-race in path_openat / vfs_rename (3) fs 4 1055d 1088d 0/26 auto-closed as invalid on 2021/07/04 13:26

Sample crash report:
==================================================================
BUG: KCSAN: data-race in path_openat / vfs_rename

write to 0xffff888120d43f00 of 4 bytes by task 10296 on cpu 1:
 dont_mount include/linux/dcache.h:352 [inline]
 vfs_rename+0x985/0x1130 fs/namei.c:4297
 do_renameat2+0x9e8/0xa50 fs/namei.c:4437
 __do_sys_rename fs/namei.c:4483 [inline]
 __se_sys_rename fs/namei.c:4481 [inline]
 __x64_sys_rename+0x44/0x60 fs/namei.c:4481
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888120d43f00 of 4 bytes by task 3952 on cpu 0:
 d_is_reg include/linux/dcache.h:424 [inline]
 do_open fs/namei.c:3221 [inline]
 path_openat+0x144c/0x23d0 fs/namei.c:3346
 do_filp_open+0x11e/0x1b0 fs/namei.c:3373
 do_sys_openat2+0x52e/0x680 fs/open.c:1148
 do_sys_open+0xa2/0x110 fs/open.c:1164
 ksys_open include/linux/syscalls.h:1386 [inline]
 __do_sys_open fs/open.c:1170 [inline]
 __se_sys_open fs/open.c:1168 [inline]
 __x64_sys_open+0x50/0x60 fs/open.c:1168
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3952 Comm: systemd-udevd Not tainted 5.7.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/19 02:43 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 365fba24 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.