From: Roland McGrath Date: Mon, 17 Mar 2008 04:59:11 +0000 (-0700) Subject: x86: ptrace vs -ENOSYS X-Git-Tag: v2.6.26-rc1~1154^2~305 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a31f8dd7ee3b2f5645c220406b1e21f82971f32b;p=pandora-kernel.git x86: ptrace vs -ENOSYS When we're stopped at syscall entry tracing, ptrace can change the %rax value from -ENOSYS to something else. If no system call is actually made because the syscall number (now in orig_rax) is bad, then we now always reset %rax to -ENOSYS again. This changes it to leave the return value alone after entry tracing. That way, the %rax value set by ptrace is there to be seen in user mode (or in syscall exit tracing). This is consistent with what the 32-bit kernel does. Signed-off-by: Roland McGrath Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed