ptrace-add-ability-to-get-set-signal-blocked-mask.patch removed from -mm tree
Subject: [merged] ptrace-add-ability-to-get-set-signal-blocked-mask.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 08 Jul 2013 12:35:39 -0700
The patch titled
Subject: ptrace: add ability to get/set signal-blocked mask
has been removed from the -mm tree. Its filename was
ptrace-add-ability-to-get-set-signal-blocked-mask.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Andrey Vagin <[email protected]>
Subject: ptrace: add ability to get/set signal-blocked mask
crtools uses a parasite code for dumping processes. The parasite code is injected into a process with help PTRACE_SEIZE.
Currently crtools blocks signals from a parasite code. If a process has pending signals, crtools wait while a process handles these signals.
This method is not suitable for stopped tasks. A stopped task can have a few pending signals, when we will try to execute a parasite code, we will need to drop SIGSTOP, but all other signals must remain pending, because a state of processes must not be changed during checkpointing.
This patch adds two ptrace commands to set/get signal-blocked mask.
I think gdb can use this commands too.
---
include/uapi/linux/ptrace.h | 3 ++ kernel/ptrace.c | 44 ++++++++++++++++++++++++++++++++-- 2 files changed, 45 insertions(+), 2 deletions(-)
include/uapi/linux/ptrace.h renamed from include/uapi/linux/ptrace.h~ptrace-add-ability-to-get-set-signal-blocked-mask +3 -0
@@ -61,6 +61,9 @@ struct ptrace_peeksiginfo_args {__s32 nr;/* how may siginfos to take */ }; +#define PTRACE_GETSIGMASK 0x420a +#define PTRACE_SETSIGMASK 0x420b +/* Read signals from a shared (process wide) queue */ #define PTRACE_PEEKSIGINFO_SHARED (1 << 0)
kernel/ptrace.c renamed from kernel/ptrace.c~ptrace-add-ability-to-get-set-signal-blocked-mask +42 -2
56 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
origin.patch
linux-next.patch fput-task_work_add-can-fail-if-the-caller-has-passed-exit_task_work-fix.patch fput-turn-list_head-delayed_fput_list-into-llist_head.patch llist-fix-simplify-llist_add-and-llist_add_batch.patch llist-llist_add-can-use-llist_add_batch.patch move-exit_task_namespaces-outside-of-exit_notify-fix.patch