From: Eugene Syromyatnikov Date: Sun, 11 Dec 2016 21:12:27 +0000 (+0300) Subject: prctl: print pointer returned by PR_GET_TID_ADDRESS as kernel long X-Git-Tag: v4.16~144 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5db9917f37a3548813d0bb3ded7b42de01df72b;p=strace prctl: print pointer returned by PR_GET_TID_ADDRESS as kernel long Since there is no compat handler for x32/n32, kernel returns kernel's long as a result of the call. Interesting, does any callee out there actually care to have enough room allocated for kernel long? * prctl.c (SYS_FUNC(prctl)): Use printnum_kptr instead of printnum_ptr to print the value stored at address pointed by addr2 argument of PR_GET_TID_ADDRESS operation. --- diff --git a/prctl.c b/prctl.c index dede4c9d..6779ad51 100644 --- a/prctl.c +++ b/prctl.c @@ -151,7 +151,7 @@ SYS_FUNC(prctl) if (entering(tcp)) tprints(", "); else - printnum_ptr(tcp, arg2); + printnum_kptr(tcp, arg2); break; case PR_GET_TSC: