public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org>
To: Patrick Donnelly <batrick-dP08NitdTj1Wk0Htik3J/w@public.gmane.org>
Cc: Michael Kerrisk-manpages
	<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: ptrace(2): wrong kernel version for PTRACE_SEIZE and others
Date: Tue, 22 Mar 2016 14:16:29 +0300	[thread overview]
Message-ID: <20160322111629.GA13320@altlinux.org> (raw)
In-Reply-To: <CACh33FrJRvC-ZQkBD2DZjW-YYnqNY5iCu_DtB8x+Jz_w80tMPg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

[-- 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 --]

  parent reply	other threads:[~2016-03-22 11:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
     [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)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160322111629.GA13320@altlinux.org \
    --to=ldv-u2l5pomzf/vg9huczpvpmw@public.gmane.org \
    --cc=batrick-dP08NitdTj1Wk0Htik3J/w@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox