Page MenuHomeFreeBSD

arm64: Mask out the PAC ID fields when disabled
ClosedPublic

Authored by andrew on May 28 2025, 1:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 17, 7:29 AM
Unknown Object (File)
Sep 11 2025, 6:06 AM
Unknown Object (File)
Sep 9 2025, 12:49 PM
Unknown Object (File)
Sep 9 2025, 9:45 AM
Unknown Object (File)
Sep 8 2025, 7:44 AM
Unknown Object (File)
Sep 1 2025, 2:24 PM
Unknown Object (File)
Aug 30 2025, 7:34 PM
Unknown Object (File)
Aug 30 2025, 3:28 PM
Subscribers

Details

Summary

When we disable PAC we need to mask out the ID registers for userspace.
Call update_special_reg to mask them out so userspace gets a correct
view of the registers and hwcaps.

Sponsored by: Arm Ltd

Diff Detail

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

Event Timeline

sys/arm64/arm64/ptrauth.c
107–108

{} for single statement bodies are fine but if we're going to add them for this case we should for the one above too

This revision was not accepted when it landed; it landed in state Needs Review.Jun 2 2025, 10:42 AM
This revision was automatically updated to reflect the committed changes.