ptrace: do not print arguments of PTRACE_TRACEME request

As kernel ignores arguments of PTRACE_TRACEME request,
we do not print them either.

* process.c (SYS_FUNC(ptrace)): If request is PTRACE_TRACEME,
return early with RVAL_DECODED.
This commit is contained in:
Дмитрий Левин 2016-05-12 15:03:58 +00:00
parent 73a8e97d56
commit 89ca4aa140

View File

@ -91,6 +91,11 @@ SYS_FUNC(ptrace)
/* request */
printxval64(ptrace_cmds, request, "PTRACE_???");
if (request == PTRACE_TRACEME) {
/* pid, addr, and data are ignored. */
return RVAL_DECODED;
}
/* pid */
tprintf(", %d, ", pid);