]> 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>
Sat, 30 Oct 2021 08:54:17 +0000 (09:54 +0100)
commit8bbc0600cc21bbfdc3b8e67199eec4220952b7e3
treedc2c4eb72c0c94424c52eb2560aa4ecbc2744e8b
parent20f8331aca892ff812510609b3bc4e747b201197
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
sys/kern/subr_syscall.c