public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHSET ptrace] ptrace: implement PTRACE_SEIZE/INTERRUPT and group stop notification, take#5
@ 2011-06-14  9:20 Tejun Heo
  2011-06-14  9:20 ` [PATCH 1/5] job control: introduce JOBCTL_TRAP_STOP and use it for group stop trap Tejun Heo
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Tejun Heo @ 2011-06-14  9:20 UTC (permalink / raw)
  To: oleg
  Cc: vda.linux, jan.kratochvil, linux-kernel, torvalds, akpm, indan,
	bdonlan, pedro

Hello,

This is the fifth take of PTRACE_SEIZE/INTERRUPT and group stop
notification patchset.

Changes from the last take[1] are,

* Rebased on top of Oleg's ptrace branch[2] which now contains prep
  patches from the last take[1], so prep patches are dropped from this
  series.

* si_pt_flags and PTRACE_SI_STOPPED are dropped in favor of encoding
  the current group stop state in exit_code of STOP traps.  If group
  stop is in effect for the tracee, signr part of exit_code is the
  stopping signal; otherwise, it's SIGTRAP.

  Note that SIGCONT isn't used for NOTIFY traps - SIGTRAP is used
  instead, so signr is either SIG(stop) or SIGTRAP.  NOTIFY traps
  aren't differen't from any other STOP traps and all we need is the
  current state of group stop.  There's no need to distinguish NOTIFY
  traps.

* LISTENING test moved from wait_task_stopped() to
  task_stopped_code().

This patchset contains the following five patches.

  0001-job-control-introduce-JOBCTL_TRAP_STOP-and-use-it-fo.patch
  0002-ptrace-implement-PTRACE_SEIZE.patch
  0003-ptrace-implement-PTRACE_INTERRUPT.patch
  0004-ptrace-implement-TRAP_NOTIFY-and-use-it-for-group-st.patch
  0005-ptrace-implement-PTRACE_LISTEN.patch

and available in the following git branch.

  git://git.kernel.org/pub/scm/linux/kernel/git/tj/misc.git review-ptrace-seize

The HEAD is 20b0913886 (ptrace: implement PTRACE_LISTEN).  If you see
older branch, please retry after a while (korg is still syncing).

The patchset is on top of Oleg's ptrace branch[2] - dd1d677269
(signal: remove three noop tracehooks).

diffstat follows.

 include/linux/ptrace.h |    9 ++
 include/linux/sched.h  |   10 ++-
 kernel/exit.c          |    3
 kernel/ptrace.c        |  116 +++++++++++++++++++++++++++++++----
 kernel/signal.c        |  162 ++++++++++++++++++++++++++++++++++++++-----------
 5 files changed, 249 insertions(+), 51 deletions(-)

Thanks.

--
tejun

[1] http://thread.gmane.org/gmane.linux.kernel/1147384
[2] git://git.kernel.org/pub/scm/linux/kernel/git/oleg/misc.git ptrace

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

end of thread, other threads:[~2011-09-23 12:30 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-14  9:20 [PATCHSET ptrace] ptrace: implement PTRACE_SEIZE/INTERRUPT and group stop notification, take#5 Tejun Heo
2011-06-14  9:20 ` [PATCH 1/5] job control: introduce JOBCTL_TRAP_STOP and use it for group stop trap Tejun Heo
2011-06-14  9:20 ` [PATCH 2/5] ptrace: implement PTRACE_SEIZE Tejun Heo
2011-06-18  7:55   ` Denys Vlasenko
2011-06-18  7:59     ` Denys Vlasenko
2011-06-18  8:35       ` Tejun Heo
2011-06-18  8:57         ` Denys Vlasenko
2011-06-18  9:04           ` Tejun Heo
2011-06-18  8:30     ` Tejun Heo
2011-06-18  8:58       ` Denys Vlasenko
2011-06-14  9:20 ` [PATCH 3/5] ptrace: implement PTRACE_INTERRUPT Tejun Heo
2011-06-14  9:20 ` [PATCH 4/5] ptrace: implement TRAP_NOTIFY and use it for group stop events Tejun Heo
2011-06-16 19:51   ` Oleg Nesterov
2011-06-17 15:12     ` Tejun Heo
2011-06-17 18:31       ` Oleg Nesterov
2011-06-14  9:20 ` [PATCH 5/5] ptrace: implement PTRACE_LISTEN Tejun Heo
2011-09-23 11:17   ` Matt Fleming
2011-09-23 12:26     ` Oleg Nesterov
2011-06-16 19:44 ` [PATCHSET ptrace] ptrace: implement PTRACE_SEIZE/INTERRUPT and group stop notification, take#5 Oleg Nesterov

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