syzbot


KCSAN: data-race in kernfs_refresh_inode / security_file_open

Status: closed as invalid on 2019/11/19 13:24
Subsystems: kernfs
[Documentation on labels]
First crash: 1993d, last: 1993d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in kernfs_refresh_inode / security_file_open (2) lsm 5 1899d 1963d 0/28 auto-closed as invalid on 2020/04/15 19:23

Sample crash report:
==================================================================
BUG: KCSAN: data-race in kernfs_refresh_inode / security_file_open

write to 0xffff8880bb462490 of 2 bytes by task 7239 on cpu 0:
 kernfs_refresh_inode+0x42/0x140 fs/kernfs/inode.c:172
 kernfs_iop_getattr+0x68/0x90 fs/kernfs/inode.c:191
 vfs_getattr_nosec+0x12e/0x170 fs/stat.c:81
 vfs_getattr+0x54/0x70 fs/stat.c:118
 vfs_statx+0x102/0x190 fs/stat.c:191
 vfs_stat include/linux/fs.h:3242 [inline]
 __do_sys_newstat+0x51/0xb0 fs/stat.c:341
 __se_sys_newstat fs/stat.c:337 [inline]
 __x64_sys_newstat+0x3a/0x50 fs/stat.c:337
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880bb462490 of 2 bytes by task 3890 on cpu 1:
 fsnotify_perm include/linux/fsnotify.h:82 [inline]
 security_file_open+0x11c/0x210 security/security.c:1501
 do_dentry_open+0x20a/0x8f0 fs/open.c:784
 vfs_open+0x62/0x80 fs/open.c:914
 do_last fs/namei.c:3408 [inline]
 path_openat+0xf75/0x36e0 fs/namei.c:3525
 do_filp_open+0x11e/0x1b0 fs/namei.c:3555
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 __do_sys_open fs/open.c:1115 [inline]
 __se_sys_open fs/open.c:1110 [inline]
 __x64_sys_open+0x55/0x70 fs/open.c:1110
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3890 Comm: udevd Not tainted 5.4.0-rc3+ #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
2019/11/04 13:03 https://github.com/google/ktsan.git kcsan 05f2236801fe 18e12644 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.