Page MenuHomeFreeBSD

aarch64: Clear TLS registers during exec().
ClosedPublic

Authored by jhb on Feb 16 2021, 6:52 PM.
Tags
None
Referenced Files
F131971964: D28711.id.diff
Sun, Oct 12, 3:03 PM
F131971957: D28711.id84028.diff
Sun, Oct 12, 3:03 PM
F131971955: D28711.id85928.diff
Sun, Oct 12, 3:03 PM
F131971953: D28711.id85860.diff
Sun, Oct 12, 3:03 PM
F131910104: D28711.diff
Sun, Oct 12, 3:51 AM
Unknown Object (File)
Mon, Sep 29, 1:08 AM
Unknown Object (File)
Thu, Sep 25, 10:08 PM
Unknown Object (File)
Sep 9 2025, 8:09 PM

Details

Summary

These are not stored in the trapframe so must be cleared explicitly.

This is similar to one of the MIPS changes in 822d2d6ac94f.

Sponsored by: DARPA

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Feb 16 2021, 6:52 PM
sys/arm64/arm64/machdep.c
566–567

Does td == curthread always hold here?

Do we need this for linux_exec_setregs?

sys/arm64/arm64/machdep.c
566–567

Yes.

Do we need this for linux_exec_setregs?

Hmm, possibly.

  • Cleared in linux_exec_setregs().
This revision is now accepted and ready to land.Mar 17 2021, 9:15 AM
This revision was automatically updated to reflect the committed changes.