The demonstration of each property
This document gives, for each of the 25 properties of Kernel properties, what the machine test shows, the picture, and what no test shows. A row changes when the system changes what the test shows.
A property is a promise of the system. A promise counts only when a test makes the machine keep it: the machine test (modustool test) starts real machines under QEMU, runs processes, and waits for the lines that prove each case. This table is the source of the page "Status" of the site: each row gives the promise, what the tests show of it, the pictures that the tests take, and what is not shown yet. Developer tools: The parts of the machine test, names the machines.
How to read a state
- Shown: the machine test does the thing for real and checks the result. A picture exists.
- Shown in part: the test shows the core of the property. A named part has no test.
- Not shown: the system does not have the thing, or no test runs it.
The table
| # | Property | State | What the test shows | Picture | What no test shows |
|---|---|---|---|---|---|
| 1 | Small kernel with a small, counted interface | Shown | The kernel has 35 operations (op.Operation, 1 to 35): the first target of property 1 was 32, the control of a thread (Thread_Control) added one, a guest (Guest_Run) one more, and the copy of the own log ring of a process (Log_Read) one more. Each other new capability is a command or an argument of an existing operation: the fault ring, the kernel events and the control of a thread add no other operation, and a guest is a process that Memory_Map gives its memory. An unknown operation gives an error record that says so. rights asks for nine operations and reads each answer | rights, errors | No check counts the operations against a number in a document: a new operation fails no test |
| 2 | Sandbox by default | Shown | probe in a call host asks for the machine with three handle numbers: the kernel refuses each one. rights: five refusals with No_Right. fault stops alone. The kernel never returns to a process state that the processor would refuse: an instruction address after the last page of the user half, a stack address that is not canonical, the flag nested task or the trap flag at a syscall: the process stops with its report, and the machine goes on (test return_fault). Thread_Control refuses a frame that a process cannot hold (the code selector of the kernel, the I/O privilege level, interrupts off) and a hostile extended state | isolated, rights, return_fault | A process that tries each of the 27 operations with no grant |
| 3 | No "everything is a file" | Shown in part | Each resource has its own handle kind: a handle of another kind is refused with the kind that the call needs | errors | The property is an absence. No test can show that no file interface exists |
| 4 | Non-blocking command buffers | Shown | rings: six processes pass records through six rings. flow: the records of one second and the kernel entries for one million records | rings, flow | A full ring under a writer that never waits |
| 5 | Kernel off the data path | Shown in part | flow and time_page: 0 kernel entries for one million reads of the time page. net: 0.22 kernel entries for each datagram. TCP is a library in server and fetch, and QUIC a library in quic_echo and remote: 1 MiB goes each way with loss, reorder and duplicates against the peer of the tool; server also serves the TCP of libslirp, and quic_echo sends back a line of the QUIC client of OpenSSL (test tcp, test quic, test quic-real) | flow, clock, network, server, quic_echo | The network service copies each UDP datagram and each TCP segment one time, and computes no checksum of them (the line "As built" of the property; The network: TCP as a library in the process: The path of a datagram and of a segment) |
| 6 | One communication mechanism: shared memory | Shown | Every service call of the test is a ring and a call region: connect("paint"), tally, manual, storage, monitor, remote | services, remote | — |
| 7 | No drivers in the kernel | Shown | The block service, the frame service, the input service and the sound service are processes. disk measures the block service; net the frame service; tone plays a tone through the sound service at a time that it names, and the tool finds the tone at its frame in the sound output of the machine (test sound) | disk, network | Fixed hardware only: virtio under QEMU. No real machine. The IOMMU of Intel or of AMD holds a device in the memory and in the message interrupts of its service on the machines of test iommu and test iommu_amd only (iommu_device) |
| 8 | No global, mutable, shared file system | Shown in part | storage.size("note") from remote is refused: the caller has no grant for a private store. A tree is shared by a handle, not by a path: hierarchy shares one tree read-only; the share lists that tree only, cannot write or remove, refuses a name of another store, and each of its handles gives Gone after the unshare | storage | An absence, as property 3 |
| 9 | One private store per process | Shown | Eight machines with one data disk: the test process persistence_check keeps its text across restarts, a damaged block is found, a crash loses nothing that was flushed. A store limit is an error record. Versions: the storage service keeps the state before each commit; notes, the notes of the principal, commits a change when the keys pause, steps back through the versions of a note and restores one, and the host reads storage.versions, storage.compare, storage.restore and storage.clone. Loss of power: the tool serves the data disk itself, ends QEMU at a seeded moment, and checks many images of the disk with the writes after the last flush lost or torn: each opens with the objects of before or after the commit in flight, never a mix (test power). A dropped write: the disk answers Ok to the write of the block of data of a commit and does not keep it; the read back of that commit refuses it before its root, and the object reads its previous version on the same machine; for a write that a cache of the disk hides from the read back, a loss of power makes the open refuse that commit and use the root before it (test power). Trees: hierarchy makes 100 100 objects in 1100 trees, lists them in pages, renames a tree of 1000 objects in one commit, and finds them all after a remount (test hierarchy). Ranges: ranges writes 3 blocks of a sparse object of 8 GiB and commits 13 blocks; 1000 writes at scrambled offsets change only the nodes of their path; an old version keeps its bytes (test ranges) | persistence_check, persistence_check_crash, persistence_check_damaged, notes, notes_versions, storage, storage_versions, power_loss | A dropped write that the device hides behind its cache at the read back: a later commit carries it, both roots then name the wrong block, and the object reads Damaged (A dropped write in the repository) |
| 10 | One code module | Shown | tally is one module in three roles: a process, a service, a library in the console. load("math") then a direct call. sample is a library, a call host and a service with one description; the interface package as a module gives the same draw table as the package compiled in | roles, modules, tables, interface_module | — |
| 11 | Reproducible system, identity by hash | Shown | Each full check builds two times and compares each module, its LLVM IR and its object, and the boot program. modustool repeat all 100: 1 distinct result for each output of 61 modules and of the boot program, under a host load of 9.5 to 62. A replacement of an import by its hash. remote refuses a call that names another module hash | replacement, imports | Proved for one compiler (Odin dev-2026-05 with the patch of the flake) on one host. The rare differing builds came from a second thread of the stock compiler |
| 12 | Module metadata in flat tables | Shown | manual: 45 modules and 65 exports listed, who imports calendar, the console combines the tables. modustool call <key> "manual.modules()": 53 rows on one QUIC stream | module_information, manual | — |
| 13 | Data-oriented kernel internals | Shown in part | locks: the counts of each lock kind, one run queue for each processor. scheduler: one pick reads the first 64 bytes of each thread record, 43 to 86 ns | locks, scheduler | No test measures cache misses. The claim "one line for each thread in a pick" is by the layout assertion, not by a counter of the processor |
| 14 | Memory is supplied by the caller | Shown in part | budget: memory objects until No_Budget, then all pages back. The call region of an isolated call is memory of the caller. The page tables of a process are paid by its budget and come back: 64 mappings of one page take 3 pages of tables and keep 0 after the unmap; a reservation, a large page, and 1000 rounds of a map and an unmap beside a page that another thread uses keep 0 too. A process grows its own stack: its fault handler commits each of 64 pages at its first touch (test fault_ring) | budget, limits, address_space | The libraries (src/library/modus/*) are not checked for an allocation; the rule holds by reading |
| 15 | Isolation inside a process | Shown | isolate("probe"): the module runs in a call host; peek(0) stops the host and the console continues, with the stack trace; Escape ends a call that never returns. The stack trace names each frame by its procedure and its source line, from the debug image: peek + 0x4 in probe (src/modules/tests/probe/probe.odin:18); errors and inspect name the frames of fault (fault::three + 0x... in fault (src/modules/demonstrations/fault/main.odin:15)), and the tool checks the names against the debug object of the module | isolated, errors, inspect_stopped | — |
| 16 | Removed concepts | Shown in part | No standard input or output: flood writes to a terminal that the root service gave it. No global last error: an error is a record in the answer. No signals: a fault goes as a record to the fault ring of a handler thread of the same process, which repairs it or stops the process (test fault_ring, 36 cases): a page that is not committed, a write to a read-only page, a divide error, an invalid opcode, a breakpoint, a privileged instruction, int1, two int1 in a row, and the trap flag; a full ring, a handler that faults or ends, an answer with a wrong serial or from another process, and 10 000 answers at once | terminal, errors, fault_ring | An absence for the rest of the list (fork, environment) |
| 17 | Trusted boot | Shown in part | The boot program verifies the description signature and the hash of the kernel and of each file of the boot image before the kernel starts; the root service checks the boot image again. One byte of console changed, or one bit of the signature changed: the boot stops with the file and both hashes on the boot display, and the kernel does not start. A changed kernel, a boot image with no description and a stated hash that differs are refused too. With a software TPM, PCR 11 holds the value that the tool computes from the system description, and another system gives another value. With Secure Boot on, the signed boot program starts and says that the firmware verified it; a signed boot program with one byte changed, and an unsigned one, never start. After a newer system started, the TPM floors make the boot program refuse the older system, and after a boot program of a newer key started, the boot program of the older key (test trusted_boot) | boot_measured, boot_secure_boot, boot_fails_changed_module, boot_fails_changed_kernel, boot_fails_wrong_signature, boot_fails | The test keys only: no real machine with keys of its own. No remote attestation; PCR 4 is read by nothing |
| 18 | One 2D interface: the draw table | Shown in part | Each window and the compositor draw through the draw table and the drawing module, on the processor; a full frame takes 1 to 3 ms | desktop | The record of version 17 has the fields of its kind only, primitives only, one text kind, one gradient along any line, colors with alpha, edges inside a pixel, paths filled and stroked with antialiased edges, and a clip that is pushed and popped (The draw table: the 2D interface of the system in the repository). WebGPU for a GPU: not built |
| 19 | A command is a function | Shown | The console types and checks each call from the description of the module. The host calls an export and prints a typed table. The test reads log records as typed records (16 checks). A log record keeps the kind of each value of its text: log.value_runs(after) gives the runs, and the record of the process log with the size of the memory of the log has a run of the kind size; the window of the log draws each value in the color of its kind. A table goes into a call: in the console, from the host, and in three ways with the same answers | console, records, log, remote, tables, table_argument, manual_tables | Most checks of the scenario still read text lines of the serial log |
| 20 | No ambient access | Shown in part | A grant names one remote of the network. revoke("remote", "acts_for_principal") cuts the calls that act for the principal. A thread can only lower its weight. A budget record without the right Read says nothing of the budget. The control of a thread needs a thread handle with Inspect, and Write to change it: with Read and Control only, Stop, Read_Registers and Write_Registers give No_Right; 32 calls on a thread of another process are refused. The kernel events: a process reads the event table only with the machine handle and the right Events; after revoke, 0 records come and Events_Set gives Bad_Handle (test kernel_events). Inspect hides the bytes of a process: a frame of a stop report is given only when a module record holds its address, and Inspect_Kind.Pages answers for the process that asks only | revocation, network, rights, kernel_events, inspect | remote does not know who its client is: the host proves no key over QUIC, so whoever sends and receives the datagrams of the gateway 10.0.2.2 calls as the principal (QUIC: Who may call). No debugger: no grant reads the memory of another process |
| 21 | Principals | Shown in part | Layer 1: a caller acts for the principal of its session or not (CALLER_ACTS_FOR_PRINCIPAL), a grant of the root service that the console revokes. Layer 2: principal 0 is the machine, with the measure of the system. Layer 3: principal_create("alice") in the console, the passphrase typed two times in the window of unlock (dots); notes from the menu runs in the session of principal 1 and has a store of its own (notes.principal.1), apart from the store of notes of principal 0; the grants name the principal; the console acts for principal 0 only, and the storage service refuses it the store of principal 1 (open_store gives No_Grant, stores() does not list it); lock() stops the processes of the session; a wrong passphrase opens nothing; the right one starts the session again, and the note is there after a restart of the machine (test principals) | principals_unlock, revocation | No seal by the TPM: the passphrase alone protects the keys, against tries on a copy of the disk. The stores of a principal are not encrypted. No recovery of a lost passphrase. Several principals, identity across machines: not built |
| 22 | General mechanisms, and a plain expression for each frequent task | Not shown | No test runs a frequent task of a design: the examples of the property (facts(storage.Bad_Block), the filter of server.requests by its status, the copy of a record output to each reader) are designed, not built | The expression of each frequent task that the designs of the log facts and of the record outputs list; no check of the tool finds an incantation, only a review | |
| 23 | A role is a contract; its implementation is replaceable | Not shown | No role has a role contract yet: the root service gives each role to a module by its name, and the clients use the protocol of the holder of today | A second holder of one role that passes the conformance suite of its contract, and a machine test whose clients run the same with either holder (Roles and their contracts in the repository) | |
| 24 | Every input of a process passes through a channel that can be recorded | Not shown | No test records a process: the record mode and the replay are designed, not built. Each kernel operation already writes its answer in the kernel ring or in memory of the caller, and the faults that already reach a process are records of the fault ring | A recorded process and its replay; the trap of the cycle counter and of cpuid, which a process reads with no fault today; a shared writer that waits for an input point | |
| 25 | Take the gold, leave the debt | Not shown | No machine test shows a reuse. modustool check compares the reuse list with the works that the repository holds, but no algorithm of the system is yet a rewrite checked against its reference by a fuzz test and a measure | A reimplemented algorithm, such as the SIMD validation of UTF-8, with its reference, its fuzz test and its measure; the page "Credits and licences", checked by the tool |
Counts
- Shown: 11 properties (1, 2, 4, 6, 7, 9, 10, 11, 12, 15, 19).
- Shown in part: 9 properties (3, 5, 8, 13, 14, 16, 17, 20, 21).
- Not shown: 5 properties (18, 22, 23, 24, 25).
What removes each "in part" and each "not shown"
- 1. Property 5: a device queue for each endpoint, so that the network service leaves the data path. TCP and QUIC are already libraries in the process (The network: TCP as a library in the process, QUIC).
- 2. Property 13: processor counters for a process (cache misses of a pick, of a ring pass).
- 3. Property 14: a check of the tool that a
supportpackage calls no allocator. - 4. Property 17: a remote attestation of the measure, and a start on a real machine with the keys of the publisher.
- 5. Property 18: the rationalised draw record, with alpha, paths and the clip stack (
ROADMAP.md). WebGPU for a GPU comes after it (ROADMAP.md, "Later"). - 6. Property 20: a key of the client of
remote, given toremoteas a grant of the principal (QUIC: The next layers (designed, not built)). - 7. Property 21: the research on identity across machines.
- 8. Properties 3, 8, 16 are absences. A test shows them only by a refusal of the nearest wrong use; each row names the one that exists.
- 9. Property 1: a check that compares the count of
op.Operationwith the number written in Kernel properties. - 10. Property 22: the log facts and the record outputs, built, with a machine test that runs the expression of each frequent task that their designs list.
- 11. Property 23: the role contract of the display, a second holder that passes its conformance suite, and the machine test that runs its clients with each holder (
ROADMAP.md). - 12. Property 24: the first layer of the record and the replay, with a test module that is recorded, then replayed to the same end, and a planted
rdrandthat the replay finds as a divergence (Record and replay of a process: The layers in the repository). - 13. Property 25: the SIMD validation of UTF-8, with the byte loop as its reference, a fuzz test that compares the two and a measure, and the page "Credits and licences" that the tool checks (
ROADMAP.md).
