WIP: Preserve process allocation handling in native graph links #539

Draft
erikinkinen wants to merge 12 commits from feature/native-graph-allocation-runtime into feature/native-boot-profile-matrix
Owner

Bind the native OOM Abort choice in actual Cargo/compiler invocations before graph linking. Observed allocation-error wrappers forward to the unique original process handler, with compiler-compatible export visibility; they supply no replacement allocator or Kernel error handler. Unknown namespaces, missing handlers and unrelated unresolved symbols still fail.

  • Implement compiler-policy binding and original-handler forwarding.
  • Complete matching native graph and guest acceptance.

Depends on #538.

Bind the native OOM Abort choice in actual Cargo/compiler invocations before graph linking. Observed allocation-error wrappers forward to the unique original process handler, with compiler-compatible export visibility; they supply no replacement allocator or Kernel error handler. Unknown namespaces, missing handlers and unrelated unresolved symbols still fail. - [x] Implement compiler-policy binding and original-handler forwarding. - [ ] Complete matching native graph and guest acceptance. Depends on [#538](https://git.erikinkinen.fi/erix/integration/pulls/538).
erikinkinen added this to the Alpha 1 milestone 2026-11-07 20:56:34 +01:00
Select a distinct PIC ABI with an explicit Abort OOM compiler option. Carry that choice through the actual Cargo query, observed compiler invocations and retained replay identity while preserving the previous ABI contract.
Match the selected Rust compiler allocation marker visibility so selected dynamic libraries can resolve its empty function. Keep actual object and linked dynamic-symbol checks alongside the byte-level contract.
Use the actual fixture symbol table and existing dynamic-symbol decoder across graph source branches, without requiring an unavailable general symbol-table helper.
Describe exact observed compiler wrappers over the unique original root allocation-error handler and an explicitly selected Abort policy. Preserve namespace, handler-identity and unrelated-symbol refusals, and keep all privileged runtime behavior outside this contract.
Require the actual Abort compiler option and one matching original root handler before generating observed allocation-error wrappers. Retain native source/runtime owners and existing unresolved-symbol checks, with no Kernel handler or allocator substitution.
Leave unrelated function names outside the compiler-handler namespace and require a literal Abort policy value.
docs: Enroll the graph allocation runtime contract
Some checks failed
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
8543dcce8e
Document the compiler policy and original handler boundary, and keep every allocation-runtime source and control in the ordered host syntax checks.
fix: Preserve allocation-free native roots
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
8206a1e1d7
Distinguish direct object references from available lazy archive members. Do not invent a root handler for dormant allocation code; actual unresolved references still fail the native linker and final ELF checks.
fix: Check actual unresolved Kernel symbols against dynamic exports
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
73dc8826ca
Inspect decoded nm output from the original Kernel link operation against
that operation's selected DSO exports. Reject binary observations and role
labels as symbol sets, and retain ELF visibility so hidden, internal and
local definitions cannot satisfy another object's unresolved references.
test: Initialize the non-profiled heap reservation fixture
Some checks failed
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
49297649a9
Match Scope initialization before checking destination filesystem space.
The fixture selects no telemetry sink, so its initial reservation is zero;
the actual checkpoint still accounts for pending writes and destination space.
fix: Preserve the Kernel's actual allocation failure policy
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
eb33328500
Bind Abort to the retained successful root compiler invocations and forward
observed allocation wrappers to the original custom handler or the uniquely
observed default in the selected held liballoc archive. Refuse unsupported
or ambiguous contracts instead of synthesizing a privileged halt handler.
fix: Refuse legacy custom Kernel allocation handlers
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
CI / rust (push) Failing after 1m3s
Markdown / markdown (push) Failing after 16s
Coreutils provider graph / coreutils (push) Successful in 4m48s
CI / host_zero (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_three (push) Has been skipped
CI / integration (push) Has been skipped
74d7a093bf
Keep observed legacy and unsupported custom handler names in the refusal set.
An unrecognized custom allocation policy must not disappear during symbol
selection and silently select the liballoc default instead.
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
CI / rust (push) Failing after 1m3s
Markdown / markdown (push) Failing after 16s
Coreutils provider graph / coreutils (push) Successful in 4m48s
CI / host_zero (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_three (push) Has been skipped
CI / integration (push) Has been skipped
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/native-graph-allocation-runtime:feature/native-graph-allocation-runtime'
git switch 'feature/native-graph-allocation-runtime'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'feature/native-boot-profile-matrix'
git merge --no-ff 'feature/native-graph-allocation-runtime'
git switch 'feature/native-graph-allocation-runtime'
git rebase 'feature/native-boot-profile-matrix'
git switch 'feature/native-boot-profile-matrix'
git merge --ff-only 'feature/native-graph-allocation-runtime'
git switch 'feature/native-graph-allocation-runtime'
git rebase 'feature/native-boot-profile-matrix'
git switch 'feature/native-boot-profile-matrix'
git merge --no-ff 'feature/native-graph-allocation-runtime'
git switch 'feature/native-boot-profile-matrix'
git merge --squash 'feature/native-graph-allocation-runtime'
git switch 'feature/native-boot-profile-matrix'
git merge --ff-only 'feature/native-graph-allocation-runtime'
git switch 'feature/native-boot-profile-matrix'
git merge 'feature/native-graph-allocation-runtime'
git push origin 'feature/native-boot-profile-matrix'
Sign in to join this conversation.
No description provided.