Skip to content

signal: Cleanup of the signal->flags

Eric W. Biederman linux-api linux-arch linux-m68k lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8signal: Make SIGKILL during coredumps an explicit special casefs/coredump.c kernel/signal.c+11 -425 replies
2/8signal: Drop signals received after a fatal signal has been processedfs/coredump.c kernel/signal.c+3 -40 replies
3/8signal: Have the oom killer detect coredumps using signal->core_statemm/oom_kill.c+1 -10 replies
4/8signal: During coredumps set SIGNAL_GROUP_EXIT in zap_processfs/coredump.c+3 -30 replies
5/8signal: Remove SIGNAL_GROUP_COREDUMPfs/coredump.c include/linux/sched/signal.h kernel/signal.c+3 -50 replies
6/8coredump: Stop setting signal->group_exit_taskfs/coredump.c+0 -20 replies
7/8signal: Rename group_exit_task group_exec_taskfs/exec.c include/linux/sched/signal.h kernel/exit.c+10 -140 replies
8/8signal: Remove the helper signal_group_exitfs/coredump.c fs/exec.c include/linux/sched/signal.h +2 more+15 -150 replies

Reviews trailers per patch

None of the 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChristoph HellwigGeert UytterhoevenKees CookOleg Nesterov
SeriesR-b A-b R-b R-b R-b R-b R-b R-b R-b R-b R-b R-b R-b R-b R-b R-b R-b A-b A-b
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/8] signal: Cleanup of the signal->flags

The special case of SIGKILL during coredumps is very fragile today and while reading through the code I realized I have almost broken it twice. So this simplifies that special case, removes SIGNAL_GROUP_COREDUMP which has become unnecessary with the addition of signal->core_state, and this removes the helper signal_group_exit which is misnamed and is not used properly.

If you squint very hard there might be a user space visible difference in behavior somewhere but I don't think there is one in practice.

These patches are on top of:
https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git/ signal-for-v5.17

After these patches have been reviewed it is my plan to apply them to my signal-for-v5.17 branch.

Eric W. Biederman (8):
signal: Make SIGKILL during coredumps an explicit special case
signal: Drop signals received after a fatal signal has been processed
signal: Have the oom killer detect coredumps using signal->core_state
signal: During coredumps set SIGNAL_GROUP_EXIT in zap_process
signal: Remove SIGNAL_GROUP_COREDUMP
coredump: Stop setting signal->group_exit_task
signal: Rename group_exit_task group_exec_task
signal: Remove the helper signal_group_exit

 fs/coredump.c                | 20 +++++++++-----------
 fs/exec.c                    | 10 +++++-----
 include/linux/sched/signal.h | 18 +++---------------
 kernel/exit.c                | 12 ++++++++----
 kernel/signal.c              | 24 ++++++++++++++++--------
 mm/oom_kill.c                |  2 +-
 6 files changed, 42 insertions(+), 44 deletions(-)

Eric