m68k: Check syscall_trace_enter() return code
authorMichael Schmitz <schmitzmic@gmail.com>
Thu, 12 Jan 2023 03:55:27 +0000 (16:55 +1300)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 30 Jan 2023 15:40:15 +0000 (16:40 +0100)
commit2ca8a1de4437f21562e57f9ac123914747a8e7a1
tree77a39d4d3d30e6bb302482738321329cd972b290
parent65a1601609e542e2f392213b121146762edfc19d
m68k: Check syscall_trace_enter() return code

Check return code of syscall_trace_enter(), and skip syscall
if -1. Return code will be left at what had been set by
ptrace or seccomp (in regs->d0).

No regression seen in testing with strace on ARAnyM.

Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20230112035529.13521-2-schmitzmic@gmail.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/68000/entry.S
arch/m68k/coldfire/entry.S
arch/m68k/kernel/entry.S