syzbot


KCSAN: data-race in capable_wrt_inode_uidgid / task_dump_owner

Status: auto-closed as invalid on 2021/06/01 03:14
Subsystems: lsm
[Documentation on labels]
First crash: 1088d, last: 1088d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in capable_wrt_inode_uidgid / task_dump_owner

write to 0xffff88812d13d0ac of 4 bytes by task 22173 on cpu 1:
 ns_capable_common kernel/capability.c:377 [inline]
 ns_capable kernel/capability.c:396 [inline]
 capable_wrt_inode_uidgid+0xa5/0x140 kernel/capability.c:509
 generic_permission+0x1b7/0x420 fs/namei.c:422
 do_inode_permission fs/namei.c:453 [inline]
 inode_permission+0x6b/0x290 fs/namei.c:513
 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

read to 0xffff88812d13d0ac of 4 bytes by task 1025 on cpu 0:
 task_dump_owner+0x2b/0x1d0 fs/proc/base.c:1822
 pid_update_inode fs/proc/base.c:1964 [inline]
 proc_pident_instantiate+0x138/0x190 fs/proc/base.c:2617
 proc_pident_lookup fs/proc/base.c:2641 [inline]
 proc_tgid_base_lookup+0x10c/0x180 fs/proc/base.c:3292
 lookup_open fs/namei.c:3199 [inline]
 open_last_lookups fs/namei.c:3291 [inline]
 path_openat+0xb5a/0x20b0 fs/namei.c:3497
 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: 0 PID: 1025 Comm: systemd-journal Tainted: G        W         5.12.0-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/27 03:05 upstream 9f4ad9e425a1 8ee2dea6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in capable_wrt_inode_uidgid / task_dump_owner
* Struck through repros no longer work on HEAD.