Skip to content

Commit bf56d57

Browse files
Al Virorichardweinberger
authored andcommitted
um: don't leak floating point state and segment registers on execve()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 4245979 commit bf56d57

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/um/kernel/exec.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ void flush_thread(void)
3939

4040
void start_thread(struct pt_regs *regs, unsigned long eip, unsigned long esp)
4141
{
42+
get_safe_registers(regs->regs.gp, regs->regs.fp);
4243
PT_REGS_IP(regs) = eip;
4344
PT_REGS_SP(regs) = esp;
4445
current->ptrace &= ~PT_DTRACE;

0 commit comments

Comments
 (0)