syzbot


KCSAN: data-race in __ptrace_unlink / syscall_trace_enter (3)

Status: auto-closed as invalid on 2021/11/27 00:29
Subsystems: kernel
[Documentation on labels]
First crash: 915d, last: 915d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __ptrace_unlink / syscall_trace_enter kernel 3 1051d 1102d 0/26 auto-closed as invalid on 2021/07/13 18:47
upstream KCSAN: data-race in __ptrace_unlink / syscall_trace_enter (2) kernel 7 952d 1016d 0/26 auto-closed as invalid on 2021/10/21 04:12

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __ptrace_unlink / syscall_trace_enter

write to 0xffff888106bc3070 of 4 bytes by task 14079 on cpu 0:
 __ptrace_unlink+0x162/0x320 kernel/ptrace.c:133
 __ptrace_detach+0x1b/0x1d0 kernel/ptrace.c:539
 exit_ptrace+0x93/0x160 kernel/ptrace.c:599
 forget_original_parent kernel/exit.c:628 [inline]
 exit_notify kernel/exit.c:668 [inline]
 do_exit+0x11ce/0x14a0 kernel/exit.c:845
 do_group_exit+0xa4/0x1a0 kernel/exit.c:922
 __do_sys_exit_group+0xb/0x10 kernel/exit.c:933
 __se_sys_exit_group+0x5/0x10 kernel/exit.c:931
 __x64_sys_exit_group+0x16/0x20 kernel/exit.c:931
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888106bc3070 of 4 bytes by task 14078 on cpu 1:
 ptrace_report_syscall include/linux/tracehook.h:60 [inline]
 tracehook_report_syscall_entry include/linux/tracehook.h:105 [inline]
 arch_syscall_enter_tracehook include/linux/entry-common.h:98 [inline]
 syscall_trace_enter+0x4d/0x290 kernel/entry/common.c:61
 __syscall_enter_from_user_work kernel/entry/common.c:90 [inline]
 syscall_enter_from_user_mode+0x1c/0x20 kernel/entry/common.c:108
 do_syscall_64+0x25/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00010269 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14078 Comm: syz-executor.4 Not tainted 5.15.0-rc6-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/10/23 00:27 upstream 64222515138e 282f03fb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ptrace_unlink / syscall_trace_enter
* Struck through repros no longer work on HEAD.