Skip to content
piemmmPublic

About

TAIRiX - secure, multi-platform OS written in Rust

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

2,357 Commits

Folders and files

Repository files navigation

TAIRiX /'taΙͺ.rΙͺks/ - An exploration of practical operating system design

A security-first, multi-user, multi-core operating system written in Rust, targeting bare-metal x86_64, AArch64, RISC-V 64, and the browser via wasm32. TAIRiX is not Linux.

This file is intentionally brief. Authoritative documents live alongside the code:

  • AGENTS.md β€” binding engineering charter.
  • PLAN.md β€” staged delivery plan.
  • docs/ β€” long-form architecture, security, and platform book (built with mdBook).

Status

Work in progress. - There is a long way to go before this project is ready for prime time, if it ever will be. Do not expect anything to work yet, Do not use it.

Screenshots

Here are some screenshots of TAIRiX running, showcasing the current state of the project

Desktop Login
Desktop Login Screen
Basic desktop
The desktop
File manager PoC
File manager PoC
Switchboard
Switchboard (taskΒ manager)
Compositor with transparency/blur support
Compositor with transparency/blur support
Boot: encrypted filesystem unlock
Encrypted root unlock
User login
User login
Booted and logged in
Logged in
Supervisor system monitor
Supervisor preboot monitor
The top app
top app
Japanese text support
Japanese text
The sysmon system-monitor app
sysmon app

Feature / architecture support

Per-architecture state of features whose support varies by target. Legend: βœ“ implemented Β· ◐ in progress Β· β–’ planned Β· β€” not applicable. Architecture-neutral subsystems (kernel core, scheduler, IPC, capabilities, filesystems, userland, desktop) are tracked in PLAN.md and, for filesystems, the feature section below.

Feature x86_64 aarch64 riscv64 wasm32
Boot + early console βœ“ βœ“ βœ“ βœ“
Early-boot RAM self-test βœ“ βœ“ βœ“ β€”
Hardware discovery βœ“ ACPI βœ“ FDT βœ“ FDT βœ“ host
MMU / paging βœ“ βœ“ βœ“ β€”
Context switch βœ“ βœ“ βœ“ β€”
Interrupts + timer βœ“ βœ“ βœ“ βœ“
SMP bring-up βœ“ βœ“ βœ“ βœ“
Heterogeneous CPUs (big.LITTLE / hybrid) βœ“ CPUID βœ“ FDT β–’ β€”
Cache-aware scheduling (LLC-aware) β–’ β–’ β–’ β€”
Cross-CPU TLB shootdown βœ“ βœ“ βœ“ β€”
Address-space tagged TLB (PCID / ASID) βœ“ βœ“ βœ“ β€”
Syscall entry βœ“ βœ“ βœ“ βœ“
User-mode execution (ring 3 / EL0 / U-mode) βœ“ βœ“ βœ“ β€”
Threads within a process (thread_create, futex) βœ“ βœ“ βœ“ β€”
Advisory byte-range file locking (fs_lock, description-owned) βœ“ βœ“ βœ“ βœ“
Directory change watches (fs_watch, kernel-paced, live listings) βœ“ βœ“ βœ“ βœ“
Multi-core software compositing (banded composite + blur) βœ“ βœ“ βœ“ β€”
Desktop layer surfaces (CAP_DESKTOP_LAYER, shaped hit test) βœ“ βœ“ βœ“ β€”
C-callable ABI (abi-v1, non-Rust) βœ“ βœ“ βœ“ β€”
Machine power-off / restart (system_power) ◐ restart βœ“ PSCI βœ“ SBI β€”
Side-channel mitigation βœ“ βœ“ βœ“ βœ“
Memory tagging (software UAF floor) βœ“ βœ“ βœ“ βœ“
Kernel CSPRNG seeded at boot (mixed with jitter + boot seed) βœ“ RDSEED/RDRAND βœ“ RNDR βœ“ boot seed β–’ host import
Fatal kernel-fault report (registers, backtrace, stop-the-world) βœ“ βœ“ βœ“ β€”
Fault report with no handler installed (trap table armed at boot entry) βœ“ βœ“ βœ“ β€”
Interactive-stall report (frame budget + user backtrace, debug) βœ“ βœ“ βœ“ β–’
CPU frequency scaling (governor + mechanism driver) β–’ βœ“ firmware β–’ β€”
Live core-frequency measurement (cpu MHz) βœ“ APERF βœ“ PMU βœ“ cycle β€”
Runtime CPU-feature dispatch (CRC-32C accel) βœ“ SSE4.2 βœ“ crc32c β€” baseline β€” baseline
Runtime CPU-feature dispatch (page-zero accel) βœ“ ERMS βœ“ DC ZVA β€” baseline β€” baseline
Runtime CPU-feature dispatch (hash group-scan accel) βœ“ SSE2 βœ“ NEON β€” baseline β€” baseline
Runtime CPU-feature dispatch (compositor blend, blur and row-scan accel) βœ“ SSE2 βœ“ NEON β€” baseline β€” baseline
Crypto backend availability + boot self-test (SHA-256) β–’ soft β–’ soft β€” soft β€” soft
Wide vector state for user space (AVX / AVX-512, SVE, V) βœ“ XSAVE β–’ β–’ β€”
Framebuffer / display βœ“ virtio-gpu βœ“ βœ“ virtio-gpu βœ“
Hardware-assisted scan-out (driver-allocated frames, cursor plane, hosted console) βœ“ virtio-gpu βœ“ virtio-gpu Β· βœ“ Pi 4 HVS βœ“ virtio-gpu β€”
Display switched off when idle (desktop screensaver, login screen) βœ“ virtio-gpu βœ“ virtio-gpu Β· ◐ Pi 4 engine βœ“ virtio-gpu β€”
Desktop paced at the output's own refresh rate βœ“ virtio-gpu βœ“ virtio-gpu Β· βœ“ Pi 4 engine βœ“ virtio-gpu β€”
Full-screen window laid straight from its frame onto the screen (one copy), each present's fate reported βœ“ virtio-gpu βœ“ virtio-gpu Β· βœ“ Pi 4 HVS βœ“ virtio-gpu β€”
Native display engine (mode setting, several outputs, hotplug, HDMI 2.0 scrambling) ◐ virtio-gpu ◐ Pi 4 HVS + HDMI ◐ virtio-gpu β€”
GPU served to programs (gpu-v1 device channel) βœ“ virtio-gpu Venus β–’ β–’ β€”
Shaders a program supplies at run time (WGSL compiled in the sandbox, SPIR-V validated and guarded, held to the software device by gpucheck --shader and its differential corpus) βœ“ virtio-gpu Venus β–’ β–’ β€”
Sandboxed font service (fontd, glyph rendering) βœ“ floor βœ“ store βœ“ floor β–’
Graphical login screen (greeter.app) ◐ ◐ ◐ β–’
Fast user switching (concurrent desktop sessions) β–’ ◐ β–’ β–’
Block storage βœ“ virtio βœ“ virtio + eMMC + USB βœ“ virtio β€”
Networking ◐ virtio ◐ virtio + GENET ◐ virtio β€”
DHCPv4 / DHCPv6 address configuration βœ“ βœ“ βœ“ β€”
DNS name resolution, forward and reverse (A/AAAA/PTR) βœ“ βœ“ βœ“ β€”
Neighbour-cache and routing-table reads (NET_NEIGHBORS, NET_ROUTES, state:net/<iface>/…) βœ“ βœ“ βœ“ β€”
Path tracing (traceroute): hop-limited echo probes and ICMP-error delivery to them βœ“ βœ“ βœ“ β€”
Link-local service browse, resolve, and .local lookup (mDNS / DNS-SD, discoveryd, dns-sd) βœ“ βœ“ βœ“ β€”
Link-local service publication (mDNS / DNS-SD) β–’ β–’ β–’ β€”
Network map (netmap.app): topology, advertised services, hardware makers, passive device and OS inference βœ“ βœ“ βœ“ β€”
Network map active reachability probing (netmap.app: polite ICMP-echo sweep + TCP well-known-port check, posture-configurable, audited) βœ“ βœ“ βœ“ β€”
Network clock synchronisation (timed, sandboxed NTP client) βœ“ βœ“ βœ“ β€”
Machine settings changed by an elevated administrator through one service (settingsd), each change made to the image's defaults as they stand βœ“ βœ“ βœ“ β€”
Civil time zones (lib/tz, the IANA 2026e store held to zic): the desktop's and login screen's clocks local, in the region's date and time formats, chosen in Settings and, for the machine, in Date & Time βœ“ βœ“ βœ“ β–’
Date & Time dialog (datetime.app): the clock set by hand in the machine's zone, skipped and repeated local times answered, the clock chip set with it, network time on and off, the zone's next change stated βœ“ βœ“ βœ“ β–’
Real-time clock (RTC) drivers βœ“ mc146818 βœ“ pl031 + ◐ rpi + ◐ i2c βœ“ goldfish β€”
Temperature sensors and CPU fan control (thermald) β€” ◐ Pi 4 AVS + GPIO header β€” β€”
Accelerator (offload-engine) drivers β–’ βœ“ virtio-crypto β–’ β€”
DMA-engine drivers (cyclic channels, dmaengine-v1) β€” ◐ bcm2835 β€” β€”
Interrupt controllers, chosen by discovery βœ“ IO-APIC, xAPIC, x2APIC βœ“ GICv2, GICv3 + ITS βœ“ PLIC, APLIC + IMSIC β€”
Kernel-owned PCI host (enumeration, resources, interrupts) βœ“ MCFG, MSI-X, MSI βœ“ generic ECAM, INTx, MSI-X and MSI as ITS LPIs βœ“ generic ECAM, INTx, MSI-X and MSI into interrupt files β€”
DMA translation units (IOMMU) ◐ VT-d, AMD-Vi, virtio-iommu βœ“ SMMUv3, virtio-iommu βœ“ RISC-V IOMMU, virtio-iommu β€”
Scatter-gather DMA carves on translated devices (no 32 MiB bound) βœ“ βœ“ βœ“ β€”
Network offloads (RX/TX csum, TSO, mergeable RX, multiqueue RX) βœ“ virtio βœ“ virtio + GENET βœ“ virtio β€”
NIC completion-interrupt masking (no per-frame interrupt storm) βœ“ virtio βœ“ virtio + GENET βœ“ virtio β€”
Receive pre-filter (foreign traffic shed before the stack wakes) βœ“ βœ“ βœ“ β€”
USB host controller (xHCI: enumeration, hubs, hotplug, isochronous streams) βœ“ qemu-xhci βœ“ qemu-xhci + ◐ VL805 βœ“ qemu-xhci β€”
USB optical drives (multimedia units, sessions, removal) β–’ βœ“ qemu-xhci β–’ β€”
Removable-media filesystems served from user space (fsserve-v1: ARXFS, ext2/3/4, FAT32, ADFS, AmigaDOS, ISO 9660, UDF) β–’ βœ“ β–’ β€”
Disk images mounted for their owner (ISO 9660, UDF, FAT32, ADFS, AmigaDOS; double-click or mount; private; ejected, or gone with the session) β–’ βœ“ β–’ β€”
Archives mounted for their owner (zip, tar plain or gzip'd or bzip2'd, gzip, bzip2, Spark, ArcFS, Acorn DFS discs, RISC OS Squash files read and written; RAR read; RISC OS attributes carried) β–’ βœ“ β–’ β€”
Input devices βœ“ virtio + ◐ ps2 βœ“ virtio + ◐ USB HID βœ“ virtio βœ“ host
Touch input (multitouch frames; tap, scroll and pinch gestures) ◐ virtio ◐ virtio + ◐ USB HID ◐ virtio β–’
Audio playback and capture (audiod mixer, one path, no bypass) ◐ virtio + USB + HD Audio ◐ virtio + USB + HD Audio + Pi jack, IΒ²S, HDMI ◐ virtio + USB + HD Audio β–’
Sound files played from the command line (play: AU, WAV, FLAC native or in Ogg, Vorbis, Opus, and MPEG audio, chained Ogg links read in turn, decoded in the sandbox, gapless) βœ“ βœ“ βœ“ β–’
Program library launcher (search by name, purpose and folder; favourites and frequent use kept per account; fully keyboard-driven; animated, still under reduced motion) βœ“ βœ“ βœ“ β–’
Desktop music player (music.app: playlist, gapless, album art and tags read in the sandbox, no filesystem capability) βœ“ βœ“ βœ“ β–’
PC emulator (PCEmulator.app: an 8088–80186 PC/XT-class machine and its 8087 in a capability-empty worker, TAIRiX DOS on its 30 MB disk, the screen scaled sharp, raw keyboard, the mouse followed or captured, sound, a debugger) ◐ ◐ ◐ β–’
TAIRiX Bridge (TAIRiXBridge.app: RISC OS programs on the desktop β€” the ARM processor, a first-party RISC OS kernel, filing systems, BBC BASIC V and VI, the VDU drivers, Draw, the Font Manager and SharedCLibrary in a capability-empty session worker; the shared session on the RISC OS folder in Documents and isolated sessions by provenance; single-tasking screens scaled sharp or smooth, the raw keyboard, the mouse followed or captured; the Wimp to come) ◐ ◐ ◐ β–’
Open Micro Emulator (OpenMicro.app: a library of cycle-exact BBC Micro Model B, Acorn Electron and Commodore 64 machines, the Model B's sideways RAM, the Electron's Plus 1 and the C64's true 1541 drives among them, each in a capability-empty worker; clean-room MOS, Electron OS, BBC BASIC, DFS, Plus 1, KERNAL, BASIC V2, character and 1541 DOS ROMs, and the VIM editor ROM; discs, disks and tapes read and written back and made in each machine's folder in Documents, cartridges and programs; suspend and resume, snapshots, the picture sharp or smooth, sound paced by the device) ◐ ◐ ◐ β–’
Audio follows the seat (held on its frame outside the room, resumed there; recording published as a notice) βœ“ βœ“ βœ“ β–’
Sound device controls kept per room tenant (default, level, mute; devices named by location; audioctl) βœ“ βœ“ βœ“ β–’
Desktop sound: icon-bar volume panel and recording indicator, Settings Sound pane, Switchboard Audio pane; the user's controls remembered and restored per session βœ“ βœ“ βœ“ β–’
Desktop event sounds (soundd: startup, shutdown, login, logout, device arrival and departure, bell, notifications; a machine sound only from the principal that owns it) βœ“ βœ“ βœ“ β–’
A user's own event sounds (Settings' Sound Effects pane: switch, theme and one volume, and each event's sound β€” its theme's, a chosen file, or none β€” in force while their session holds the seat; a file handed over as a descriptor, never a path) βœ“ βœ“ βœ“ β–’
Production kernel binary βœ“ βœ“ β–’ β–’
Bootable image β–’ iso βœ“ rpi.img β–’ β–’

Filesystem feature support

This table compares the ARXFS design as implemented against what each foreign filesystem itself provides β€” the on-disk format and its canonical Linux implementation for ext4/btrfs/XFS/bcachefs β€” not against TAIRiX's interoperability drivers. Legend: βœ“ provided (optional features count) Β· ◐ partial Β· β–’ recognised future stage Β· β€” not provided.

Feature ARXFS ext4 btrfs XFS bcachefs
TAIRiX driver βœ“ native βœ“ read/write, journaled β€” β€” β€”
Long file names (255 bytes) βœ“ βœ“ βœ“ βœ“ βœ“
POSIX owner / mode / ACL βœ“ βœ“ βœ“ βœ“ βœ“
Per-inode capability gate βœ“ β€” β€” β€” β€”
64-bit ns timestamps (pre-1970 / post-2038) βœ“ βœ“ βœ“ βœ“ βœ“
Encryption at rest βœ“ chosen at format βœ“ fscrypt β€” β€” βœ“
Checksummed metadata βœ“ mirrored, keyed when encrypted βœ“ βœ“ βœ“ βœ“
Data checksums βœ“ β€” βœ“ β€” βœ“
Metadata self-heal (redundant copies) βœ“ β€” βœ“ DUP β€” βœ“
Data self-heal (redundancy) β–’ β€” βœ“ RAID β€” βœ“ replicas
Transparent compression βœ“ β€” βœ“ β€” βœ“
Deduplication βœ“ inline β€” βœ“ offline βœ“ offline β€”
Reflink / COW file clones βœ“ β€” βœ“ βœ“ βœ“
Snapshots β€” β€” βœ“ β€” βœ“
Sparse files (holes) βœ“ βœ“ βœ“ βœ“ βœ“
Symbolic links βœ“ target as node data βœ“ fast + slow βœ“ βœ“ βœ“
Hard links βœ“ nlink, freed at zero βœ“ count honoured, authors none βœ“ βœ“ βœ“
A file unlinked while open kept to its last close, reclaimed after a crash βœ“ pending-delete set βœ“ orphan list βœ“ βœ“ βœ“
Crash consistency βœ“ COW + write barrier βœ“ journal βœ“ COW βœ“ journal βœ“ COW
Multi-device / RAID β€” β€” βœ“ β€” βœ“
Online scrub βœ“ verify + metadata repair β€” βœ“ βœ“ βœ“
Offline check / repair βœ“ + rescue βœ“ βœ“ βœ“ βœ“
TRIM / discard βœ“ βœ“ βœ“ βœ“ βœ“
Online grow βœ“ βœ“ βœ“ βœ“ βœ“
Device-health monitoring β†’ triggered scrub βœ“ β€” β€” β€” β€”

TAIRiX ships drivers for ARXFS (native) and for ext2/ext3/ext4, FAT32, ADFS, AmigaDOS (OFS and FFS), ISO 9660 (read-only but for its label: Joliet, Rock Ridge, High Sierra) and UDF 1.02–2.60 as interoperability drivers for foreign volumes; on removable media and in disk images each runs in user space, reaching only its own volume's blocks. Archives mount as volumes through the same path: zip, tar (plain, gzip'd or bzip2'd), Spark, ArcFS, Acorn DFS discs and RISC OS Squash files read and written, RAR read, each member's RISC OS fields carried. A copy onto ARXFS keeps a file's RISC OS filetype, Mac type and creator, Amiga comment and holes.

Security & attack-vector prevention

The attack classes TAIRiX forecloses, and where each defence stands per target. The structural defences (capability authority, process isolation, no ambient root, signed code) are designed in from the kernel up.

Defence (AGENTS.md Β§) Attack vector closed x86_64 aarch64 riscv64 wasm32
Capability authority, no ambient root (Β§4, Β§5.2) Privilege escalation, confused-deputy, setuid abuse βœ“ βœ“ βœ“ βœ“
Hardware process isolation (Β§4) Cross-process memory disclosure / tampering βœ“ MMU βœ“ MMU βœ“ MMU βœ“ host
Session containment (Β§4, Β§5.4) A program left running, unreachable, after whatever started it has died βœ“ βœ“ βœ“ β€”
Per-call capability + input checks, fail-closed (Β§5.4) Unauthorised syscall/IPC/driver access βœ“ βœ“ βœ“ βœ“
Kernel per-CPU identity re-established at every trap entry (Β§4, Β§5.4) A user-writable register steering the kernel onto another CPU's per-CPU state βœ“ GS base βœ“ TPIDR_EL1 βœ“ tp anchor β€”
Per-task floating-point register state (Β§4) One task reading the float registers another task left behind βœ“ SSE per entry, rest at park βœ“ eager βœ“ lazy FS βœ“ host
No kernel register state at first user entry (Β§4) A new process reading kernel pointers or another task's vector residue βœ“ βœ“ βœ“ βœ“ host
W^X + position-independent executables (Β§19.2) Code injection, writable-executable memory βœ“ βœ“ βœ“ βœ“
Kernel mappings W^X, nothing physical mapped as itself: image mapped per section, direct map non-executable, supervisor writes held to read-only (Β§19.2) A NULL or stray kernel pointer landing in live memory; kernel text or read-only data overwritten, or kernel data executed βœ“ βœ“ β–’ β€”
Kernel cannot execute a user page (Β§19.2) Kernel control flow redirected into user-supplied code (ret2usr) βœ“ SMEP if offered Β· β–’ without βœ“ PXN βœ“ ISA β€”
Kernel cannot touch a user page but through its validated copy (Β§19.2) A kernel bug or confused deputy reading or writing user memory in place βœ“ SMAP if offered Β· β–’ without βœ“ PAN if offered Β· β–’ without βœ“ SUM clear β€”
User code cannot read the descriptor-table registers (Β§19.2) Kernel addresses disclosed to user code βœ“ UMIP if offered β€” β€” β€”
User code reaches no hardware clock or counter (Β§19.1) A clock finer than the coarsened one for timing attacks; a task stopping the kernel's preemption timer βœ“ CR4.TSD, CR4.PCE βœ“ CNTKCTL_EL1, PMUSERENR_EL0, AMUSERENR_EL0 βœ“ scounteren βœ“ host
Load-time CFI tag vs syscall-hash (Β§19.2) Control-flow hijacking across ABI/IPC βœ“ βœ“ βœ“ βœ“
Software memory tagging (Β§19.10) Use-after-free (software floor) βœ“ βœ“ βœ“ βœ“
Zero-on-free of secrets (Β§4) Secret recovery from reused memory βœ“ βœ“ βœ“ βœ“
Re-authenticated screen lock (Β§5.4, Β§10) Unattended-session takeover at the keyboard βœ“ βœ“ βœ“ βœ“
Login screen split from the session authority (Β§4, Β§5.2) Compromised login surface reading credentials or starting a session βœ“ βœ“ βœ“ βœ“
Terminal purged at every session boundary (Β§5.4) Next user reading the last session's screen, hidden alternate screen, scrollback, or type-ahead βœ“ βœ“ grids βœ“ βœ“
Window identity from the attested launch record (Β§4, Β§5.4) An application dressing its window as another in the title bar or taskbar βœ“ βœ“ βœ“ βœ“
Per-app data store gated on attested app identity (Β§5.2, Β§16.3) One app of a user reading or rewriting another app's settings β€” not expressible with per-inode uid/mode/ACL βœ“ βœ“ βœ“ βœ“
Cross-app config sharing confined to a published scope (Β§16.3) An app reaching another app's private settings through the sharing channel, or using it to probe which applications an account has run βœ“ βœ“ βœ“ βœ“
Per-app sealed secret store, keyed per (account, app) (Β§16.3) An app reading another app's saved passwords or tokens; a damaged or forged vault being read as "no secrets saved" βœ“ βœ“ βœ“ βœ“
Per-app blob store handed over as a bounded delegation (Β§16.3, Β§24.4) An app reading or overwriting another app's bulk data; one app filling the volume through a store no per-user quota can see βœ“ βœ“ βœ“ βœ“
Per-app scratch the service names, that nothing can open (Β§16.3) An app reading another app's temporary files β€” or its own from an earlier run β€” through a name it could ask for βœ“ βœ“ βœ“ βœ“
Descriptor delegation attenuates by mode and byte extent, never widens (Β§5.2) A delegated descriptor conveying more access than its grantor opened, or growing a file without limit βœ“ βœ“ βœ“ βœ“
Open files bound to the node they opened, never re-resolved by path (Β§5.4) A rename, a planted link or a volume attached in another's place redirecting an open descriptor onto a different file βœ“ βœ“ βœ“ βœ“
Sticky shared directories (Β§5.3) Another user removing, renaming or replacing your entries in a shared drop folder βœ“ βœ“ βœ“ βœ“
Tree tools walk by descriptor, removals and moves held to what they read (Β§5.4) A directory swapped for a link mid-walk steering rm -r, chmod -R, chown -R, cp -r, mv, fstree or the file manager's paste and delete onto another tree βœ“ βœ“ βœ“ βœ“
A new node is born with its creator's mode less its umask; staged copies are owner-only (Β§5.3) A private file's copy, or a tree being moved, readable by others while it is built βœ“ βœ“ βœ“ βœ“
Machine settings written by one service behind CAP_SETTINGS_WRITE, which only an elevated administrator holds (Β§5.2, Β§16.2) Any program of a session β€” or a compromised one β€” rewriting the login policy, the clock's sources or the interfaces' addresses; the network addressing read by an account it does not concern βœ“ βœ“ βœ“ β€”
Capability gate guards an inode's name, not only its content (Β§5.3) Unlinking or renaming a gated directory aside and planting an ungated replacement βœ“ βœ“ βœ“ βœ“
Speculation hardening at every user entry and return: registers scrubbed, buffers cleared, straight-line speculation trapped (Β§19.1) A speculative kernel gadget fed user-chosen registers; MDS / MMIO-stale-data sampling of kernel data; speculation past the return βœ“ βœ“ βœ“ in-order βœ“ host
Branch-free clamp of user-chosen table indices (Β§19.1) Spectre-v1 bounds-check bypass into kernel memory ◐ syscall number ◐ syscall number ◐ syscall number ◐ syscall number
Stack + slab guard pages, hardware fault (Β§4) Stack/heap overrun into adjacent memory βœ“ βœ“ βœ“ β€”
Boot-stack poison guard, read back by the post-mortem (Β§4, Β§19.2) Early-boot stack overrun corrupting .bss silently, before the MMU exists to fault on it βœ“ βœ“ βœ“ β€”
Boot stack's guard read-only once the kernel root is loaded, the overrun named from the faulting address (Β§4) A boot-stack overrun rewriting the page tables beneath it βœ“ βœ“ β–’ β€”
Root encrypted at its owner's choice, swap always encrypted (Β§4, Β§11) Secret/data recovery at rest; on a plaintext root the files, password hashes, sealed app secrets and the signing and log-attestation keys under /System/Security/Keys are protected only by the disk staying in its owner's hands, so whoever reads it offline can forge sealed audit segments βœ“ βœ“ βœ“ β€”
Capability-gated, bounded DMA carves and MMIO grants (Β§4, Β§18.1) A driver reaching device registers or memory it was not granted βœ“ βœ“ βœ“ β€”
DMA translation: a device reaches only its node's domain, revoked at its driver's end (Β§4, plans/IOMMU.md) Malicious-device or compromised-driver DMA into any memory, before or after the unit takes over; a dead driver's device writing freed memory ◐ VT-d, AMD-Vi, virtio-iommu βœ“ SMMUv3, virtio-iommu βœ“ RISC-V IOMMU, virtio-iommu β€”
A GPU served to programs only from a node the platform's DMA translation unit translates, or on a platform declaring none; the kernel refuses its channel otherwise, audited (plans/GPU.md GP11.3) A program's GPU work driving a device no unit confines, on a machine whose unit could confine it βœ“ βœ“ βœ“ β€”
A malformed description of the DMA translation units fails closed: nothing it would have described masters DMA; on x86_64 iommu.malformed=unconfined publishes it untranslated instead, audited and listed by sysinfo dma (plans/IOMMU.md IOM1, IOM14) A firmware table bug leaving every device's DMA unconfined on a machine that has a unit βœ“ DMAR, IVRS, VIOT βœ“ device tree βœ“ device tree β€”
Isolation groups: one owner at a time for devices the fabric cannot keep apart β€” requester-id aliases, ACS (plans/IOMMU.md IOM8) Two drivers whose devices share a bridge's alias or reach each other peer-to-peer below the unit, each reaching the other's memory or device βœ“ VT-d, AMD-Vi, virtio-iommu βœ“ SMMUv3, virtio-iommu βœ“ RISC-V IOMMU, virtio-iommu β€”
Address translation services refused: ATS, PRI and PASID off at the device and translated requests refused at the unit; untrusted external-facing ports (plans/IOMMU.md IOM10) A device presenting a pre-translated address past the unit; a hot-plugged device passing as another or reaching firmware's windows βœ“ VT-d, AMD-Vi βœ“ SMMUv3 βœ“ RISC-V IOMMU β€”
Interrupt remapping, whole-machine or none, x2APIC under extended mode; MSI translation through a GICv3 ITS or into a RISC-V IOMMU's per-device interrupt files (plans/IOMMU.md IOM11, IOM12, IOM18) A device forging an MSI β€” any vector, any CPU, as any requester ◐ VT-d, AMD-Vi βœ“ GICv3 ITS βœ“ RISC-V IOMMU β€”
A removed device's authority revoked at removal (Β§4, Β§18.4) A vanished device's driver, or anything it delegated to, reaching its successor's registers, interrupts, endpoints or buffers βœ“ βœ“ βœ“ β€”
Continuous fuzzing of parsers/ABI/IPC/syscalls (Β§19.6) Input-handling memory-safety bugs βœ“ βœ“ βœ“ βœ“
Keyed hashing of caller-chosen keys, per-boot / per-process (Β§26.2, Β§26.4) Hash-flooding: chosen keys collapsing a hash index onto one bucket to starve a shared lock or a bonded link βœ“ βœ“ βœ“ boot seed ◐ unkeyed
Unpredictable network identifiers, fail-closed without entropy (Β§22, Β§5.4) Off-path TCP injection and SYN-cookie forgery; DNS, NTP, and DHCP spoofing through guessable sequence numbers, ports, ids, and nonces βœ“ βœ“ βœ“ β€”
Hash-chained tamper-evident audit log (Β§19.4) Log tampering, forensic evasion ◐ ◐ ◐ ◐
Signed driver / app manifests (Β§9, Β§16.5) Unsigned / malicious code execution ◐ ◐ ◐ ◐
Supply-chain pinning: SBOM, source-hash, advisory SLA (Β§19.3) Dependency compromise (xz-utils class) ◐ ◐ ◐ ◐
Stack canaries / shadow stack (Β§19.2) Return-address / saved-state overwrite ◐ ◐ ◐ ◐
KPTI / kernel-user address-space isolation (Β§19.1) Meltdown-class kernel-memory disclosure ◐ ◐ ◐ β€”
Minimum-capability parser sandboxes (Β§19.5) Untrusted-input parser compromise (font/image/net/removable filesystems) ◐ ◐ ◐ β–’
Untrusted shader admission: compiled in the sandbox, validated, every dynamic index guarded (Β§5.4, Β§19.5) A hostile shader reading another context's memory or past a resource it was bound, or a malformed module reaching a driver's compiler βœ“ βœ“ βœ“ β–’
Hardware memory tagging β€” MTE / ADI (Β§19.10) Use-after-free (hardware-enforced) β€” β–’ β–’ β€”

Building

Every build signs the kernel's drivers and the system's programs with a secret key set, and the kernel trusts only what that set signed. Create one once per machine; it is kept outside the tree, readable by you alone (tools/signkeys):

cargo xtask keys init   # ~/.local/share/tairix/signing-keys, or $TAIRIX_SIGNING_KEYS
cargo xtask ci          # Full pipeline a PR must pass
cargo xtask test        # Host-side unit and integration tests
cargo xtask docs-check  # rustdoc + mdBook (with link checking)
cargo xtask run --target aarch64-rpi --profile debug
                        # Build the image and boot it in a QEMU window
                        # (display, keyboard/mouse, and a NIC on QEMU's
                        # user-mode network; also --profile installer,
                        # --cpus N, and --ram SIZE such as 512M or 2G)
cargo xtask --help      # All subcommands

The pinned nightly toolchain in rust-toolchain.toml is installed automatically when rustup is present. External tools used by cargo xtask ci are:

cargo install --locked cargo-deny mdbook
npm ci --prefix tests/integration   # with Node.js: the wasm32 harnesses' pinned browser

Its test stage also checks device discovery against the pinned Raspberry Pi firmware, fetching what target/pi-firmware lacks; offline, set TAIRIX_PI_FIRMWARE to a directory staged per tools/mkimage/firmware.lock.

The C-ABI conformance tests (cargo xtask test --qemu) additionally need the pinned clang / ld.lld (tairix_cc::REQUIRED_CLANG_VERSION). Install them once and the build finds them automatically β€” no environment variables β€” from Homebrew (brew install llvm lld) or apt.llvm.org (apt install clang-22 lld-22); see tools/cc/README.md for the search order.

The QEMU tests need QEMU 9.1 or newer on PATH; Ubuntu 24.04 and Debian 12 package older versions. cargo xtask run also needs a window backend (GTK, or Cocoa on macOS) and user-mode networking (slirp). On macOS, Homebrew's qemu has all three. On Linux, tools/ci/install-qemu.sh builds the pinned version from signature-verified source and names any missing build prerequisite; set TAIRIX_CACHE_DIR to build it somewhere other than the CI cache directory.

Licence

Licensed under the GNU General Public License v2.0 or later (GPL-2.0-or-later), with an additional syscall / ABI exception (TAIRiX-syscall-note) that keeps user-space programs which merely use the kernel's system calls or its published syscall / ABI interface definitions from being treated as derived works. See LICENSE for the full text.

TAIRiX is an independent, open-source hobby project. It is not affiliated with, endorsed by, or supported by the Rust Project or the Rust Foundation.

About

TAIRiX - secure, multi-platform OS written in Rust

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages