feat: kernel W^X (per-section perms, firmware unmapped, stack guard, boot check), halt on kernel faults, region W^X across processes

This commit is contained in:
2026-10-27 00:13:00 +01:00
parent bafc18a5f8
commit 55758ae5b2
12 changed files with 285 additions and 17 deletions

View File

@@ -31,6 +31,9 @@ pub enum KernelError {
/// The target virtual range already holds a mapping.
AddressInUse,
InvalidRegion,
/// The region is mapped executable somewhere and the request would map
/// it writable, or the other way round (W^X across processes).
WritableAndExecutable,
/// The object a capability would refer to no longer exists.
NoSuchObject,
/// The capability names the wrong kind of object for this operation.