| From | Andi Kleen <> | Subject | [PATCH] [49/50] x86_64: Initialize 64bit registers for a.out executables | Date | Sat, 22 Sep 2007 00:32:49 +0200 (CEST) |
| |
Previously the data from before the exec was kept in there. Zero them instead Signed-off-by: Andi Kleen <ak@suse.de>
--- arch/x86_64/ia32/ia32_aout.c | 2 ++ 1 file changed, 2 insertions(+)
Index: linux/arch/x86_64/ia32/ia32_aout.c =================================================================== --- linux.orig/arch/x86_64/ia32/ia32_aout.c +++ linux/arch/x86_64/ia32/ia32_aout.c @@ -422,6 +422,8 @@ beyond_if: (regs)->eflags = 0x200; (regs)->cs = __USER32_CS; (regs)->ss = __USER32_DS; + regs->r8 = regs->r9 = regs->r10 = regs->r11 = + regs->r12 = regs->r13 = regs->r14 = regs->r15 = 0; set_fs(USER_DS); if (unlikely(current->ptrace & PT_PTRACED)) { if (current->ptrace & PT_TRACE_EXEC) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|