interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / evidence / m3_el0_isolation_2026-09-24.md

48 lines · 1644 bytes Raw Blame History Rendered
1# Evidence: EL0 capability and fault isolation proven in QEMU
2
3Branch: feat/m3-el0-isolation
4Base: b9c656f (main after PR #103)
5Commit under test: the branch tip including
6feat(kernel): add EL0 capability and fault isolation
7
8## Exact successful invocation
9
10 AIENOS_QEMU_VERBOSE=1 AIENOS_QEMU_TIMEOUT=90 bash scripts/qemu_boot_test.sh
11
12Exit 0, QEMU_BOOT: PASS.
13
14## Environment
15
16- Host: spark-b87b
17- QEMU 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1.18)
18- Image: aienos-handoff.efi, aarch64-unknown-uefi, --features handoff
19
20## Serial proof (raw lines)
21
22 kernel_el: EL1h
23 mmu: enabled
24 threads: ok interleave=ABABABABAB
25 el0: ok write=granted forged=denied fault=contained exit=0
26 kernel: alive
27
28## What the four results demonstrate
29
301. write=granted: the EL0 task presented the authorized console capability
31 handle through SYS_WRITE and the write reached the SPCR console.
322. forged=denied: a forged handle was rejected by the capability table lookup
33 and SYS_WRITE returned SYSCALL_DENIED.
343. fault=contained: an EL0 load from a kernel address raised a synchronous data
35 abort (ESR EC 0x24); the lower-EL trampoline contained it and resumed the
36 task past the faulting instruction without leaving EL1.
374. exit=0: SYS_EXIT returned control cleanly to EL1 at the resume address.
38
39## Layout guard
40
41trap_frame_layout_matches_assembly pins size_of::<TrapFrame>() == 800 and the
42x/_pad/elr_el1/spsr_el1/fpcr/fpsr/q offsets (0/248/256/264/272/280/288) that the
43trampoline hard-codes. A Rust layout change now fails a test instead of
44corrupting exception state.
45
46## Boundary
47
48Emulator only. This says nothing about Machine 1 hardware.