projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6ece54
)
[PATCH] x86_64: Fix 32bit thread coredumps
author
Andi Kleen
<ak@suse.de>
Tue, 13 Dec 2005 06:17:12 +0000
(22:17 -0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Tue, 13 Dec 2005 06:31:16 +0000
(22:31 -0800)
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>
arch/x86_64/ia32/ia32_binfmt.c
patch
|
blob
|
history
diff --git
a/arch/x86_64/ia32/ia32_binfmt.c
b/arch/x86_64/ia32/ia32_binfmt.c
index
830feb2
..
2b760d0
100644
(file)
--- a/
arch/x86_64/ia32/ia32_binfmt.c
+++ b/
arch/x86_64/ia32/ia32_binfmt.c
@@
-217,8
+217,7
@@
elf_core_copy_task_fpregs(struct task_struct *tsk, struct pt_regs *regs, elf_fpr
if (!tsk_used_math(tsk))
return 0;
if (!regs)
- regs = (struct pt_regs *)tsk->thread.rsp0;
- --regs;
+ regs = ((struct pt_regs *)tsk->thread.rsp0) - 1;
if (tsk == current)
unlazy_fpu(tsk);
set_fs(KERNEL_DS);