diff options
author | 2007-11-06 15:30:38 -0800 | |
---|---|---|
committer | 2007-11-10 04:30:36 +0100 | |
commit | fd181c72a3c202a3986bcee7551c0838265aec2a (patch) | |
tree | b07b0a662baaace2c5addfca77b537e1267e8d12 /fs/stack.c | |
parent | voyager: use struct instead of PARAM (diff) | |
download | linux-rng-fd181c72a3c202a3986bcee7551c0838265aec2a.tar.xz linux-rng-fd181c72a3c202a3986bcee7551c0838265aec2a.zip |
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>
Diffstat (limited to 'fs/stack.c')
0 files changed, 0 insertions, 0 deletions