[PATCH] x86_64: Fix 32bit thread coredumps
When a register set is passed in don't try to fix up the pointer. Noticed by Al Viro Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
d6ece5491a
commit
df818a52fb
@@ -217,8 +217,7 @@ elf_core_copy_task_fpregs(struct task_struct *tsk, struct pt_regs *regs, elf_fpr
|
|||||||
if (!tsk_used_math(tsk))
|
if (!tsk_used_math(tsk))
|
||||||
return 0;
|
return 0;
|
||||||
if (!regs)
|
if (!regs)
|
||||||
regs = (struct pt_regs *)tsk->thread.rsp0;
|
regs = ((struct pt_regs *)tsk->thread.rsp0) - 1;
|
||||||
--regs;
|
|
||||||
if (tsk == current)
|
if (tsk == current)
|
||||||
unlazy_fpu(tsk);
|
unlazy_fpu(tsk);
|
||||||
set_fs(KERNEL_DS);
|
set_fs(KERNEL_DS);
|
||||||
|
Reference in New Issue
Block a user