summaryrefslogtreecommitdiffstats
path: root/fs/verity/Makefile
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2021-12-20 16:29:29 -0600
committerEric W. Biederman <ebiederm@xmission.com>2022-01-08 12:43:58 -0600
commita403df29789ba38796edb97dad9bfb47836b68c0 (patch)
treed17357e0ebdb94abd4e954e6740fbe4a2452dc07 /fs/verity/Makefile
parent4264178416cd52a55a3eccbefb3973866e060280 (diff)
downloadlinux-a403df29789ba38796edb97dad9bfb47836b68c0.tar.gz
linux-a403df29789ba38796edb97dad9bfb47836b68c0.tar.bz2
linux-a403df29789ba38796edb97dad9bfb47836b68c0.zip
ptrace/m68k: Stop open coding ptrace_report_syscall
The generic function ptrace_report_syscall does a little more than syscall_trace on m68k. The function ptrace_report_syscall stops early if PT_TRACED is not set, it sets ptrace_message, and returns the result of fatal_signal_pending. Setting ptrace_message to a passed in value of 0 is effectively not setting ptrace_message, making that additional work a noop. Returning the result of fatal_signal_pending and letting the caller ignore the result becomes a noop in this change. When a process is ptraced, the flag PT_PTRACED is always set in current->ptrace. Testing for PT_PTRACED in ptrace_report_syscall is just an optimization to fail early if the process is not ptraced. Later on in ptrace_notify, ptrace_stop will test current->ptrace under tasklist_lock and skip performing any work if the task is not ptraced. Cc: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lkml.kernel.org/r/20220103213312.9144-8-ebiederm@xmission.com Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/verity/Makefile')
0 files changed, 0 insertions, 0 deletions