um: don't leak floating point state and segment registers on execve()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 6 Sep 2012 03:20:33 +0000 (23:20 -0400)
committerRichard Weinberger <richard@nod.at>
Thu, 27 Sep 2012 16:04:38 +0000 (18:04 +0200)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/um/kernel/exec.c

index 4cab0c78684b4035af6a0955a68f86a36f80195c..8c82786da823df2cdf53ad9361b9b950d85018c7 100644 (file)
@@ -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;