syzbot


KCSAN: data-race in selinux_inode_permission / vfs_rmdir

Status: auto-closed as invalid on 2021/05/27 05:10
Subsystems: fs
[Documentation on labels]
First crash: 1100d, last: 1100d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in selinux_inode_permission / vfs_rmdir

write to 0xffff88812d6a2874 of 4 bytes by task 3573 on cpu 0:
 vfs_rmdir+0x183/0x2c0 fs/namei.c:3906
 do_rmdir+0x14a/0x2e0 fs/namei.c:3964
 __do_sys_rmdir fs/namei.c:3982 [inline]
 __se_sys_rmdir fs/namei.c:3980 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:3980
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812d6a2874 of 4 bytes by task 3579 on cpu 1:
 selinux_inode_permission+0x7a/0x430 security/selinux/hooks.c:3131
 security_inode_permission+0x72/0xc0 security/security.c:1268
 inode_permission+0x91/0x290 fs/namei.c:521
 may_open+0x1a7/0x2f0 fs/namei.c:2985
 do_open fs/namei.c:3365 [inline]
 path_openat+0x17b3/0x20b0 fs/namei.c:3500
 do_filp_open+0xd9/0x1f0 fs/namei.c:3527
 do_sys_openat2+0xa3/0x250 fs/open.c:1187
 do_sys_open fs/open.c:1203 [inline]
 __do_sys_open fs/open.c:1211 [inline]
 __se_sys_open fs/open.c:1207 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1207
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3579 Comm: systemd-udevd Not tainted 5.12.0-rc8-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
2021/04/22 05:05 upstream 16fc44d6387e 2bc8999a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in selinux_inode_permission / vfs_rmdir
* Struck through repros no longer work on HEAD.