mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
amd64: clear debug registers on execing 32bit native binary
(cherry picked from commit d50adfec9e)
This commit is contained in:
parent
0d51148255
commit
f6b3c49256
1 changed files with 2 additions and 0 deletions
|
|
@ -968,6 +968,8 @@ ia32_setregs(struct thread *td, struct image_params *imgp, uintptr_t stack)
|
|||
regs->tf_gs = _ugssel;
|
||||
regs->tf_flags = TF_HASSEGS;
|
||||
|
||||
x86_clear_dbregs(pcb);
|
||||
|
||||
fpstate_drop(td);
|
||||
|
||||
/* Return via doreti so that we can change to a different %cs */
|
||||
|
|
|
|||
Loading…
Reference in a new issue