Skip to content

exit: complete synchronize_group_exit

Eric W. Biederman linux-fsdevel lkml ltp oe-lkp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17signal: Make SIGKILL during coredumps an explicit special casekernel/signal.c+6 -36 replies
2/17signal: Compute the process exit_code in get_signalkernel/signal.c+12 -51 reply
3/17coredump: Consolidate the work to allow SIGKILL during coredumpsfs/coredump.c+6 -41 reply
4/17signal: In get_signal call do_exit when it is unnecessary to shoot down threadskernel/exit.c kernel/signal.c+6 -51 reply
5/17signal: Bring down all threads when handling a non-coredump fatal signalkernel/signal.c+7 -11 reply
6/17signal: Add JOBCTL_WILL_EXIT to mark exiting tasksfs/coredump.c include/linux/sched/jobctl.h include/linux/sched/signal.h +1 more+16 -80 replies
7/17signal: Always set JOBCTL_WILL_EXIT for exiting tasksfs/coredump.c kernel/exit.c kernel/signal.c+15 -80 replies
8/17signal: Don't target tasks that are exitingkernel/signal.c+3 -30 replies
9/17signal: Test for process exit or de_thread using task_exit_pendingfs/coredump.c fs/exec.c kernel/signal.c+4 -60 replies
10/17signal: Only set JOBCTL_WILL_EXIT if it is not already setfs/coredump.c kernel/exit.c kernel/signal.c+19 -110 replies
11/17signal: Make individual tasks exiting a first class conceptfs/coredump.c include/linux/sched/signal.h kernel/exit.c +1 more+15 -230 replies
12/17signal: Remove zap_other_threadsfs/exec.c include/linux/sched/signal.h kernel/exit.c +1 more+24 -230 replies
13/17signal: Stop skipping current in do_group_exit & get_signalkernel/exit.c kernel/signal.c+2 -100 replies
14/17signal: Factor out schedule_group_exit_lockedfs/coredump.c include/linux/sched/signal.h kernel/exit.c +1 more+25 -350 replies
15/17ptrace: Separate task->ptrace_code out from task->exit_codefs/proc/array.c include/linux/sched.h kernel/exit.c +2 more+22 -180 replies
16/17signal: Record the exit_code when an exit is scheduledfs/exec.c include/linux/sched/signal.h kernel/exit.c +1 more+11 -90 replies
17/17signal: Set SIGNAL_GROUP_EXIT when all tasks have decided to exitkernel/exit.c kernel/signal.c+7 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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