Page MenuHomeFreeBSD

arm64: Create an L3 table to limit permissions
Needs ReviewPublic

Authored by andrew on Thu, May 2, 4:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 4, 4:48 PM
Unknown Object (File)
Fri, May 3, 3:30 AM
Unknown Object (File)
Fri, May 3, 3:30 AM
Unknown Object (File)
Thu, May 2, 11:02 PM
Subscribers

Details

Reviewers
manu
Group Reviewers
arm64
Summary

When building a 4k page kernel we use 2M blocks to map the kernel
contents. As the .text section may not end on a 2M aligned address
we need to split one block into level 3 pages and pad the end of the
section to an appropriate boundary.

With both these changes we can then mapjust the code as executable.
While here also map it as read-only as none ofthis shouldbe written
to directly.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57546
Build 54434: arc lint + arc unit