diff options
author | 2022-01-27 12:04:27 -0600 | |
---|---|---|
committer | 2022-03-10 13:37:13 -0600 | |
commit | c145137dc990fd67b52fbc52faae5ba46f168cca (patch) | |
tree | 86b4317a0e5aeaa6ca3e1dfc1d778ee57bf62acc /include/linux/tracehook.h | |
parent | ptrace: Remove arch_syscall_{enter,exit}_tracehook (diff) | |
download | wireguard-linux-c145137dc990fd67b52fbc52faae5ba46f168cca.tar.xz wireguard-linux-c145137dc990fd67b52fbc52faae5ba46f168cca.zip |
ptrace: Remove tracehook_signal_handler
The two line function tracehook_signal_handler is only called from
signal_delivered. Expand it inline in signal_delivered and remove it.
Just to make it easier to understand what is going on.
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/20220309162454.123006-5-ebiederm@xmission.com
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'include/linux/tracehook.h')
-rw-r--r-- | include/linux/tracehook.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/linux/tracehook.h b/include/linux/tracehook.h index 819e82ac09bd..b77bf4917196 100644 --- a/include/linux/tracehook.h +++ b/include/linux/tracehook.h @@ -53,23 +53,6 @@ struct linux_binprm; /** - * tracehook_signal_handler - signal handler setup is complete - * @stepping: nonzero if debugger single-step or block-step in use - * - * Called by the arch code after a signal handler has been set up. - * Register and stack state reflects the user handler about to run. - * Signal mask changes have already been made. - * - * Called without locks, shortly before returning to user mode - * (or handling more signals). - */ -static inline void tracehook_signal_handler(int stepping) -{ - if (stepping) - ptrace_notify(SIGTRAP); -} - -/** * set_notify_resume - cause tracehook_notify_resume() to be called * @task: task that will call tracehook_notify_resume() * |