From: Al Viro Date: Thu, 6 Sep 2012 03:20:33 +0000 (-0400) Subject: um: don't leak floating point state and segment registers on execve() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=344569aef36970f3b08cbd45cd19a941edc8066f;p=openwrt%2Fstaging%2Fblogic.git um: don't leak floating point state and segment registers on execve() Signed-off-by: Al Viro --- diff --git a/arch/um/kernel/exec.c b/arch/um/kernel/exec.c index 4cab0c78684b..8c82786da823 100644 --- a/arch/um/kernel/exec.c +++ b/arch/um/kernel/exec.c @@ -39,6 +39,7 @@ void flush_thread(void) void start_thread(struct pt_regs *regs, unsigned long eip, unsigned long esp) { + get_safe_registers(regs->regs.gp, regs->regs.fp); PT_REGS_IP(regs) = eip; PT_REGS_SP(regs) = esp; current->ptrace &= ~PT_DTRACE;