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)
Wed, Nov 6, 3:09 PM
Unknown Object (File)
Sep 28 2024, 7:19 AM
Unknown Object (File)
Sep 25 2024, 1:42 PM
Unknown Object (File)
Sep 25 2024, 2:56 AM
Unknown Object (File)
Sep 22 2024, 1:10 PM
Unknown Object (File)
Sep 22 2024, 2:57 AM
Unknown Object (File)
Sep 21 2024, 2:06 PM
Unknown Object (File)
Sep 17 2024, 9:29 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