Changelog of nornir-mimir-node-map
Semantic versioning; each release is checked with cargo semver-checks against the one before.
Unreleased
After the 0.3.0 cut of TN12.
hole-shared-line-slotnamestarget-set-complete(review P1 narrowed): the line rule takes a direct call or a subroutine put in place at the line as no node's call made direct only when it is none of the nodes' targets, which reads the targets as the whole set.
0.3.0 (unreleased)
- The address rule needs the receipt to prove that nothing was folded (
check_hole,check_no_call): the rule that a direct call or jump to a named entry of other code is no call of the node is on only whereFolding::nothing_foldedholds (MergeFunctions off, no identical-code folding, no machine outliner, each known). Before, a target with code of its own turned the rule on with the machine outliner off alone, whatever MergeFunctions and the linker did; they may fold a unit's#[inline]or generic copy of the target into equal code under another name and send the node's call there while another copy of the target stays, and that call then read as "goes elsewhere". - A call through a pointer inside a copy may be another node's call in the whole-copy certificate (
check_no_call). Each copy lists every call or jump through a pointer among its instructions, with where the debug data puts it and the nodes that hold it (InlineCopy::pointer_calls, required, in inline version 5). Such a call is another node's when it stands in the code of a function put in place inside the copy (the innermost scope that holds the whole instruction, which has a link name, is the one it is listed under and is not the instance), it has a file and a line, and exactly one other node holds it under a rule that binds a node by its own line. It is still refused where the node's own call could stand there: another listed copy's ranges meet that scope's, or a scope put in place in the copy has no link name or is a target of the row under any crate's name (OriginAmbiguous). A listed call that is not such an instruction of the copy, or listed twice or out of order, is refused in every certificate (EventCoverage); the inlined certificate still refuses every call through a pointer in a copy. - A copy inside another function lists at least that function's scope above it (
InlineCopy::callers): an empty list is refused unless the copy is its whole function (its ranges cover its function's), in every certificate (ScopeMismatch). An empty list on a copy put in place inside a function said nothing of where it was put in place, and the rest rule read it as "nowhere". mimir-bin writes the list from the debug scopes and never leaves it empty for such a copy. link_instance_key: one key for a link name (instance::link_instance_key, at the crate root too):instance_keyofunpromoted, so a.llvm.<digits>local LLVM promoted under LTO keys as the instance it was. Every reader that pairs link names with instances takes it: nornir mimir-bin'snodemap::instance_key,outside::same_name, and Heimdall's start cover and relation, which keyed byinstance_keyalone and lost such names onceinstance_keystopped taking the ending off (Holger 4'sbuffer_capacity_required.llvm.<n>). Testtests/inline_instantiating_crate.rsa_link_name_llvm_promoted_is_keyed_as_the_instance_it_names.- The checks compare link names by
link_instance_keytoo:same_instance(and sooutside::same_name), a call's targets and the copy list's identity ininline_check. Before, a pointer call in a scope of the copy's own instance under its promoted name read as another instance's call, and another node holding it at its line let a jump out of the copy pass (belongs_to_another_call). Testtests/inline_hole.rsa_pointer_call_under_a_promoted_name_of_the_copys_own_instance_keeps_the_jump_refused. - The proof kind
hole-shared-line-slot(ProofKind::HoleSharedLineSlot,PROOF_HOLE_SHARED_LINE_SLOT; premisesline-originandsysv-callee-saved) and its position rule: two or more hole nodes of one instance at one line, each a call through its own table slot, every call at the line bound to the node whose slot it reads. The row must be a call in every copy of the instance, none made direct, each with its return address. - A copied call takes its merged calls as positions (
position::hole, the threehole-duplicated-slotkinds andhole-shared-line-slot): a line-zero call the merged rule fits to the node may be one more instruction copy of its call, so it is a position beside the calls at the line, held as the gate holds merged positions (a call that returns after itself, at an address of its own, each address once). Before, such a row was unproven: the 26 copied-call nodes of Holger 4's make 3. - A row bound by a table slot names its slot (
HoleNode::table_slot,table_slotin a file; review P2): the slot each call was held against (its target read at 8 x slot past the table pointer).position::holeleaves a row of the threehole-duplicated-slotkinds or ofhole-shared-line-slotwithout it unproven: the gate holds the calls against it again, and against the exec row's slot, and at a shared line it says which node a call is of. Other kinds need none. A reader of 0.2.1 drops the field. - The premise
table-slot-displacement(Premise::TableSlotDisplacement, trusted compiler and ABI; review P3): a call of a trait object's method reads its target at 8 x slot bytes from the table pointer as the object holds it. The four slot kinds (hole-duplicated-slot, its-section-tableand-frame-spillforms,hole-shared-line-slot) andhole-merged(its slot match) name it; before, they took the displacement for the slot with no premise saying so. A reader of 0.2.1 refuses the name. - Inline records version 5: every copy lists the scopes above it (
InlineCopy::callers, required: each scope's link name and the file and line of its code where the call toward the copy stands, innermost first; empty for a copy that is its whole function). A call through a pointer in the rest of a copy's function is no longer another node's call where it stands at the line at which a listed copy of the instance in the same function was put in place, in that scope: the compiler may have made the copy's own call and another alike one instruction, which the debug data then puts in the scope above at that line with no scope of the instance around it (Holger 4 make 3, 0x1093536: two drop chains ofBytesmerged at the closing brace of h2'sreclaim_frame_inner). Both certificates read it, the inlined one and the whole-copy one. A record of version 4 proves nothing. - The premise row
own-unwinder-personality-calls(premise_table::OWN_UNWINDER_PERSONALITY_CALLS, kind trusted-program-code): a call of the program's own unwinder in Rust (the unwinding crate, the reviewed version pinned by the registry checksum of the build's lock) through a frame's personality pointer goes only to a routine the image's unwind tables name, when nothing registers a frame at run time. mimir-exec writes it for each such call it answers. A reader that refuses a premise it does not know (Heimdall) needs this release to read an exec set that names it. - The address rule of the whole-copy certificate (
NoCall::target_code,TargetCode): made direct, a node's call goes to an entry of a target's code, so the certificate may say where each target's code stands: the addresses where its names stand (entries), where the code there goes on by its first direct jump (thunks), and whether the debug data puts the target in place (inlined). With one whole record per target, in the targets' order, a direct call or jump in a copy or in the rest of the function around it that goes to a named entry of other code (every name there none of the targets', with an LLVM suffix dropped; outside the function; at no entry or thunk of a target) is no call of the node. A target with no entry and not put in place gives no rule: merge-functions may have dropped it, and a call of it then goes to equal code under another name. - Both hole certificates say where each target's code stands, always (
NoCall::target_codeand the newInlineBinding::target_code, none for a system call site): a certificate without the field does not read, and one whose record is not one whole record per target, in the targets' order, with addresses sorted, distinct and none zero, is refused by name (InlineRefusal::TargetCode,inline-target-code). - The merge-functions guard covers a target put in place elsewhere: a target with no entry of its own gives no address rule, whether or not the debug data puts it in place elsewhere (
TargetCode::inlinedis read by no rule). merge-functions may have dropped it and sent its calls to equal code under another name, and the scopes put in place before the merge stay. - The make's receipt can lift that guard (
Folding, with the receipt's codesmerge_functions,icfandmachine_outliner, 0 not known;InlineRow::folding, the reader's own reading, andfoldingin both hole certificates, the map's): a target with no code of its own gives the address rule only when it is Rust code (a v0 name) and all three facts show no folding (each code 1: MergeFunctions off, no identical-code folding in the link, no machine outliner). The facts cover the program's Rust code, not the C objects of the link. A certificate whose facts are not the reader's is refused by name (InlineRefusal::Folding,inline-folding);position::holereads the certificate's own. - Every address rule needs the machine outliner proven off (
machine_outliner1; 0, not known, refuses too), in both hole certificates, and so does the inlined certificate's acceptance of a named direct call or jump out of a copy: the outliner may move the node's call, made a direct tail jump to a target, into an outlined function (OUTLINED_FUNCTION_n), which is a name, other code, outside the function and at no entry of a target. Until the make's receipt records the fact, no named direct call out of a copy passes. - The inlined certificate holds a named direct call or jump out of a copy to the address rule (
check_hole): one that lands neither on an instruction of the copy nor in the function around it passes only when it goes to the entry of other code (outside the function, at no entry or thunk of a target, no name there a target's). Before, any name that was none of the targets' passed: a call to equal code that merge-functions sent a target's calls to, or to a target's entry under a name folded onto it, read as another call. - The premise row
own-unwinder-stop-calls(premise_table::OWN_UNWINDER_STOP_CALLS, kind trusted-program-code): the same unwinder's call through a forced unwind's stop pointer goes only to a stop function a call of_Unwind_ForcedUnwindpassed. mimir-exec writes it for each such call it answers (a call of nothing when no forced unwind can start). - The premise row
signal-hook-previous-handler(premise_table::SIGNAL_HOOK_PREVIOUS_HANDLER, kind trusted-kernel): the old action the kernel hands back for a signal is the one last set for it in the process, or after execve SIG_DFL or SIG_IGN; so the previous handler signal-hook-registry (the reviewed version, pinned by the registry checksum of the build's lock) calls is one of the program's signal entries. mimir-exec writes it for each such call it answers. - The premise row
c-scape-dlsym(premise_table::C_SCAPE_DLSYM, kind trusted-program-code): the program's owndlsym, c-scape 0.22.3's as the build's lock links it (from crates.io or by path), answers as crates.io 0.22.3's source does; so a call through the pointer std'sDlsymWeakhands back goes to the function of the name its static holds, or is never made. The row's doc names the Eyra patches 01-06 of Heimdall's build image, none of which touchesdlsym(the function's text has the same sha256 in crates.io's crate and the patched copy). mimir-exec writes it for each such call it answers. table::proven_tablereads the census of mimir-bin's report format 4: a shared table,{"shared": {"why": why, "named": "by-its-jumps" | {"elsewhere": what}}}(more than one jump reads it, or it overlaps another proven table), is read asTableCensus::Kept(why), the same as the report of format 3 said of it; anything less than the whole record gives no table. The public API does not change, and a report of format 3 reads as before.- A hole-direct node with a copy that holds no call at its line is an optional position (
position::hole). Before, such a node stayed Unproven. It is never Absent: a missing copy is no evidence that its call left the binary. It is Optional, as its direct copies already make it: a run may pass the node or go around it to its targets, which covers a copy whose call was made direct, put in place or taken out. The row must list one instruction per copy with a call, and no more copies with a call than copies. Holger 4 make 3: 13 such nodes, 20 binary holes of their own. - A hole node with no direct call and a copy that holds no call at its line is optional, no longer required (
position::hole). This fixes a false kill (the filter was too strict): a copy without the call may have put the target in place, and its run goes from the call site before the node to the target's first call site with no Enter at a hole, which a required node does not allow (NotNext, or Boundary at the next Enter at a pointer call). The optional node allows only that way around it; where the pinned relation lacks the pair, the limited contraction names the node as a refused place instead. The same count guards hold. Holger 4 make 3: 64 such nodes. - A node bound only at line-zero calls (
hole-merged) with a copy is optional, no longer required (position::hole), for the same false kill: none of its copies holds a call at its line, so a copy that put the target in place runs around it. It keeps its merged positions (an Enter at one of them passes it). A merged row that counts a copy with a call has no position, also when it counts one in every copy (before, such a row was required). Holger 4 make 3: 23 such nodes. - A node of an instance with no copy is optional, no longer required (
position::hole):copies0 means the instance has no scope in the debug data, so which copies hold the call is not known, and a run that goes around the node (a copy without the call, then an Enter at a later pointer call) was killed at that Enter (Boundary): the same false kill. It is never Absent. A row with no copy and a call made direct, or with a copy with a call, has no position. Holger 4 make 3: no such row with a proof (its 306 rows with no copy have none). - Outside guard version 2 (
outside::OUTSIDE_GUARD_VERSION): the guard lists the transfers it left out ofincoming(dropped: decoded from a byte inside an instruction of a certified function, which the program never runs) and the premises that rests on (dropped_under:outside::DROPPED_UNDER,line-originandno-forged-code-pointers; none when nothing is left out).proven_bodiesreads version 2 only. Two new public fields ofOutsideGuard: a breaking change. - The proof kind
hole-inlined-merged(ProofKind::HoleInlinedMerged,PROOF_HOLE_INLINED_MERGED; the premises ofhole-inlinedand ofhole-merged:code-origin,pointer-call,exec-reach,line-origin,inline-call-origin,inline-copy-list,pointer-call-line,table-slot-displacement) and its position rule: a node whose target was put in place in every listed copy (a checked inline certificate, as forhole-inlined) and which the folded-position rule also gave line-zero calls through a pointer.position::holemakes it optional: a run may go around it (the target put in place) or enter at one of its folded positions, each a call that returns after itself, at an address of its own other than 0, each address once; anything else leaves it unproven. Before, the folded rule took the certificate back and the node had no position: the 82hole-inlinednodes and the onehole-direct-inlinednode of Holger 4's make 3. A reader of 0.2.1 refuses the name. - The premise
pointer-call-line(Premise::PointerCallLine,premise_table::POINTER_CALL_LINE, trusted compiler and ABI): a call through a pointer carries its own debug line or line 0, never another line, so a copy that left no instruction at the call's line and still calls through a pointer does so at a line-0 instruction of a function whose call closure holds its instance.hole-mergedandhole-inlined-mergedname it. Before,hole-mergedtook it with no premise saying so. A reader of 0.2.1 refuses the name. - The premise
const-switch-arm(premise_table::CONST_SWITCH_ARM, trusted compiler and ABI): a switch on a generic constant that the instance row evaluated for the instance runs only the arm of that value, so a block that only the other arms reach runs in no copy of that instance. mimir-exec's reach names it when it drops such blocks: tokio'sif AutoBox::<F>::SHOULD_BOX, 0 in all 49 instances of Holger 4's make 3. A reader of 0.2.1 refuses the name. - A call through a pointer whose instance has no copy, which taking out of the order changes no pair or only loosens pairs (proofs
hole-absent-neutralandhole-absent-optional,PROOF_HOLE_ABSENT_NEUTRAL,PROOF_HOLE_ABSENT_OPTIONAL; premisestarget-set-complete,code-origin,pointer-call,exec-reachandpointer-call-line, the last four as hole-merged names them). The new moduleabsent_pairs:Nextholds the pinned exec.edges as successor sets per entry and position;readreads a node and its return in every entry that holds either: every position right before the node already followed by every position where its targets begin, every position where they end already followed by every position right after the return, and, where the node goes straight to its return, the pairs from before the node to after the return that exec.edges lacks, counted (EntryRead::loosened). None counted: the node and its return are no position (position::holeanswers absent); some counted: a position that may be stepped around (optional). A missing pair into or out of the targets is named (Refusal), and so is a node or a return that is a first position of an entry (Refusal::First:Next::newtakes the pinned nodes table's first positions).loosenedcounts what stepping around one node adds: where two such nodes stand in a row, the pairs across both are counted by no record, so a sum of the counts is a lower bound. The recordHoleNode::absent_pairs(AbsentPairs, version 1: the targets, the node's evidence, one reading per entry), checked byabsent_pairs::proves. Breaking: a new field ofHoleNodeand two newProofKindvariants; the release takes a minor bump. - A minor bump, 0.3.0, not 0.2.2: 0.2.1's
proven_tablerefuses a part of every report of format 4 that holds a shared table. It gives no table for that block (the census record is not whole to it), so a reader of 0.2.1 loses that jump's proven table, a guard-bounded one included. A reader of the old release that misreads or refuses the new format is a breaking change. mimir-bin and mimir-exec require 0.3.0, and it must be published before a mimir-bin that writes format 4.
0.2.1 (on crates.io)
- The premise row
non-unwinding-abi-aborts(premise_table::NON_UNWINDING_ABI_ABORTS, kind trusted-compiler-abi): an unwind that reaches the frame of a function whose ABI cannot unwind (extern "C","system"and the like) does not leave that frame; rustc ends it in a terminate pad, and the process aborts there. mimir-exec writes it when an entry's function cannot unwind. A reader that refuses a premise it does not know (Heimdall) needs this release to read an exec set that names it. A new row and no other change: a patch release.
0.2.0 (published 2026-11-20)
- 0.1.0 is on crates.io; this release differs from it in its public API (the inline and premise proof types,
candidate_lists, the whole-copy certificate of version 4) and takes arrow-array 59: a minor bump.