lkml.org 
[lkml]   [2014]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] x86_32, entry: use syscall_badsys from syscall_trace_entry
Bring syscall_trace_entry in line with the other syscall_* error
handling code and use syscall_badsys for setting -ENOSYS.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
---
arch/x86/kernel/entry_32.S | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S
index 0d0c9d4..793f6c9 100644
--- a/arch/x86/kernel/entry_32.S
+++ b/arch/x86/kernel/entry_32.S
@@ -644,13 +644,12 @@ END(work_pending)
# perform syscall exit tracing
ALIGN
syscall_trace_entry:
- movl $-ENOSYS,PT_EAX(%esp)
movl %esp, %eax
call syscall_trace_enter
/* What it returned is what we'll actually use. */
cmpl $(NR_syscalls), %eax
- jnae syscall_call
- jmp syscall_exit
+ jae syscall_badsys
+ jmp syscall_call
END(syscall_trace_entry)

# perform syscall exit tracing

\
 
 \ /
  Last update: 2014-07-21 00:41    [W:0.052 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site