Skip to content

Commit c862fe7

Browse files
Michael Schmitzgeertu
authored andcommitted
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 <[email protected]> Acked-by: "Eric W. Biederman" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent a96e4eb commit c862fe7

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

arch/m68k/kernel/entry.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ do_trace_entry:
181181
movel #-ENOSYS,%sp@(PT_OFF_D0)| needed for strace
182182
subql #4,%sp
183183
SAVE_SWITCH_STACK
184-
jbsr syscall_trace
184+
jbsr syscall_trace_enter
185185
RESTORE_SWITCH_STACK
186186
addql #4,%sp
187187
movel %sp@(PT_OFF_ORIG_D0),%d0
@@ -194,7 +194,7 @@ badsys:
194194
do_trace_exit:
195195
subql #4,%sp
196196
SAVE_SWITCH_STACK
197-
jbsr syscall_trace
197+
jbsr syscall_trace_leave
198198
RESTORE_SWITCH_STACK
199199
addql #4,%sp
200200
jra .Lret_from_exception

arch/m68k/kernel/ptrace.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,6 @@ long arch_ptrace(struct task_struct *child, long request,
270270
return -EIO;
271271
}
272272

273-
asmlinkage void syscall_trace(void)
274-
{
275-
ptrace_report_syscall(0);
276-
}
277-
278-
#if defined(CONFIG_COLDFIRE) || !defined(CONFIG_MMU)
279273
asmlinkage int syscall_trace_enter(void)
280274
{
281275
int ret = 0;
@@ -290,4 +284,3 @@ asmlinkage void syscall_trace_leave(void)
290284
if (test_thread_flag(TIF_SYSCALL_TRACE))
291285
ptrace_report_syscall_exit(task_pt_regs(current), 0);
292286
}
293-
#endif /* CONFIG_COLDFIRE */

0 commit comments

Comments
 (0)