]> git.baikalelectronics.ru Git - kernel.git/commit
x86_64: Fix compat emulation of PTRACE_GET/SET_THREAD_AREA
authorAndi Kleen <ak@suse.de>
Wed, 17 Oct 2007 16:04:34 +0000 (18:04 +0200)
committerThomas Gleixner <tglx@inhelltoy.tec.linutronix.de>
Wed, 17 Oct 2007 18:15:34 +0000 (20:15 +0200)
commit486c376e9f9986120a53de1539dcc1bf64ef1b15
treea88a4a31dc1b5ea55d93835897624dca1c36eb77
parentd4816e96d1a22c6b5949127a3c1f4baeaa29b1f6
x86_64: Fix compat emulation of PTRACE_GET/SET_THREAD_AREA

Since the 64bit kernel has different indexes for this TLS segments
the address needs to be adjusted in the ptrace 32bit emulation.

[ tglx: arch/x86 adaptation ]

Reported-by: Amnon Shiloh
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/ia32/ptrace32.c