]> xenbits.xensource.com Git - xenclient/kernel.git/commit
x86/64: Fix syscall return code when ptrace or audit is active
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 30 Jun 2008 15:14:04 +0000 (16:14 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 30 Jun 2008 15:14:04 +0000 (16:14 +0100)
commite568b272dfcb27c00667e7f22895866ab2ec1ae7
tree4ff4a4c820a34a5977ceed428f17216800a58328
parent564690eca8cb55f7c720850a73e237deff6dc8f4
x86/64: Fix syscall return code when ptrace or audit is active

Fix the return value from the 64-bit kernel when you call with a bad
system call number with tracing enabled (for either ptrace or audit).
What should happen is that the user process gets a -ENOSYS return
call from the syscall; what actually happens (only in the 64-bit
kernel) is that you get back the system call number. The 32-bit
kernel does not suffer from this bug.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
arch/x86_64/kernel/entry-xen.S