Skip to content

Status · 0.19.0

What works, and where it was tested

“Validated in QEMU” means the automated suite boots the system and requires it on every run. “Validated on hardware” means it ran on the reference laptop and the evidence is recorded in the repository.

Validated on hardware

Running on a 2012 laptop

UEFI boot with AriBoot

Slot selection, GOP at 800×600, kernel and initrd verified.

Kernel bring-up

Memory, ACPI, APIC, 17 PCI functions, init and its self-tests.

Shell on the PS/2 keyboard

The Spanish layout as Linux types it, with dead accents and UTF-8, full line editing and history (ADR 0076).

USB stick as system disk

xHCI with MSI, bulk-only storage rebuilt to the specifications after incident 0001, AriFS on top.

Wired networking

Realtek r8169 driver: DHCP, ping to the router in 1 ms and DNS.

SSH and HTTPS

A remote shell over SSH at 1.15 MB/s, where launched programs print to the session and the host key survives updates, and HTTPS to real sites from the laptop.

Network updates

Updates from a signed index, installed and booted without the USB stick; since 0.14, straight from the project’s GitHub releases over HTTPS, and development builds through their own channel.

USB 2.0 (EHCI)

Both EHCI controllers of the laptop ready at every boot (ADR 0031).

The desktop

The desktop stick on the laptop with its PS/2 keyboard and touchpad, at the panel’s own 1366×768 (ADR 0079); trying it there brought the accents, the close box and resizing by the edges (ADR 0075–0077, 0085).

The HD 4000 GPU

The kernel drives its engine, with its clock and a heat brake; the blitter fills and copies, and hand-assembled kernels run on its EUs (ADR 0083, 0086).

Measured on the laptop

218 000 to 237 000 IPC messages a second between two threads, 17 to 23 µs per request to a service and 260 ns per empty system call.

Kernel seed

The laptop has no rdrand: the loader carries a seed across boots, and diag says what seeded the generator (ADR 0039, 0043).

Power-off

ACPI power-off from the shell (FADT, \_S5_).

Validated in QEMU

Covered by the scenario suite

Boot, memory and exceptions

UEFI boot, page tables, heap, faults with diagnostics.

Threads, scheduler and SMP

Preemptive scheduling, IPIs, TLB shootdown and affinity, on 1 and 4 CPUs.

Processes and IPC

Ring 3, syscalls, handles with rights, revocation and IPC with handle transfer.

init and the sandbox

Device manager, capability broker and per-manifest sandbox.

Ring 3 drivers

virtio-blk, virtio-net, virtio-input, xHCI and USB HID.

AriFS v2

Copy-on-write replace up to 16 MiB, a table in two copies, delete and rename; private directories, CRC32 and flush, with power cuts injected (ADR 0072).

The arish shell

Serial console, PS/2 and USB or virtio keyboards through the console bridge.

WebAssembly

wasmi with the aricode-wasm v2 profile, 15 to 35 times faster than the old interpreter, a manifest per module and fuel that counts work (ADR 0055, 0071).

Cryptography and A/B

RustCrypto and dalek where they measured better, the kernel generator, signed images and rollback (ADR 0066).

IOMMU

Intel VT-d with one domain per driver.

DMA buffer lifetime

A mapped buffer stays alive until it is unmapped; a dead driver’s device stops its DMA before its memory is freed (ADR 0038).

Devices checked, not trusted

The addresses a PCI device reports are checked against its BARs and the kernel’s memory before anything is mapped (ADR 0051).

External applications

Signed packages of up to 8 MiB installed and updated in AriFS, also across power cuts, and profiles a signed index can name (ADR 0074).

Measurements

bench with percentiles, idle time per CPU and the diag report.

SSH server

SSH-2 with mlkem768x25519 or curve25519, Ed25519, chacha20-poly1305 and key re-exchange, public-key login only, tested against OpenSSH (ADR 0025, 0068).

HTTPS client

rustls and rustls-webpki: TLS 1.3 and the safe subset of 1.2, Mozilla’s 112 roots, no common-name matching or wildcards over public suffixes, and distrusted keys refused (ADR 0054, 0058, 0062, 0067).

Network updates

Signed system images of any size streamed into the UPDATE partition and verified there, from a signed index, with redirects, deadlines, a development channel and damaged state failing closed (ADR 0027, 0029, 0045, 0048, 0060, 0064).

Peer-closed IPC

A client learns at once that its server died instead of waiting for its timeout (ADR 0030).

One wait for IPC, IRQ and deadline

Services wait on messages, interrupts and a deadline at once: a network query in 70 µs instead of 10 ms (ADR 0044).

Hardened TCP

RFC 6298 timeouts, NewReno, SACK and RFC 5961’s checks against blind resets; sequence numbers and ports from a per-boot secret; SYN floods capped (ADR 0034, 0035, 0070).

SIMD in user programs

The FPU and SSE state is saved on every switch, so programs can use SSE and AVX (ADR 0065).

Per-client sessions

The network and file services reclaim the sockets and descriptors of a client that dies (ADR 0036, 0037).

Authority on every path

A request from a session that is gone is refused, each window belongs to the client that made it, and no application gets the raw keyboard (ADR 0050, 0052, 0053).

Boot self-tests on request

A normal boot writes no test data to the disk and sends no test packets (ADR 0032).

USB plug and play

Keyboards and mice plugged in or out of the xHCI’s root ports while the system runs, with every key and button released when a device goes (ADR 0087).

Threads and big programs

Several threads in a process, and memory beyond contiguous DMA buffers, by default up to half the usable RAM (ADR 0082, 0084).

Failure protocol

Strict mode halts at the first unexpected failure; every anomaly is a fault event in diag (ADR 0028).

Prototype

Working, still basic

Desktop session

An optional profile: the compositor with window frames, a bar, a dock and menus, and a launcher, a terminal, an editor, a file manager and settings built on its own toolkit (ADR 0046, 0074, 0078).

Remote screen

screenshot gives the owner the screen as a QOI image, also over SSH; applications cannot ask for it, and the screen says when a copy was taken.

3D on the CPU

A software renderer that draws in bands on every processor, measured by bench3d, and Pista, a kart game drawn by the CPU; neither is published as an application.

Open

Known open items in 0.19

Signed driver packages

Three trust levels, designed but not built yet (ADR 0073).

Desktop limits

A PS/2 pointer that resets itself comes back only at the next boot, and a program hung for good keeps its process until the desktop ends.

Incident 0025

An SSH command that once came back empty; it was never reproduced.

Decision awaiting the owner

Agents outside the trusted base (ADR 0041), still a proposal.

EHCI on hardware

Hubs and split transactions can only be verified on real machines.

Driver death on hardware

Stopping a dead driver’s device has only run in QEMU: no driver has died on the laptop.

The Tiger Lake Lenovo

The new power-off has not been tried there yet, and the cause of its xHCI’s DMA fault waits for the next run (incidents 0064, 0065).

USB hubs and late sticks

External hubs on the xHCI, and a USB stick plugged in after boot, are not supported yet.

IPC fast path

The kernel has no fast path for IPC yet.

Not yet

Known gaps

Power management

Sleep states and battery on the laptop.

Wi-Fi

Out of scope for now: it needs an 802.11 stack and WPA2.

Secure Boot and ASLR

Planned for later phases.

Other architectures

aarch64 and riscv64, once generic and architecture code are fully separated.

Linux compatibility

A personality server for static ELF binaries in user space.