diff options
Diffstat (limited to 'arch/sparc64/kernel/ptrace.c')
-rw-r--r-- | arch/sparc64/kernel/ptrace.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c index 80a76e2ad732..5abf596f5964 100644 --- a/arch/sparc64/kernel/ptrace.c +++ b/arch/sparc64/kernel/ptrace.c | |||
@@ -630,9 +630,9 @@ out: | |||
630 | 630 | ||
631 | asmlinkage void syscall_trace(void) | 631 | asmlinkage void syscall_trace(void) |
632 | { | 632 | { |
633 | #ifdef DEBUG_PTRACE | 633 | /* do the secure computing check first */ |
634 | printk("%s [%d]: syscall_trace\n", current->comm, current->pid); | 634 | secure_computing(current_thread_info()->kregs->u_regs[UREG_G1]); |
635 | #endif | 635 | |
636 | if (!test_thread_flag(TIF_SYSCALL_TRACE)) | 636 | if (!test_thread_flag(TIF_SYSCALL_TRACE)) |
637 | return; | 637 | return; |
638 | if (!(current->ptrace & PT_PTRACED)) | 638 | if (!(current->ptrace & PT_PTRACED)) |
@@ -645,12 +645,8 @@ asmlinkage void syscall_trace(void) | |||
645 | * for normal use. strace only continues with a signal if the | 645 | * for normal use. strace only continues with a signal if the |
646 | * stopping signal is not SIGTRAP. -brl | 646 | * stopping signal is not SIGTRAP. -brl |
647 | */ | 647 | */ |
648 | #ifdef DEBUG_PTRACE | ||
649 | printk("%s [%d]: syscall_trace exit= %x\n", current->comm, | ||
650 | current->pid, current->exit_code); | ||
651 | #endif | ||
652 | if (current->exit_code) { | 648 | if (current->exit_code) { |
653 | send_sig (current->exit_code, current, 1); | 649 | send_sig(current->exit_code, current, 1); |
654 | current->exit_code = 0; | 650 | current->exit_code = 0; |
655 | } | 651 | } |
656 | } | 652 | } |