Page MenuHomeFreeBSD

arm64: Reduce the kernel executable pages
Needs ReviewPublic

Authored by andrew on May 2 2024, 4:10 PM.
Tags
None
Referenced Files
F86119944: D45063.diff
Sat, Jun 15, 6:20 PM
Unknown Object (File)
Tue, Jun 4, 9:22 PM
Unknown Object (File)
May 4 2024, 5:55 PM
Unknown Object (File)
May 3 2024, 5:32 AM
Unknown Object (File)
May 3 2024, 5:32 AM
Unknown Object (File)
May 2 2024, 10:47 PM
Subscribers

Details

Reviewers
manu
kib
markj
alc
Group Reviewers
arm64
Summary

When creating the kernel page tables we create them all executable to
allow the kernel to boot.

We can reduce the number of 2 blocks or l3 pages created as executable
by looking where the end of the .text section is and only marking
memory up to this as executable (rounded up to the block/page size).

Sponsored by: Arm Ltd

Diff Detail

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