From b5db9917f37a3548813d0bb3ded7b42de01df72b Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Mon, 12 Dec 2016 00:12:27 +0300 Subject: [PATCH] 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. --- prctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.40.0