Page MenuHomeFreeBSD

arm64: Move the FEAT_PAN check later
ClosedPublic

Authored by andrew on Tue, Sep 16, 4:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 30, 8:19 AM
Unknown Object (File)
Sun, Sep 28, 5:14 PM
Unknown Object (File)
Fri, Sep 26, 12:28 AM
Unknown Object (File)
Fri, Sep 26, 12:28 AM
Unknown Object (File)
Thu, Sep 25, 5:29 AM
Unknown Object (File)
Wed, Sep 24, 7:27 AM
Unknown Object (File)
Sun, Sep 21, 7:13 PM
Unknown Object (File)
Fri, Sep 19, 9:24 PM
Subscribers

Details

Summary

We only need to enable PAN (Privileged access never) before userspace
is running. Before that there are no unprivileged mappings to protect
the kernel from accessing.

While here switch to use get_kernel_reg to handle the case some CPUs
have FEAT_PAN, while some don't.

Sponsored by: Arm Ltd

Diff Detail

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

Event Timeline

Is there an issue enabling it early? I agree that enabling it later is fine, just curious about the motivation for the change.

I'm just trying to keep things out of early boot if they don't need to be there.

This revision is now accepted and ready to land.Thu, Sep 18, 4:17 PM
This revision was automatically updated to reflect the committed changes.