From 3a5cd34e34b662e4c2097e307d504712ddc05f73 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 12 May 2016 15:38:35 +0000 Subject: [PATCH] ptrace: fix printing addr argument of PTRACE_GETSIGMASK et al requests For PTRACE_GETSIGMASK and PTRACE_SETSIGMASK requests, addr argument contains the size of the buffer pointed to by data argument. For PTRACE_SECCOMP_GET_FILTER request, addr argument contains an offset counter. * process.c (SYS_FUNC(ptrace)): Print addr argument of PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and PTRACE_SECCOMP_GET_FILTER requests using %lu format. --- process.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/process.c b/process.c index e735bc36..3f10a891 100644 --- a/process.c +++ b/process.c @@ -117,6 +117,11 @@ SYS_FUNC(ptrace) tprints(", "); printxval(nt_descriptor_types, addr, "NT_???"); break; + case PTRACE_GETSIGMASK: + case PTRACE_SETSIGMASK: + case PTRACE_SECCOMP_GET_FILTER: + tprintf(", %lu", addr); + break; #if defined SPARC || defined SPARC64 case PTRACE_GETREGS: case PTRACE_SETREGS: -- 2.40.0