* [patch] ptrace.2: Add note regarding 'struct user'
@ 2008-05-17 10:43 Anoop
[not found] ` <20080517064309.gnqp888k2s8wo4sk-FJGp5E75HVmZamtmwQBW5tBPR1lH4CV8@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Anoop @ 2008-05-17 10:43 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
A few days back Roland McGrath discussed about the ptrace
PTRACE_PEEKUSER behavior @ http://lkml.org/lkml/2008/5/8/375
Thought that adding a note saying - the offsets and data returned
might not match with the definition of struct user - will help.
Signed-off-by: Anoop Vijayan <acv-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
--- man-pages-2.79/man2/ptrace.2.orig 2008-05-17 12:54:50.000000000 +0530
+++ man-pages-2.79/man2/ptrace.2 2008-05-17 13:45:53.000000000 +0530
@@ -138,7 +138,7 @@ The word is returned as the result of th
.BR ptrace ()
call.
Typically the offset must be word-aligned, though this might vary by
-architecture. (\fIdata\fP is ignored.)
+architecture. See NOTES. (\fIdata\fP is ignored.)
.TP
.BR PTRACE_POKETEXT ", " PTRACE_POKEDATA
Copies the word
@@ -454,7 +454,9 @@ behavior.
the process with PID 1, may not be traced.
.LP
The layout of the contents of memory and the USER area are quite OS- and
-architecture-specific.
+architecture-specific. The offset supplied and the data returned might
+not entirely match with the definition of
+.I struct user
.LP
The size of a "word" is determined by the OS variant
(e.g., for 32-bit Linux it is 32 bits, etc.).
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] ptrace.2: Add note regarding 'struct user'
[not found] ` <20080517064309.gnqp888k2s8wo4sk-FJGp5E75HVmZamtmwQBW5tBPR1lH4CV8@public.gmane.org>
@ 2008-05-21 17:53 ` Michael Kerrisk
[not found] ` <483461B7.5090706-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Michael Kerrisk @ 2008-05-21 17:53 UTC (permalink / raw)
To: Anoop; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Roland McGrath
Hi Anoop, Roland,
Anoop wrote:
>
> A few days back Roland McGrath discussed about the ptrace
> PTRACE_PEEKUSER behavior @ http://lkml.org/lkml/2008/5/8/375
>
> Thought that adding a note saying - the offsets and data returned might
> not match with the definition of struct user - will help.
>
> Signed-off-by: Anoop Vijayan <acv-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
>
> --- man-pages-2.79/man2/ptrace.2.orig 2008-05-17 12:54:50.000000000 +0530
> +++ man-pages-2.79/man2/ptrace.2 2008-05-17 13:45:53.000000000 +0530
> @@ -138,7 +138,7 @@ The word is returned as the result of th
> .BR ptrace ()
> call.
> Typically the offset must be word-aligned, though this might vary by
> -architecture. (\fIdata\fP is ignored.)
> +architecture. See NOTES. (\fIdata\fP is ignored.)
> .TP
> .BR PTRACE_POKETEXT ", " PTRACE_POKEDATA
> Copies the word
> @@ -454,7 +454,9 @@ behavior.
> the process with PID 1, may not be traced.
> .LP
> The layout of the contents of memory and the USER area are quite OS- and
> -architecture-specific.
> +architecture-specific. The offset supplied and the data returned might
> +not entirely match with the definition of
> +.I struct user
> .LP
> The size of a "word" is determined by the OS variant
> (e.g., for 32-bit Linux it is 32 bits, etc.).
Anoop -- I'll just ask for a second opinion here, since I'm not familiar with all the details.
Roland, does this change seem okay to you?
Cheers,
Michael
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] ptrace.2: Add note regarding 'struct user'
[not found] ` <483461B7.5090706-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2008-05-21 18:13 ` Roland McGrath
[not found] ` <20080521181307.DB90926FA24-nL1rrgvulkcB9AHHLWeGtNQXobZC6xk2@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Roland McGrath @ 2008-05-21 18:13 UTC (permalink / raw)
To: Michael Kerrisk; +Cc: Anoop, linux-man-u79uwXL29TY76Z2rM5mHXA
> Roland, does this change seem okay to you?
What it says is true.
Thanks,
Roland
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] ptrace.2: Add note regarding 'struct user'
[not found] ` <20080521181307.DB90926FA24-nL1rrgvulkcB9AHHLWeGtNQXobZC6xk2@public.gmane.org>
@ 2008-05-21 20:20 ` Michael Kerrisk
0 siblings, 0 replies; 4+ messages in thread
From: Michael Kerrisk @ 2008-05-21 20:20 UTC (permalink / raw)
To: Roland McGrath; +Cc: Anoop, linux-man-u79uwXL29TY76Z2rM5mHXA
On Wed, May 21, 2008 at 8:13 PM, Roland McGrath <roland-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>> Roland, does this change seem okay to you?
>
> What it says is true.
Thanks.
Anoop, I've applied this for the next man-pages release. Thanks!
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-21 20:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-17 10:43 [patch] ptrace.2: Add note regarding 'struct user' Anoop
[not found] ` <20080517064309.gnqp888k2s8wo4sk-FJGp5E75HVmZamtmwQBW5tBPR1lH4CV8@public.gmane.org>
2008-05-21 17:53 ` Michael Kerrisk
[not found] ` <483461B7.5090706-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-05-21 18:13 ` Roland McGrath
[not found] ` <20080521181307.DB90926FA24-nL1rrgvulkcB9AHHLWeGtNQXobZC6xk2@public.gmane.org>
2008-05-21 20:20 ` Michael Kerrisk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox