exit: complete synchronize_group_exit
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest17 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | signal: Make SIGKILL during coredumps an explicit special casekernel/ | +6 | 6 replies | |
| 2/17 | signal: Compute the process exit_code in get_signalkernel/ | +12 | 1 reply | |
| 3/17 | coredump: Consolidate the work to allow SIGKILL during coredumpsfs/ | +6 | 1 reply | |
| 4/17 | signal: In get_signal call do_exit when it is unnecessary to shoot down threadskernel/ kernel/ | +6 | 1 reply | |
| 5/17 | signal: Bring down all threads when handling a non-coredump fatal signalkernel/ | +7 | 1 reply | |
| 6/17 | signal: Add JOBCTL_WILL_EXIT to mark exiting tasksfs/ include/ include/ +1 more | +16 | 0 replies | |
| 7/17 | signal: Always set JOBCTL_WILL_EXIT for exiting tasksfs/ kernel/ kernel/ | +15 | 0 replies | |
| 8/17 | signal: Don't target tasks that are exitingkernel/ | +3 | 0 replies | |
| 9/17 | signal: Test for process exit or de_thread using task_exit_pendingfs/ fs/ kernel/ | +4 | 0 replies | |
| 10/17 | signal: Only set JOBCTL_WILL_EXIT if it is not already setfs/ kernel/ kernel/ | +19 | 0 replies | |
| 11/17 | signal: Make individual tasks exiting a first class conceptfs/ include/ kernel/ +1 more | +15 | 0 replies | |
| 12/17 | signal: Remove zap_other_threadsfs/ include/ kernel/ +1 more | +24 | 0 replies | |
| 13/17 | signal: Stop skipping current in do_group_exit & get_signalkernel/ kernel/ | +2 | 0 replies | |
| 14/17 | signal: Factor out schedule_group_exit_lockedfs/ include/ kernel/ +1 more | +25 | 0 replies | |
| 15/17 | ptrace: Separate task->ptrace_code out from task->exit_codefs/ include/ kernel/ +2 more | +22 | 0 replies | |
| 16/17 | signal: Record the exit_code when an exit is scheduledfs/ include/ kernel/ +1 more | +11 | 0 replies | |
| 17/17 | signal: Set SIGNAL_GROUP_EXIT when all tasks have decided to exitkernel/ kernel/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/17] exit: complete synchronize_group_exit
This patchset is against v6.10-rc3
A while ago I was working on the problem of how to allow signals that trigger coredumps to support short circuit delivery. Along the way I wound up developing some code that would make ``process'' exits triggered by signals, do_exit, or do_group_exit clean. This patchset is that code.
The highlights add enough bits to the task_struct to allow task exits to be scheduled like signal group exits.
Add helpers schedule_task_exit_locked, and schedule_group_exit_locked so the same code is not repeated in small variations in different parts of the code, and allowing de_thread to be implemented cleanly.
Eric W. Biederman (17):
signal: Make SIGKILL during coredumps an explicit special case
signal: Compute the process exit_code in get_signal
coredump: Consolidate the work to allow SIGKILL during coredumps
signal: In get_signal call do_exit when it is unnecessary to shoot down threads
signal: Bring down all threads when handling a non-coredump fatal signal
signal: Add JOBCTL_WILL_EXIT to mark exiting tasks
signal: Always set JOBCTL_WILL_EXIT for exiting tasks
signal: Don't target tasks that are exiting
signal: Test for process exit or de_thread using task_exit_pending
signal: Only set JOBCTL_WILL_EXIT if it is not already set
signal: Make individual tasks exiting a first class concept
signal: Remove zap_other_threads
signal: Stop skipping current in do_group_exit & get_signal
signal: Factor out schedule_group_exit_locked
ptrace: Separate task->ptrace_code out from task->exit_code
signal: Record the exit_code when an exit is scheduled
signal: Set SIGNAL_GROUP_EXIT when all tasks have decided to exit
fs/coredump.c | 25 +++----- fs/exec.c | 14 ++-- fs/proc/array.c | 3 + include/linux/sched.h | 1 + include/linux/sched/jobctl.h | 2 + include/linux/sched/signal.h | 11 +++- kernel/exit.c | 29 +++------ kernel/ptrace.c | 12 ++-- kernel/signal.c | 148 ++++++++++++++++++++++++------------------- 9 files changed, 131 insertions(+), 114 deletions(-)
Eric