diff options
author | Michael Schmitz <schmitzmic@gmail.com> | 2022-01-27 20:41:56 +1300 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2022-05-09 13:13:58 +0200 |
commit | c862fe70b023b5efeb1f360ff614b270089bd6ce (patch) | |
tree | f5e841b03b69a9cc0be3b22bf33fdb667b1d3779 /arch/m68k/kernel/entry.S | |
parent | a96e4ebf3dedaf110999189939cd0272d32c4296 (diff) | |
download | linux-stable-c862fe70b023b5efeb1f360ff614b270089bd6ce.tar.gz linux-stable-c862fe70b023b5efeb1f360ff614b270089bd6ce.tar.bz2 linux-stable-c862fe70b023b5efeb1f360ff614b270089bd6ce.zip |
m68k: Wire up syscall_trace_enter/leave for m68k
m68k (other than Coldfire) uses syscall_trace for both trace entry
and trace exit. Seccomp support requires separate entry points for
trace entry and exit which are already provided for Coldfire.
Replace syscall_trace by syscall_trace_enter and syscall_trace_leave
in preparation for seccomp support.
No regression seen in testing with strace on ARAnyM.
Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Link: https://lore.kernel.org/r/20220127074158.25888-2-schmitzmic@gmail.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/kernel/entry.S')
-rw-r--r-- | arch/m68k/kernel/entry.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/m68k/kernel/entry.S b/arch/m68k/kernel/entry.S index 9434fca68de5..18f278bdbd21 100644 --- a/arch/m68k/kernel/entry.S +++ b/arch/m68k/kernel/entry.S @@ -181,7 +181,7 @@ do_trace_entry: movel #-ENOSYS,%sp@(PT_OFF_D0)| needed for strace subql #4,%sp SAVE_SWITCH_STACK - jbsr syscall_trace + jbsr syscall_trace_enter RESTORE_SWITCH_STACK addql #4,%sp movel %sp@(PT_OFF_ORIG_D0),%d0 @@ -194,7 +194,7 @@ badsys: do_trace_exit: subql #4,%sp SAVE_SWITCH_STACK - jbsr syscall_trace + jbsr syscall_trace_leave RESTORE_SWITCH_STACK addql #4,%sp jra .Lret_from_exception |