public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* ptrace(2): wrong kernel version for PTRACE_SEIZE and others
@ 2016-03-18 21:21 Patrick Donnelly
       [not found] ` <CACh33FrJRvC-ZQkBD2DZjW-YYnqNY5iCu_DtB8x+Jz_w80tMPg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick Donnelly @ 2016-03-18 21:21 UTC (permalink / raw)
  To: Michael Kerrisk-manpages; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

The ptrace(2) man page says that PTRACE_SEIZE, PTRACE_LISTEN, and
PTRACE_INTERRUPT was introduced in Linux 3.4. In fact, this was added
in 3.1:

$ git diff v3.0 v3.1 include/linux/ptrace.h | grep SEIZE
+#define PTRACE_SEIZE           0x4206
+/* flags in @data for PTRACE_SEIZE */
+#define PTRACE_SEIZE_DEVEL     0x80000000 /* temp flag for development */
+#define PT_SEIZED      0x00010000      /* SEIZE used, enable new behavior */
+               if (child->ptrace & PT_SEIZED)


-- 
Patrick Donnelly
--
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] 5+ messages in thread

* Re: ptrace(2): wrong kernel version for PTRACE_SEIZE and others
       [not found] ` <CACh33FrJRvC-ZQkBD2DZjW-YYnqNY5iCu_DtB8x+Jz_w80tMPg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-03-22 11:16   ` Dmitry V. Levin
       [not found]     ` <20160322111629.GA13320-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry V. Levin @ 2016-03-22 11:16 UTC (permalink / raw)
  To: Patrick Donnelly
  Cc: Michael Kerrisk-manpages, linux-man-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 810 bytes --]

On Fri, Mar 18, 2016 at 05:21:28PM -0400, Patrick Donnelly wrote:
> The ptrace(2) man page says that PTRACE_SEIZE, PTRACE_LISTEN, and
> PTRACE_INTERRUPT was introduced in Linux 3.4. In fact, this was added
> in 3.1:
> 
> $ git diff v3.0 v3.1 include/linux/ptrace.h | grep SEIZE
> +#define PTRACE_SEIZE           0x4206
> +/* flags in @data for PTRACE_SEIZE */
> +#define PTRACE_SEIZE_DEVEL     0x80000000 /* temp flag for development */

Yes, PTRACE_SEIZE was introduced by commit v3.1-rc1~308^2~28, but
it had to be used along with a temporary flag PTRACE_SEIZE_DEVEL,
which was removed later by commit v3.4-rc1~109^2~20.

That is, between v3.0 and v3.4 we had a test mode of PTRACE_SEIZE API,
which was not compatible with the current PTRACE_SEIZE API introduced
in Linux 3.4.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ptrace(2): wrong kernel version for PTRACE_SEIZE and others
       [not found]     ` <20160322111629.GA13320-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org>
@ 2016-03-28  3:55       ` Michael Kerrisk (man-pages)
       [not found]         ` <CAKgNAkg-MfedjbfFqjP7OjXuyN_akats1GJpZPfRk68TgEh8Fg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Kerrisk (man-pages) @ 2016-03-28  3:55 UTC (permalink / raw)
  To: Dmitry V. Levin; +Cc: Patrick Donnelly, linux-man

Hi Dmitry,

On 23 March 2016 at 00:16, Dmitry V. Levin <ldv-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org> wrote:
> On Fri, Mar 18, 2016 at 05:21:28PM -0400, Patrick Donnelly wrote:
>> The ptrace(2) man page says that PTRACE_SEIZE, PTRACE_LISTEN, and
>> PTRACE_INTERRUPT was introduced in Linux 3.4. In fact, this was added
>> in 3.1:
>>
>> $ git diff v3.0 v3.1 include/linux/ptrace.h | grep SEIZE
>> +#define PTRACE_SEIZE           0x4206
>> +/* flags in @data for PTRACE_SEIZE */
>> +#define PTRACE_SEIZE_DEVEL     0x80000000 /* temp flag for development */
>
> Yes, PTRACE_SEIZE was introduced by commit v3.1-rc1~308^2~28, but
> it had to be used along with a temporary flag PTRACE_SEIZE_DEVEL,
> which was removed later by commit v3.4-rc1~109^2~20.
>
> That is, between v3.0 and v3.4 we had a test mode of PTRACE_SEIZE API,
> which was not compatible with the current PTRACE_SEIZE API introduced
> in Linux 3.4.

So, it sounds like the page is good as it stands, right?

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
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] 5+ messages in thread

* Re: ptrace(2): wrong kernel version for PTRACE_SEIZE and others
       [not found]         ` <CAKgNAkg-MfedjbfFqjP7OjXuyN_akats1GJpZPfRk68TgEh8Fg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-03-28  4:30           ` Mike Frysinger
       [not found]             ` <20160328043019.GW6588-UgUKS2FnFs9+urZeOPWqwQ@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2016-03-28  4:30 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: Dmitry V. Levin, Patrick Donnelly, linux-man

[-- Attachment #1: Type: text/plain, Size: 1313 bytes --]

On 28 Mar 2016 16:55, Michael Kerrisk (man-pages) wrote:
> On 23 March 2016 at 00:16, Dmitry V. Levin <ldv-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org> wrote:
> > On Fri, Mar 18, 2016 at 05:21:28PM -0400, Patrick Donnelly wrote:
> >> The ptrace(2) man page says that PTRACE_SEIZE, PTRACE_LISTEN, and
> >> PTRACE_INTERRUPT was introduced in Linux 3.4. In fact, this was added
> >> in 3.1:
> >>
> >> $ git diff v3.0 v3.1 include/linux/ptrace.h | grep SEIZE
> >> +#define PTRACE_SEIZE           0x4206
> >> +/* flags in @data for PTRACE_SEIZE */
> >> +#define PTRACE_SEIZE_DEVEL     0x80000000 /* temp flag for development */
> >
> > Yes, PTRACE_SEIZE was introduced by commit v3.1-rc1~308^2~28, but
> > it had to be used along with a temporary flag PTRACE_SEIZE_DEVEL,
> > which was removed later by commit v3.4-rc1~109^2~20.
> >
> > That is, between v3.0 and v3.4 we had a test mode of PTRACE_SEIZE API,
> > which was not compatible with the current PTRACE_SEIZE API introduced
> > in Linux 3.4.
> 
> So, it sounds like the page is good as it stands, right?

if the commented source has these details, then yes.  otherwise, might
be good to stash them in the commented block.  i don't think it should
be exposed to the user.

glancing at the source, i'm not seeing a commented block.
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ptrace(2): wrong kernel version for PTRACE_SEIZE and others
       [not found]             ` <20160328043019.GW6588-UgUKS2FnFs9+urZeOPWqwQ@public.gmane.org>
@ 2016-03-28  4:38               ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Kerrisk (man-pages) @ 2016-03-28  4:38 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages), Dmitry V. Levin, Patrick Donnelly,
	linux-man, Mike Frysinger

Hi Mike,

On 28 March 2016 at 17:30, Mike Frysinger <vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org> wrote:
> On 28 Mar 2016 16:55, Michael Kerrisk (man-pages) wrote:
>> On 23 March 2016 at 00:16, Dmitry V. Levin <ldv-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org> wrote:
>> > On Fri, Mar 18, 2016 at 05:21:28PM -0400, Patrick Donnelly wrote:
>> >> The ptrace(2) man page says that PTRACE_SEIZE, PTRACE_LISTEN, and
>> >> PTRACE_INTERRUPT was introduced in Linux 3.4. In fact, this was added
>> >> in 3.1:
>> >>
>> >> $ git diff v3.0 v3.1 include/linux/ptrace.h | grep SEIZE
>> >> +#define PTRACE_SEIZE           0x4206
>> >> +/* flags in @data for PTRACE_SEIZE */
>> >> +#define PTRACE_SEIZE_DEVEL     0x80000000 /* temp flag for development */
>> >
>> > Yes, PTRACE_SEIZE was introduced by commit v3.1-rc1~308^2~28, but
>> > it had to be used along with a temporary flag PTRACE_SEIZE_DEVEL,
>> > which was removed later by commit v3.4-rc1~109^2~20.
>> >
>> > That is, between v3.0 and v3.4 we had a test mode of PTRACE_SEIZE API,
>> > which was not compatible with the current PTRACE_SEIZE API introduced
>> > in Linux 3.4.
>>
>> So, it sounds like the page is good as it stands, right?
>
> if the commented source has these details, then yes.  otherwise, might
> be good to stash them in the commented block.

Yes, that seems a wise idea. Done.

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
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] 5+ messages in thread

end of thread, other threads:[~2016-03-28  4:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-18 21:21 ptrace(2): wrong kernel version for PTRACE_SEIZE and others Patrick Donnelly
     [not found] ` <CACh33FrJRvC-ZQkBD2DZjW-YYnqNY5iCu_DtB8x+Jz_w80tMPg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-22 11:16   ` Dmitry V. Levin
     [not found]     ` <20160322111629.GA13320-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org>
2016-03-28  3:55       ` Michael Kerrisk (man-pages)
     [not found]         ` <CAKgNAkg-MfedjbfFqjP7OjXuyN_akats1GJpZPfRk68TgEh8Fg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-28  4:30           ` Mike Frysinger
     [not found]             ` <20160328043019.GW6588-UgUKS2FnFs9+urZeOPWqwQ@public.gmane.org>
2016-03-28  4:38               ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox