mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
amd64: clear debug registers on execing 32bit Linux binary
(cherry picked from commit 94172affa4)
This commit is contained in:
parent
88d6f049c1
commit
0d51148255
1 changed files with 2 additions and 0 deletions
|
|
@ -722,6 +722,8 @@ linux_exec_setregs(struct thread *td, struct image_params *imgp,
|
|||
regs->tf_cs = _ucode32sel;
|
||||
regs->tf_rbx = (register_t)imgp->ps_strings;
|
||||
|
||||
x86_clear_dbregs(pcb);
|
||||
|
||||
fpstate_drop(td);
|
||||
|
||||
/* Do full restore on return so that we can change to a different %cs */
|
||||
|
|
|
|||
Loading…
Reference in a new issue