The branch stable/12 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=ce8a17c2ba6cb1dba49d25c70b91ff8203ad816c
commit ce8a17c2ba6cb1dba49d25c70b91ff8203ad816c Author: Konstantin Belousov <[email protected]> AuthorDate: 2021-04-09 23:23:54 +0000 Commit: Konstantin Belousov <[email protected]> CommitDate: 2021-05-01 00:38:29 +0000 amd64: clear debug registers on execing 32bit native binary (cherry picked from commit d50adfec9ee73e88e8d365525f1acef2c1db798a) --- sys/amd64/ia32/ia32_signal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/amd64/ia32/ia32_signal.c b/sys/amd64/ia32/ia32_signal.c index 72f35af75b85..4342d6fb807d 100644 --- a/sys/amd64/ia32/ia32_signal.c +++ b/sys/amd64/ia32/ia32_signal.c @@ -971,6 +971,8 @@ ia32_setregs(struct thread *td, struct image_params *imgp, u_long 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 */ _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all To unsubscribe, send any mail to "[email protected]"
