Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/heimdall

docs/v2/site-floor.md

The site floor (part 1 under graph mode)

Heimdall is a defensive sandbox. The static floor allows a system call by its number. In a static non-PIE image every syscall instruction sits at a fixed address, and the static analysis knows which numbers each one can issue. The site floor adds that check: number N runs only when it comes from one of N's sites. It stays on under graph mode (graph-filter.md), whose blind sections (CODEX-GRAPH-FILTER-SECTIONS.md) read the same table.

What the kernel hands the filter

seccomp_data.instruction_pointer at an x86_64 syscall is the address AFTER the instruction (the site + 2). Proven on kernel 7.0.0-43 with a filter that answers getppid with ERRNO(ip & 0xfff) (BPF ret A), static non-PIE and PIE alike; the kernel test heimdall-cli/tests/site_floor.rs holds it.

The site table (heimdall.syscall-sites/1)

heimdall graph sites --report <graph bin dir> --image <elf> --vdso-report <graph bin dir of the vDSO> --vdso <vdso image> --out <program>.sites.json (heimdall-graph sites). It is made from the static analysis (nornir-mimir-bin's report.json) and the image's bytes, never by hand.

The entry of the image, where its main thread starts, is read from the image's own ELF header, never from the report. Each report is held against its image first: its SHA-256 and the entry it gives. A report that gives another entry than the header names, or none, is refused by its name (<report>: the report gives the entry of the image as …, the ELF header of the image (sha256:…) names …), with exit 1 and no table written. The vDSO's report and the stub's (--stub-proof) are held the same way.

An excerpt of the table of graph-pure, static non-PIE musl, release (the t13 cell: image 82ff8a7b…, 102 sites, 5 vDSO sites):

{
  "format": "heimdall.syscall-sites/1",
  "arch": "x86_64",
  "image": { "sha256": "82ff8a7b7979e853b41e629f9f5fae5d364ed443f02f9fa809a604fecaf99ce0",
             "kind": "static-non-pie", "exec": [ { "start": 4198400, "end": 4584873 } ] },
  "sites": [
    { "address": 4524480, "ip": 4524482, "numbers": "top", "how": "byte-scan",
      "function": "sysconf", "section": "undecoded" },
    { "address": 4534496, "ip": 4534498, "numbers": "top", "how": "argument",
      "function": "syscall", "section": "blind", "place": "rdi" },
    { "address": 4536320, "ip": 4536322, "numbers": [15], "how": "proven",
      "function": "__restore_rt", "section": "blind" }
  ],
  "vdso": { "sha256": "29541fec67f132f90d7f6fcd604e29adb90c2fcfb728eeea406d6496906142c5",
            "build_id": "758e40985aa5aecad550fa26d51c58e8d52a4945",
            "sites": [ { "offset": 2738, "ip_offset": 2740, "numbers": [228], "how": "proven",
                         "function": "sub_9b0" } ] },
  "sections": [
    { "kind": "exact", "functions": 24, "sites": 11, "possible": [2, 7, 9, 60, 158, 202, 218, 231] },
    { "kind": "blind", "functions": 1326, "sites": 89, "possible": "top",
      "holes": [ { "address": 4207454, "reason": "indirect-call",
                   "function": "std::sys::helpers::small_c_string::run_with_cstr_allocating::<…>" } ] }
  ],
  "source": { "tool": "heimdall graph sites 0.7.0", "report_format": "heimdall.bingraph-report/3",
              "report_sha256": "be9d4de4fe0c05a5b7b9c634f7822fa505de65d6f74e57a55819bb88b352d9e7" }
}

(Excerpt: the cell's blind section lists 278 holes, and an unreached and an undecoded section follow.)

The floor in site mode

heimdall_seccomp::bpf::build_sites and build_sites_bound (reference answers sites::answer and sites::answer_bound, held to them by a property test):

arch check, x32 kill, restart_syscall     → ALLOW (the kernel issues it, at the ip of the call it resumes)
bound rules (build_sites_bound)            → its action when the call comes from exactly its ip (all
                                             64 bits) and matches (the stub's one exec site, below)
the launch's prelude (execveat on EXEC_FD) → its action when it matches (the launcher's own code)
ip in the image's 4 GiB half               → ip must be a site of nr (or a top site)
anywhere else (the vDSO, random page)      → ip & 0xfff must be a vDSO site's of nr
site ok   → the rest of the implied set ALLOW, then the flat floor (today's per-number rules)
site bad  → Enforce: KILL_PROCESS; Audit (test box): the same with ALLOW turned into LOG

The implied calls code makes are site-checked like every other call: rt_sigreturn runs only from a site of 15 (musl's __restore_rt, glibc's restorer, Eyra's origin::arch::return_from_signal_handler: the restorer sigaction installs), exit and exit_group only from their sites. A forged signal frame returned through a gadget is killed. Only restart_syscall passes before the check: no code issues it.

Refused by name (SiteRefusal), with the flat floor installed instead (bpf::build_floor, Launch::sites, Launch::program_with_sites): no table, another format or arch, an image that is not static non-PIE, no vDSO in the table, executable ranges over two 4 GiB halves, a site outside them, a program over 4096 instructions.

Running a program in site mode

heimdall profile enforce --profile <arch>-<libc>.json --sites -- <program> … reads <program>.sites.json beside the program (--sites=<file> names another file) and starts the program under the site floor in Enforce. Before the filter is built, the launcher checks that the table fits this run, else site mode is refused by name on stderr and the flat floor runs:

A missing or unreadable table runs nothing (exit 1). --sites and --function do not go together (a function's starter installs its own filter).

In a container: the stub (heimdall-site-stub)

youki's seccomp backend (runtime/heimdall-youki) cannot install the site floor: youki hands it only the OCI seccomp section (no image to match a table to), and youki itself makes calls from its own code after the filter is on and before the exec, which the program's sites would kill. So the container's own process installs it, right before the exec, from code whose every path is proven: a static non-PIE launcher stub. youki is not changed.

Heimdall has ONE container entry point: heimdall-container-shim (crates/heimdall-container), which makes the container (youki's libcontainer, cgroups, Landlock, the broker, learning, function services). The stub is not a second entry: it is the shim's last step, the one launcher whose code from the install to the exec is proven call-free, so it alone can carry the site floor (the shim's executor is a PIE and writes and waits after its own install). The shim's graph path executes the held stub over the fd contract below (--target-fd, the metadata fds; the parent's checks, attach and INITIAL_EXEC are the shim's). Running the stub as the entry of a plain youki bundle (cargo xtask site-stub-youki) is a test harness, not a product path.

process.args  /heimdall-site-stub --profile /<arch>-<libc>.json [--sites F] [--stub-sites F] -- /program args …
rootfs        the stub and <stub>.sites.json, the program and <program>.sites.json, the profile; /proc

The stub (crates/heimdall-site-stub; heimdall-seccomp stub) is built by cargo xtask site-stub: musl, static, non-PIE, linked at 0x70000000 (the small code model keeps it under 2 GiB; static programs start at 0x200000 or 0x400000). Its table is made like any image's (heimdall graph bin, heimdall graph sites, beside it as <stub>.sites.json). It has no Rust runtime (no_main): it changes no signal disposition and starts no thread. It

  1. takes its exec site X from its own table (stub::exec_site): the table is of the running stub (the SHA-256 of /proc/self/exe), static non-PIE, and has exactly one site that can issue execve or execveat (top sites are not counted; the proof below covers them), proven {execveat}, at the ip of the running stub's exec instruction. Else it runs nothing (exit 1);

  2. reads the program's generated profile (its rules and implied set) and table, opens the program and hashes the bytes of that fd, reads the running kernel's vDSO;

  3. builds the filter (stub::plan): when the table fits (the checks of "Running a program in site mode", launch::site_fit) and X lies outside the program's executable ranges (SiteRefusal::ExecSiteInImage), the program's site floor with ONE bound rule and no prelude:

arch check, x32 kill, restart_syscall → ALLOW
execveat from ip X (both 4 GiB halves), fd EXEC_FD, AT_EMPTY_PATH → ALLOW   (launch::exec_rule)
the program's site check, then its flat rules

else the refusal by name on stderr and the flat floor with the launcher's prelude, as heimdall profile enforce --sites does;

  1. checks that no signal has a handler (rt_sigaction of every signal: default or ignore), sets no-new-privs and puts the program's fd at EXEC_FD;

  2. runs one block of assembly (heimdall_site_exec): seccomp(SET_MODE_FILTER, TSYNC), ud2 when it failed (SIGILL), execveat(EXEC_FD, "", argv, envp, AT_EMPTY_PATH), int3 when that failed (SIGTRAP). The call numbers are libc's constants.

The filter outlives the exec; X is gone with the stub's image. The program has no code at X, so the right to exec ends with the exec: the program's own execveat on EXEC_FD (the very call the launcher's prelude allows from anywhere) comes from one of its own sites, and its profile has no exec: killed.

Nothing of the stub but X runs after the install.

exec    the report's syscall blocks of a known set that can issue execve or execveat:
        exactly one, proven execveat (X); F = its function
install F's syscall blocks that can issue seccomp: exactly one, proven
F       no refusal of the decoder in F
walk    from the install's successors: every block reached is F's and ends in fallthrough,
        jcc, jmp, trap or X's syscall (no call, return, tail call, indirect jump, jump table,
        no other call site); X is reached; a block without successor is a trap

The real stub (this branch's held stub, 1b71a81b…): "in heimdall_site_exec, after the install at 0x70009414 only the exec site 0x7000942f is reached (4 blocks); every other path ends in a trap" (the addresses move with the build; the shape does not).

Tests. heimdall-seccomp tests/stub.rs and tests/sites.rs (the bound rule against its reference answer, the exec site, the plan and its refusals); heimdall-graph sites::stub (the proof, on the stub's block shape and on every way out); heimdall-cli tests/site_floor.rs in the kernel with the stub from cargo xtask site-stub (scripts/seccomp-tests.sh): the fixture runs under the stub's floor (write, vdso, signal), a gadget is killed, the program's own exec is killed while under profile enforce --sites it runs, another image's table gives the flat floor by name, another stub's table runs nothing, and the proof holds on the stub built there.

Launcher stub: the held launch (sections mode, --hold <fd>)

The contract with a parent that attaches graph mode's section links to the stub's process before the program runs (the graph-filter runtime). Plain site mode (no --hold) is unchanged.

  1. Sealed target. The stub opens the target once (O_RDONLY; O_PATH when it cannot be read, and site mode is then refused by name), hashes the bytes through that fd, checks them against the table's image.sha256, keeps the fd at EXEC_FD and executes exactly it: execveat(EXEC_FD, "", argv, envp, AT_EMPTY_PATH). The inode the parent attaches to is the inode that runs; the report names it. Sealed target fd (--target-fd <fd>, only with --hold, and with --sites: the target has no path). The parent hands the target as an inherited fd that carries all four seals (F_SEAL_WRITE, F_SEAL_SHRINK, F_SEAL_GROW, F_SEAL_SEAL: an immutable memfd); without them the stub runs nothing (exit 1). The stub duplicates it (close-on-exec), closes the original, hashes the duplicate from offset 0 (pread) against the table's image.sha256 (stub::sealed_target), reports the duplicate's dev and ino, and executes it from EXEC_FD; the program's argv[0] is the <program> given after --. The parent's own checks of the fd (namespace, DAC, path) are its own. Metadata over sealed fds (--profile-fd <fd>, --sites-fd <fd>, --stub-sites-fd <fd>, only with --hold; each in place of --profile, --sites, --stub-sites, never both): the parent hands the profile and the two tables as inherited fds, so the workload needs no mount and no Landlock right for them. Each must carry the same four seals (else exit 1, nothing runs); the stub reads it whole with pread from offset 0, so the fd's offset never moves (stub::sealed_bytes), and closes every original metadata fd first of all, also when one is refused, so none is open at the report or in the target. table_sha256 is then of the bytes read from --sites-fd. Every fd number (--hold, --target-fd, the metadata fds) differs from the others and from EXEC_FD. The target inherits none of them: at the exec its fds are the ones the parent gave it beyond these (the test target sees only 0, 1 and 2). Validating the fds (namespace, DAC), attaching them to the loader and the session, and the parent's side of INITIAL_EXEC are the parent's. Under the syscall broker (no open of /proc at all): --self-fd <fd> (only with --hold, and with --stub-sites or --stub-sites-fd: the default table path would need /proc/self/exe) hands the stub its own image as a sealed fd (all four seals; the parent's reserved number is 1020). The stub reads it like a metadata fd, checks that it is the image it runs from with no open (stub::self_image: its PT_LOADs are this process's, from getauxval(AT_PHDR), and every load that is not writable holds the same bytes in memory at its address as in the file), and hashes it for its own table in place of /proc/self/exe. The vDSO is read from the process's own memory at getauxval(AT_SYSINFO_EHDR), its length the end of its section headers or last segment rounded to the page (stub::running_vdso_mapped); a test holds it equal, bytes and hash, to the [vdso] mapping read through /proc/self/mem (launch::running_vdso) on the test kernel. The stub always takes the vDSO this way. All of it happens before the report.

  2. Report, then hold. After every check and the build of the filter, and before its install, the stub writes ONE line on the channel fd (an inherited fd, a socket or pipe end the parent holds) and waits for one byte:

stub → parent  one JSON line, then "\n" (heimdall_seccomp::stub::HoldReport, HOLD_FORMAT):
  {"format":"heimdall.site-stub-hold/1",
   "pid":     <the stub's pid: the process that becomes the program>,
   "target":  {"dev": <st_dev>, "ino": <st_ino>, "sha256": "<hex>" | null},   (fstat of that fd)
   "floor":   {"mode": "site" | "flat",
               "refusal": null | "<SiteRefusal, by name>",
               "bpf_sha256": "<hex>",   SHA-256 of the instructions as the kernel takes them:
                                        per sock_filter code u16, jt u8, jf u8, k u32, little-endian
               "insns": <count>,
               "table_sha256": "<hex>"}, SHA-256 of the program's table file as read
   "exec_ip": <the stub's one exec call site, the ip the filter is bound to>}
parent → stub  the byte 'R' (stub::RELEASE) after every link persists. Any other byte, or the
               channel's end: the stub exits 1, no install, no exec.

On the release the stub closes the channel and runs its one block: seccomp with exactly the reported instructions (the same Program), then the exec. The report comes before the install on purpose: after the install the stub makes no call but that exec (the graph proof above), so it could not write a report then; a failed install ends it with SIGILL before any exec.

  1. The first exec. Between the release and the program the stub makes two calls, seccomp and the execveat of the target, so the target's exec is the first exec the section links see (INITIAL_EXEC), and the stub's only exec call site is that execveat. From the report write on, the stub's calls are exactly read (the release, on the channel), close (the channel), seccomp and execveat: the line, the report and the filter are made before the write and live in the frame the exec never leaves, so nothing is allocated or freed there (a freed buffer could cost a munmap or madvise the parent's sequence does not admit). The kernel test traces it with a USER_NOTIF test filter and kills the stub on any other call, by path and over sealed fds.

Tests: heimdall-seccomp tests/stub.rs (the BPF hash, the line reads back and checks its format, a sealed target is duplicated and hashed from its start, a missing seal is refused, sealed metadata is read whole from its start with the offset kept, and refused without all four seals); heimdall-cli tests/site_floor.rs in the kernel: a held stub reports the target's inode and hash and the floor its plan builds (stub::plan from the same inputs gives the same bpf_sha256), has not executed anything while held (/proc/<pid>/exe is still the stub), and runs the program only on the release; without the release it runs nothing; a sealed memfd target runs with the argv[0] given and the original target fd closed in it; a target fd without its four seals, or without --hold, runs nothing; with the target, the profile and both tables over sealed memfds the held stub has none of the metadata fds open, reports the sealed table's hash, keeps the parent's offset, and the target lists only fds 0, 1 and 2; a metadata fd without its seals, or any of the three flags without --hold, runs nothing; with --self-fd 1020 and everything else over sealed fds the stub makes no open at all (each one fails as the broker fails a magic link, and none happens), and under heimdall-broker in its Auto mode, with no path granted, it reports and runs the program; --self-fd of another image, one seal short, without --stub-sites, or without --hold runs nothing.

Rootless youki 0.7.0 on oden (kernel 7.0.0-43), by cargo xtask site-stub-youki <files-dir> <out-dir> -- <stub args>. The bundle comes from edda's OCI tools, not a hand-made root: edda's oci-image-build builds a Level 1 image (FROM scratch, one COPY per file, ENTRYPOINT ["/heimdall-site-stub"], CMD the stub's arguments; no RUN, no root), twice with SOURCE_DATE_EPOCH=0, and the two manifest digests must be equal (else nothing runs); the verb reads the image back by its name with the oci-image-store crate (Layout::resolve and load_image: a manifest or a config that is not the bytes its digest names is refused); the same crate makes the bundle (write_bundle): the rootfs unpacked with every layer checked against its digest, and a rootless config.json with the process taken from the image config (Entrypoint + Cmd, Env), the root read-only and /out bound read-write. Nothing of the bundle is made by hand: youki makes /out in the root when it mounts. The verb writes config.json a second time from the same spec, with the process's inheritable and ambient capability sets empty and the one device rule that denies every device, as in youki's own spec (the crate's options have no field for either). The build program is built from edda (cargo build --release -p oci-image-build --no-default-features --bins) and named by OCI_IMAGE_BUILD. The cells below were run on 2026-11-15 with the verb as it was then: it unpacked with the oci-image-store program and made the runtime config from youki spec --rootless. The t13 cells, profiles generated by heimdall profile probe and gen, the stub 1b71a81b…:

run result
Eyra graph-pure (58c5d0d5…) under the stub's site floor, 3 runs (image 09063a6f… each time) exit 0, "hello graph"
musl graph-pure (82ff8a7b…), 3 runs (image 1f39e99b… each time) exit 0, "hello graph"
Eyra with its table less its 2 write sites SIGSYS (youki: 31)
Eyra with another image's table refused by name, the flat floor runs, exit 0
the stub with another stub's table exit 1, nothing runs

The probe check

heimdall graph sites --check <sites.json> --recorded <recording>: every recorded (ip, number) must be in the table; each call outside it is an alarm line naming the site and the number (a gap in the static analysis), exit 1. The recording is the probe's pairs file (heimdall profile probe <workload> --pairs writes <arch>-<libc>.pairs.json; its sites holds every notified call by the ip it came from, start-up included) or the probe-log proc lines of a LOG floor (the first record's ip per call only). Calls the probe's own filter lets through without a notification (the implied set, the launch's prelude) are not in a recording.

On a real cell

graph-pure (static non-PIE musl, the t13 cells, release and dev) runs under the site floor (Enforce and Audit) with exit 0, as under the flat floor: 1574 instructions in Enforce and 2719 in Audit (allow-all rules: 1163 flat). At the binary level almost the whole program is blind: main is entered through __libc_start_main's pointer call, so the exact section is the start code (24 functions, 11 sites) and the blind one the rest (1326 functions, 89 sites, 278 holes).

Limits

The numbers past the report (heimdall_graph::sites::narrow, feature decode)

The decoder is nornir's (nornir-mimir-bin sites_decode::narrow, the graph builders' home since 2026-11-15; heimdall-graph converts its result to the site table's types). It decodes the image's bytes (iced-x86) where the report stops. Nothing is keyed on a function's name; the numbers are the image's own constants. The one libc-dependent choice, whether the unwinder enters the landing pads, is asked of the C run-time model (mimir_bin::libc::LibcModel; heimdall graph sites --libc glibc|musl|eyra, default detected from the image); all three models' unwinders read the LSDA.

decoded      the functions holding byte-scan sites or call encodings in uncovered bytes are
             decoded from their start, the report's blocks, their landing pads (`.eh_frame` FDEs'
             LSDAs, read with gimli) and their jump tables' words. Complete: no overlapping or
             undecodable instruction, every indirect jump a table read here; usable: complete and
             no indirect call in the new code. A usable function's new code's calls and jumps out
             are added to its transfers (the sections' F(x)) and walked as calls.
jump tables  `jmp *table(,%idx,8)`; on every path to it the in-range side of `cmp $B,%idx` + `ja`
             (or `jbe` taken; `jae`/`jb`: B - 1), or `and $B,%idx`, no other write to idx after
             it (a 32-bit compare needs `mov %e,%e` after it); the B + 1 words at `table` in a
             segment that is not writable, all inside the function; non-PIE. A byte-scan site
             that is a `syscall` of a usable function with a table whose rax is a constant on
             every path → how jump-table, numbers = those constants.
callers      an argument site in F (place p): every call or jump to F (a block that reaches F
             without one → that call top). p before the call, walked back through the caller's
             decoded code: `mov $imm` / `xor r,r` → the constant; `mov %r64,%p` → that register;
             any other write, a call or an interrupt → top; an address-taken address or a
             landing pad inside the caller → top; a caller with an indirect jump nobody resolved
             (a kept jump table may land anywhere in it) → top; the caller's start → the caller
             passes p on (`through`): its callers are walked the same way. Call and jump
             encodings into a function start (e8, e9, eb, 7x, 0f 8x) in uncovered bytes that no
             usable decoding covers → that call top; in bytes of no function → not followed.
site         numbers = the union over its calls (top as above)
section      possible takes, for a followed argument site, the calls whose function is in the
             section's functions; top when an entry of the section is F or a `through` function
             (a thread that starts there brings a number no call in the section handed in)

The sections file (heimdall.syscall-sites/3)

Format 3 is the same file (<program>.sites.json, made by heimdall graph sites) with the sections split, the holes and the thread starts. It is the input of graph mode's blind sections (CODEX-GRAPH-FILTER-SECTIONS.md, items 2 to 4). sites, vdso, image and source are as in format 1 but for one thing (format 3 writes every field of a row, format 1 left an empty one out: see below the field list), and so is the floor: the floor reads format 1 and format 3 alike, and a format-1 file still reads (its sections become one per kind, with the site lists taken from sites[].section and no function lists).

Nothing in it is libc-specific: a musl program and an Eyra program give the same fields; the C library shows only in which sections are blind and how large they are.

{
  "format": "heimdall.syscall-sites/3",
  "functions": [ { "address": 4330544, "end": 4330765, "name": "<std::sys::thread::unix::Thread>::new::thread_start" } ],
  "sections": [
    { "id": "exact", "kind": "exact", "entries": [ { "address": 4212654, "function": "_start_c" } ],
      "functions": [ 4212654 ], "sites": [ 4209162 ], "possible": [ 60 ], "holes": [],
      "opened_by": [], "fallback": false },
    { "id": "spawn:0x45768a", "kind": "exact", "entries": [ { "address": 4552330, "function": "__clone" } ],
      "functions": [ 4552299 ], "sites": [ 4552330, 4552355 ], "possible": "top", "holes": [ 4552340 ],
      "opened_by": [], "fallback": false },
    { "id": "blind:0x421430", "kind": "blind",
      "entries": [ { "address": 4330544, "function": "<std::sys::thread::unix::Thread>::new::thread_start" } ],
      "functions": [ 4330544, 4245824 ], "sites": [ 4552338 ], "possible": "top",
      "holes": [ 4330577 ], "opened_by": [], "fallback": true },
    { "id": "unreached", "kind": "unreached", "entries": [], "functions": [ 4198400 ], "sites": [],
      "possible": [], "holes": [], "opened_by": [], "fallback": false },
    { "id": "undecoded", "kind": "undecoded", "entries": [], "functions": [], "sites": [ 4524482 ],
      "possible": "top", "holes": [], "opened_by": [], "fallback": false }
  ],
  "holes": [ { "address": 4330577, "function": "<std::sys::thread::unix::Thread>::new::thread_start",
               "reason": "indirect-call", "opens": "fallback" } ],
  "spawn_sites": [ 4552338 ],
  "threads": [
    { "start": { "address": 4212654, "function": "_start_c" }, "role": "main", "how": "image-entry",
      "section": "exact", "blind_from_first_call": false, "formed_in": [] },
    { "start": { "address": 4552330, "function": "__clone" }, "role": "spawned", "how": "spawn-continuation",
      "section": "spawn:0x45768a", "blind_from_first_call": false, "formed_in": [] },
    { "start": { "address": 4330544, "function": "<std::sys::thread::unix::Thread>::new::thread_start" },
      "role": "spawned", "how": "formed-before-spawn", "section": "blind:0x421430",
      "blind_from_first_call": true,
      "formed_in": [ { "address": 4330095, "function": "<std::sys::thread::unix::Thread>::new" } ] }
  ],
  "resolved_transfers": []
}

(An excerpt with shortened lists; addresses are decimal as in format 1; ids are hex.)

The sections are in this order: exact, the spawn sections by ip, the blind sections by their lowest entry, unreached, undecoded. Threads: main, the spawn continuations, the formed starts by address.

functions      every function of the report: address, end, name. Sections name functions by address.
F(x)           the functions reached from function x through resolved transfers (direct calls,
               tail calls, successors, ifunc targets); never through a hole
sections
  exact        entries = the image's entry;  functions = F(entry)
  spawn:0x<ip> one per spawn site in a function (kind exact): the code a new thread runs first.
               entries = the site's ip; functions = the site's function and F(what the blocks
               after the site transfer to) (for a byte-scan site: F(the whole function))
  blind:0x<a>  one per distinct set F(t) over the address-taken functions t (what a hole may enter:
               every hole's fallback, handlers, thread starts); entries = every t with that set,
               a = the lowest entry's address; functions = F(t) (it may share functions with the
               exact section and other blind sections: a thread that entered through a hole may
               run them all)
  unreached    the functions in no other section's list
  undecoded    the byte-scan sites (no function, or in bytes the decoder did not decode)
  per section  sites = the ips (address + 2) of the sites whose function is in `functions`
               (byte-scan sites inside such a function too; for `undecoded`: every byte-scan
               site); possible = the union of their numbers ("top" when one is top; a followed
               argument site counts only its calls inside the section: "The numbers past the
               report");
               holes = the addresses of the holes inside its functions
  blind only   opened_by = the holes whose `opens` lists this section by id;
               fallback = true: every hole whose `opens` is "fallback" opens it
holes          every unresolved indirect call and jump of the report in a reached function:
               address, function, reason, opens = "fallback" (every blind section; the report
               does not narrow a hole's targets today) or a list of section ids
spawn_sites    the ips of the sites whose numbers allow clone (56) or clone3 (435), "top"
               included: a new thread's first instruction is right after one of them
threads        role main:    the image's entry, section exact, how image-entry
               role spawned, how spawn-continuation: per spawn section, start = the site's ip
                 (the kernel starts the child right after the `syscall`), that section,
                 blind_from_first_call false
               role spawned: every address-taken function t whose address an instruction forms
                 (an immediate or a rip-relative address: `formed_in`, the instruction and its
                 function) in a function at most 2 calls above a spawn site whose number is
                 proven or open (not an argument or byte-scan site: a generic `syscall()` is
                 reached from nearly everything); how formed-before-spawn; section = the blind section with entry t;
                 blind_from_first_call = t is in no spawn section, i.e. the child reaches it
                 only through a hole
resolved_transfers
               every block of the report, in any function, whose call or jump through a
               pointer the report resolved (the block's `proven_targets`), by function and
               block: function = the start of the report's function, block = the block's
               start, returns = the block's end (the address after the instruction: where a
               call returns), targets = the proven targets, sorted, each once, place = the
               entry place that held the pointer when the function was entered (the
               report's `target_from`: a whole register as `rdi`, or `sp+8`; `null` when
               the report names only the place's low half, a word of the image, or
               nothing). The table follows the targets as direct reach and lists no hole
               there. The table is made from the report without reading the instruction:
               that the block ends in a call which returns at `returns` is for a reader of
               the program file to say (graph-sections.md). The part is always written: an
               empty list says that the report resolved none. Format 2 was this file
               without the part; it is not read, and the reader refuses it by name, so no
               table can leave the part out and be read as "none".

Every part named above is always written and none has a default: vdso (null when the table has none), sections, functions, holes, spawn_sites, threads and resolved_transfers. A file that leaves one out is refused with the part's name ("missing field holes"), so a cut file never reads as a table with no open pointer call or no thread start.

The same holds inside every row of a format-3 file, the rows of sites and vdso too. Every field is always written and none has a default. What is not there is written as empty: null for a name, a place or a build id (function of a site, a vDSO site, a hole and of each { "address", "function" }; name of a function; place of a site and of a resolved transfer; build_id of the vDSO), [] for a list (callers; a section's entries, functions, sites, holes and opened_by; a thread's formed_in), false for a section's fallback. A row that leaves a field out is refused with the field's name: a section without holes is no section and never reads as "no open pointer call in these functions". Format 1 left an empty field out of a row; its reader takes its rows as that format wrote them, and nothing of that reaches a format-3 file.

The probe per section (heimdall.sections-recorded/1)

The fine-tune data of graph mode's blind sections: what the probe recorded, per thread and per section, against the sections file's static lists (heimdall-probe section_rec).

heimdall profile probe <workload> --pairs --sections <program>.sites.json
    → <program>.sections-recorded.json next to the sections file (beside the probe and pairs files)
heimdall graph sites --check <program>.sites.json --trace <probe trace>
    → the same file from a probe trace (HEIMDALL_PROBE_TRACE lines `<run> <tid> <nr> <name> <ip>`)
runs[]       name, threads[] (numbered by first call; tid kept for the record):
               first {ip, nr, sections holding ip}, calls,
               sections {id → [{ip, nr, name, count}]}   a call goes to every section holding its
                                                          site (they overlap); the vDSO → "vdso"
sections     id → {recorded (numbers), possible (the static list), threads}
alarms[]     {run, thread, ip, nr, name, why, section}:
               no-site | site-other-numbers   (the site floor would kill the call)
               no-section                     (the site lies in no section)
               outside-section                (no section holding the site lists the number: sections
                                              narrow an argument site to their own calls, and the
                                              probe does not know which one the thread is in)

Each alarm is a gap in the static analysis, printed as an ALARM: line; the command exits 1 when there is one. Nothing is added to any list by hand.

Targetless sections from candidate evidence

The optional graph nodemap --sections-out <new-file> --out <map> path reads the executor's structured hole-candidates/1 notes. It refuses an absent or incomplete enumeration, a candidate not covered by the exec graph, open effects, missing syscall bindings, and unproven hole positions or edges. A bare hole-to-return edge never establishes an empty bound.

The nornir producer derives the list; Heimdall serializes one explicit blind section with empty entries and the hole's own sites/possible list, then rebuilds the node map against those exact site-table bytes. The output path must be new. The input site table is not overwritten. Both output files must be retained; the map pins the returned sections file's SHA-256.

The current Rust vtable capture has no image-bound completeness certificate, so an empty dumped vtable set remains refused. Tests with synthetic complete enumerations do not establish Eyra readiness. This branch still depends on m-lane's unpublished crates and its temporary dependency patch.