aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2016-12-12 06:54:41 +0300
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-12-12 07:13:56 +0100
commitc49be32cd925a7b2b8b31a875ce96fb9c7025e12 (patch)
treee791247a5ac6d0e139afa45ae41d479a54f07e73
parent86c91a79a5a05a050ee489d70d708b0b50cd3cb4 (diff)
downloadman-pages-c49be32cd925a7b2b8b31a875ce96fb9c7025e12.tar.gz
prctl.2: Note the output buffer size for PR_GET_TID_ADDRESS operation on x32/n32
Add note regarding the size of the output user space buffer for PR_GET_TID_ADDRESS operation on x32/n32. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/prctl.25
1 files changed, 4 insertions, 1 deletions
diff --git a/man2/prctl.2 b/man2/prctl.2
index 44ec6573c5..19b9789f84 100644
--- a/man2/prctl.2
+++ b/man2/prctl.2
@@ -988,7 +988,10 @@ flag, in the location pointed to by
.IR "(int\ **)\ arg2" .
This feature is available only if the kernel is built with the
.BR CONFIG_CHECKPOINT_RESTORE
-option enabled.
+option enabled. Note that since the prctl() syscall does not have compat
+implementation for AMD64 x32 and MIPS n32 ABIs, and the kernel writes out
+pointer of kernel's pointer size, this operation expects a user space buffer
+of 8 (not 4) bytes on these ABIs.
.TP
.BR PR_SET_TIMERSLACK " (since Linux 2.6.28)"
.\" See https://lwn.net/Articles/369549/