[PATCH v1 00/20] signal: refactor some functions

From: Christian Brauner
Date: Mon May 28 2018 - 17:58:07 EST


Hey,

This series refactors a bunch of functions in signal.c to simplify parts
of the code.
The greatest single change is declaring the static do_sigpending()
helper as void which makes it possible to remove a bunch of unnecessary
checks in the syscalls later on.

Thanks!
Christian

Christian Brauner (20):
signal: make force_sigsegv() void
signal: make kill_as_cred_perm() return bool
signal: make may_ptrace_stop() return bool
signal: add copy_pending() helper
signal: flatten do_send_sig_info()
signal: drop else branch in do_signal_stop()
signal: make do_sigpending() void
signal: simplify rt_sigaction()
signal: make kill_ok_by_cred() return bool
signal: make sig_handler_ignored() return bool
signal: make sig_task_ignored() return bool
signal: make sig_ignored() return bool
signal: make has_pending_signals() return bool
signal: make recalc_sigpending_tsk() return bool
signal: make unhandled_signal() return bool
signal: make flush_sigqueue_mask() void
signal: make wants_signal() return bool
signal: make legacy_queue() return bool
signal: make security_task_kill() return bool
signal: make get_signal() return bool

include/linux/sched/signal.h | 2 +-
include/linux/signal.h | 4 +-
kernel/signal.c | 269 ++++++++++++++++++-----------------
3 files changed, 140 insertions(+), 135 deletions(-)

--
2.17.0