]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux: Add additional ptracestop only if the debugger is Linux
authorEdward Tomasz Napierala <trasz@FreeBSD.org>
Sat, 30 Oct 2021 08:53:55 +0000 (09:53 +0100)
committerEdward Tomasz Napierala <trasz@FreeBSD.org>
Mon, 21 Feb 2022 14:31:22 +0000 (14:31 +0000)
commitd3f0d2c0eef6ef2092cd66db02aace57eb3c6a4d
treec8369c8bbadeca40770bc8d410fb5643043e0484
parentbb726462cbea5f6b3ad9e4892cb59b19e45c229c
linux: Add additional ptracestop only if the debugger is Linux

In 6e66030c4c0, additional ptracestop was added in order
to implement PTRACE_EVENT_EXEC.  Make it only apply to cases
where the debugger is a Linux processes; native FreeBSD
debuggers can trace Linux processes too, but they don't
expect that additonal ptracestop.

Fixes: 6e66030c4c0
Reported By: kib
Reviewed By: kib
Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D32726

(cherry picked from commit 8bbc0600cc21bbfdc3b8e67199eec4220952b7e3)
sys/kern/subr_syscall.c