Re: [PATCH] x86-64 only: ia32entry.S reg changes dropped duringdebugging

From: Andi Kleen
Date: Wed May 26 2004 - 18:35:14 EST


On Wed, 26 May 2004 18:50:11 -0400 (EDT)
Chris Gottbrath <chrisg@xxxxxxxxx> wrote:

>
> Andi,
>
> We develop a debugger for linux x86-64 called TotalView. We have
> recently tracked down a problem to the fact that some register changes
> made by the debugger in the target are getting discarded. This is only
> happening with the 2.4.x kernels on x86-64. It appears that the
> bug may have been fixed as a side effect of some other change in 2.6.x.
>
> The scenario is that the debugger uses ptrace(PTRACE_SYSCALL,) and
> changes some registers in the process while it is stopped in a
> system call. We are finding that the system call entry code discards
> changes to R15, R14, R13, R12, RBP, and RBX.
>
> The following patch is against arch/x86_64/ia32/ia32entry.S in 2.4.26.

Looks good. Thanks.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/