syzbot


KCSAN: data-race in fsnotify_parent / vfs_unlink

Status: closed as invalid on 2020/06/18 14:13
Subsystems: fs
[Documentation on labels]
First crash: 1422d, last: 1422d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fsnotify_parent / vfs_unlink (2) fs 3 1379d 1387d 0/26 auto-closed as invalid on 2020/08/21 15:37

Sample crash report:
==================================================================
BUG: KCSAN: data-race in fsnotify_parent / vfs_unlink

write to 0xffff888120bc2180 of 4 bytes by task 26490 on cpu 1:
 dont_mount include/linux/dcache.h:352 [inline]
 vfs_unlink+0x267/0x400 fs/namei.c:3811
 do_unlinkat+0x33f/0x550 fs/namei.c:3873
 __do_sys_unlink fs/namei.c:3920 [inline]
 __se_sys_unlink fs/namei.c:3918 [inline]
 __x64_sys_unlink+0x38/0x50 fs/namei.c:3918
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888120bc2180 of 4 bytes by task 26485 on cpu 0:
 fsnotify_parent+0x4d/0x1b0 fs/notify/fsnotify.c:153
 fsnotify_file include/linux/fsnotify.h:74 [inline]
 fsnotify_perm include/linux/fsnotify.h:103 [inline]
 fsnotify_perm include/linux/fsnotify.h:82 [inline]
 security_file_open+0x157/0x280 security/security.c:1552
 do_dentry_open+0x212/0x970 fs/open.c:784
 vfs_open+0x62/0x80 fs/open.c:911
 do_open fs/namei.c:3229 [inline]
 path_openat+0x1ff4/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: 26485 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/06/04 16:53 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 6720fdef .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.