Roland McGrath fd181c72a3 x86_64: ia32 ptrace THREAD_AREA fix
The addr argument to PTRACE_GET_THREAD_AREA and PTRACE_SET_THREAD_AREA is
not a magic constant.  It's derived from the segment register values being
used, which are computed originally from the index used with set_thread_area.
The value does not need to match what a native i386 kernel would accept.
It needs to match the segment selectors that can actually be in use in this
32-bit process.  The 64-bit ptrace support for PTRACE_GET_THREAD_AREA
(normally used only on 32-bit processes) is correct, but the 32-bit emulation
of ptrace is broken.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-11-10 04:30:36 +01:00
..
2007-10-23 12:31:05 +02:00
2007-11-08 23:35:46 +00:00
2007-10-23 11:20:26 +02:00
2007-10-20 01:34:40 +02:00
2007-11-09 13:09:40 -08:00
2007-10-20 01:14:39 +02:00
2007-10-24 08:55:40 +02:00
2007-10-23 09:49:31 +02:00
2007-11-08 17:01:42 +09:00
2007-11-05 12:18:17 +09:00
2007-11-06 21:23:11 -08:00
2007-11-06 13:57:03 -08:00
2007-10-20 01:24:05 +02:00
2007-11-10 04:30:36 +01:00