]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86: ia32 ptrace vs -ENOSYS
authorRoland McGrath <roland@redhat.com>
Mon, 17 Mar 2008 04:57:41 +0000 (21:57 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:13 +0000 (17:41 +0200)
commit8ab32bb89b5b9bf06147c31947eba65f0f21c3c0
tree2c74e3873400b613b5d717370177cfa4e1d54836
parentede1389f8ab4f3a1343e567133fa9720a054a3aa
x86: ia32 ptrace vs -ENOSYS

When we're stopped at syscall entry tracing, ptrace can change the %eax
value from -ENOSYS to something else.  If no system call is actually made
because the syscall number (now in orig_eax) is bad, then the %eax value
set by ptrace should be returned to the user.  But, instead it gets reset
to -ENOSYS again.  This is a regression from the native 32-bit kernel.

This change fixes it by leaving the return value alone after entry tracing.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/ia32/ia32entry.S