Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: ptrace: Switch syscall reporting to tracehook_report_syscall_entry().

Set ret just so __must_check is satisfied but don't use the variable for
anything yet.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+4 -2
+4 -2
arch/mips/kernel/ptrace.c
··· 654 654 */ 655 655 asmlinkage void syscall_trace_enter(struct pt_regs *regs) 656 656 { 657 + long ret = 0; 657 658 user_exit(); 658 659 659 660 /* do the secure computing check first */ 660 661 secure_computing_strict(regs->regs[2]); 661 662 662 - if (test_thread_flag(TIF_SYSCALL_TRACE)) 663 - ptrace_report_syscall(regs); 663 + if (test_thread_flag(TIF_SYSCALL_TRACE) && 664 + tracehook_report_syscall_entry(regs)) 665 + ret = -1; 664 666 665 667 audit_syscall_entry(__syscall_get_arch(), 666 668 regs->regs[2],