syzbot


KCSAN: data-race in capable / ptrace_attach

Status: auto-closed as invalid on 2021/05/17 09:11
Subsystems: bpf
[Documentation on labels]
First crash: 1111d, last: 1103d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in capable / ptrace_attach

write to 0xffff88802234702c of 4 bytes by task 12695 on cpu 0:
 ns_capable_common kernel/capability.c:377 [inline]
 ns_capable kernel/capability.c:396 [inline]
 capable+0x85/0xb0 kernel/capability.c:449
 bpf_capable include/linux/capability.h:264 [inline]
 bpf_btf_load kernel/bpf/syscall.c:3815 [inline]
 __do_sys_bpf+0xf03/0x99c0 kernel/bpf/syscall.c:4438
 __se_sys_bpf kernel/bpf/syscall.c:4351 [inline]
 __x64_sys_bpf+0x3d/0x50 kernel/bpf/syscall.c:4351
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88802234702c of 4 bytes by task 12688 on cpu 1:
 ptrace_attach+0xd0/0x4c0 kernel/ptrace.c:378
 __do_sys_ptrace kernel/ptrace.c:1256 [inline]
 __se_sys_ptrace+0xc1/0x2e0 kernel/ptrace.c:1236
 __x64_sys_ptrace+0x51/0x60 kernel/ptrace.c:1236
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12688 Comm: syz-executor.0 Not tainted 5.12.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/11 22:47 upstream 7d900724913c 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in capable / ptrace_attach
2021/04/04 12:53 upstream 2023a53bdf41 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in capable / ptrace_attach
* Struck through repros no longer work on HEAD.