Page MenuHomeFreeBSD

arm64: Enable FEAT_E0PD when supported
ClosedPublic

Authored by andrew on Sep 6 2023, 11:25 AM.
Tags
None
Referenced Files
F102465699: D41760.diff
Tue, Nov 12, 4:20 PM
Unknown Object (File)
Thu, Nov 7, 5:30 PM
Unknown Object (File)
Tue, Nov 5, 12:12 AM
Unknown Object (File)
Oct 7 2024, 4:50 AM
Unknown Object (File)
Sep 28 2024, 3:08 AM
Unknown Object (File)
Sep 27 2024, 3:16 AM
Unknown Object (File)
Sep 26 2024, 10:14 PM
Unknown Object (File)
Sep 25 2024, 7:23 PM
Subscribers

Details

Summary

FEAT_E0PD adds two fields to the tcr_el1 special register that, when
set, cause userspace access to either the top or bottom half of the
address spaces without a page walk.

This can be used to stop userspace probing the kernel address space
as the CPU will raise an exception in the same time if the probed
address is in the TLB or not.

Sponsored by: Arm Ltd

Diff Detail

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

Event Timeline

kevans added inline comments.
sys/arm64/arm64/identcpu.c
2238

I note this will only get called on the boot AP since SI_SUB_CPU is pretty early, was that intentional or should it be run after other APs are running regularly @ SI_SUB_SMP?

This revision is now accepted and ready to land.Sep 6 2023, 5:03 PM
This revision was automatically updated to reflect the committed changes.