Page MenuHomeFreeBSD

arm64: Reduce the kernel executable pages
Needs ReviewPublic

Authored by andrew on May 2 2024, 4:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 19, 10:33 AM
Unknown Object (File)
Wed, Jul 10, 10:43 AM
Unknown Object (File)
Sat, Jul 6, 10:34 PM
Unknown Object (File)
Sat, Jul 6, 6:09 PM
Unknown Object (File)
Thu, Jun 27, 10:10 AM
Unknown Object (File)
Jun 20 2024, 11:24 AM
Unknown Object (File)
Jun 16 2024, 6:57 AM
Unknown Object (File)
Jun 16 2024, 12:48 AM
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