]> granicus.if.org Git - strace/commit
prctl: print pointer returned by PR_GET_TID_ADDRESS as kernel long
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 11 Dec 2016 21:12:27 +0000 (00:12 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Dec 2016 16:43:40 +0000 (16:43 +0000)
commitb5db9917f37a3548813d0bb3ded7b42de01df72b
treeaa16a73d24f0235548a3e9888b4d0fdc2b226a74
parentc9000d43bdd65f878722550fbec1e82aa8b699b3
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