All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Vlasenko <dvlasenk-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Oleg Nesterov <oleg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Michael Kerrisk
	<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Jan Kratochvil
	<jan.kratochvil-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	"Dmitry V. Levin" <ldv-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org>,
	linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] ptrace.2: Clarify PTRACE_INTERRUPT, PTRACE_LISTEN and group-stop behavior
Date: Fri, 21 Jun 2013 12:49:53 +0200	[thread overview]
Message-ID: <51C42FD1.5010407@redhat.com> (raw)
In-Reply-To: <20130620142452.GA846-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

On 06/20/2013 04:24 PM, Oleg Nesterov wrote:
>> PTRACE_INTERRUPT (since Linux 3.4)
>> Stop a tracee.
>> [*MODIFIED TEXT->**] If the tracee is running in kernel space
>> and PTRACE_SYSCALL is in effect, it will stop with syscall-exit-stop.
> 
> Yes, but this looks a bit confusing. Or perhaps it is just me.
> 
> IOW, it looks as if PTRACE_INTERRUPT has no effect in this case, the
> tracee should report syscall-exit anyway. I do not know how to explain
> this better...

How about this?

"If the tracee is running or sleeping in kernel space
and PTRACE_SYSCALL is in effect, it will return from kernel
and send syscall-exit-stop notification."

I wonder whether we need to add that "The interrupted system call
will be restarted when tracee is restarted" or this is obvious
enough?

> I think it makes sense to mention that a) PTRACE_INTERRUPT is only
> valid if PTRACE_SEIZE was used, and b) this is the only request which
> doesn't need the stopped tracee. (PTRACE_KILL should die)

It is mentioned elsewhere on the man page.
--
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

  parent reply	other threads:[~2013-06-21 10:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-20 11:11 [PATCH] ptrace.2: Clarify PTRACE_INTERRUPT, PTRACE_LISTEN and group-stop behavior Denys Vlasenko
     [not found] ` <1371726704-23409-1-git-send-email-dvlasenk-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-06-20 14:24   ` Oleg Nesterov
     [not found]     ` <20130620142452.GA846-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-06-21 10:49       ` Denys Vlasenko [this message]
     [not found]         ` <51C42FD1.5010407-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-06-21 14:57           ` Oleg Nesterov

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=51C42FD1.5010407@redhat.com \
    --to=dvlasenk-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=jan.kratochvil-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=ldv-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=oleg-H+wXaHxf7aLQT0dZR+AlfA@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.