提交 bf56d576 编写于 作者: A Al Viro 提交者: Richard Weinberger

um: don't leak floating point state and segment registers on execve()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 42459792
...@@ -39,6 +39,7 @@ void flush_thread(void) ...@@ -39,6 +39,7 @@ void flush_thread(void)
void start_thread(struct pt_regs *regs, unsigned long eip, unsigned long esp) 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_IP(regs) = eip;
PT_REGS_SP(regs) = esp; PT_REGS_SP(regs) = esp;
current->ptrace &= ~PT_DTRACE; current->ptrace &= ~PT_DTRACE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册