WIP: Retain original allocations through native IPC #137

Draft
erikinkinen wants to merge 15 commits from feature/native-registered-allocation-backing into feature/native-ipc-custody-transport
Owner

Transfer original handoff and stack allocations into their VSpace before publishing user access. Native IPC reads and writes require the retained backing and its live range rights for root and ordinary processes. Range descriptions and failed tracked lookups cannot authorize a pointer dereference. Failed withdrawal preserves the allocation until its original cleanup succeeds.

Based on #136; part of #11. See the registered allocation contract.

  • Retain original allocation owners through registration, native copying and teardown.
  • Exercise real owned storage, alias rejection, cancellation, partial publication and retryable retirement.
  • Pass all eleven original component gates, including optimized suites and warning-free native kernel/SMP builds.
  • Pass current-head public CI.
  • Complete coordinated private-process and revocation acceptance on the release image.
Transfer original handoff and stack allocations into their VSpace before publishing user access. Native IPC reads and writes require the retained backing and its live range rights for root and ordinary processes. Range descriptions and failed tracked lookups cannot authorize a pointer dereference. Failed withdrawal preserves the allocation until its original cleanup succeeds. Based on #136; part of #11. See the [registered allocation contract](https://git.erikinkinen.fi/erix/kernel/src/branch/feature/native-registered-allocation-backing/docs/registered-allocation-lifetimes.md). - [x] Retain original allocation owners through registration, native copying and teardown. - [x] Exercise real owned storage, alias rejection, cancellation, partial publication and retryable retirement. - [x] Pass all eleven original component gates, including optimized suites and warning-free native kernel/SMP builds. - [x] Pass current-head public CI. - [ ] Complete coordinated private-process and revocation acceptance on the release image.
erikinkinen added this to the Alpha 1 milestone 2026-11-13 12:02:37 +01:00
Authenticate native reply occupation before input admission and read IPC inputs through their original retained backing. Keep registered allocations owned by their VSpace until unregister or teardown, including prepared writes and root loader registration.
Carry original reachable transport owners, source declarations and qualified completion corrections into the independent registered allocation backing implementation. Keep the predecessor private until its full component gates complete.

# Conflicts:
#	src/kobj/endpoint/process_destroy_cleanup_trace.rs
#	src/kobj/endpoint/receive_completion_reservation.rs
#	src/kobj/endpoint/runtime_native_call.rs
#	src/kobj/endpoint/runtime_native_reply.rs
#	src/kobj/endpoint/runtime_reply_trace.rs
#	src/kobj/endpoint/tests/legacy_fixture.rs
#	src/kobj/endpoint/trace.rs
#	src/kobj/tcb.rs
Retain the existing test-only transfer reservation export beside its defining module and remove the duplicate trailing reexport. Native transfer callers continue to borrow their original capability admission.
Preserve the actual original frame allocation and native input fixtures with the independent registered backing implementation, including complete queued delivery, reply and stale-source refusal controls.

# Conflicts:
#	src/kobj/endpoint/tests/legacy_fixture.rs
Give synchronous control fixtures real allocations transferred into their original VSpace before registration. Exercise every ordinary transport actor through actual managed backing and read its original storage, removing the legacy host-address fallback that no longer satisfies native source ownership.
Move actual request allocations into the original VSpace before invoking the raw one-shot retirement control. Read the resulting native response through that retained owner and verify disjointness using the actual canonical transport address, preserving the refusal and consumed-authority replay controls.
Give original receive fixtures actual managed output instead of descriptive host registration and read the native destination after publication. Admit real managed REPLY input for the corresponding source owner while preserving untouched host-alias controls and exact completion and capability assertions.
Carry the exact published native IPC source, original access tracing and independent frame custody controls into registered allocation backing without replacing its actual allocation ownership or input admission rules.

# Conflicts:
#	src/kobj/endpoint/process_destroy_cleanup_trace.rs
Construct real registered backing before admission and inspect actual mapped output after delivery. Preserve comparison aliases as independent observations rather than authority to read or write userspace.
Read each original caller and receiver allocation after native delivery, preserve untouched tails, and retain the complete poll buffer before subspan admission.
Observe unchanged original backing across refused receives and inspect the complete mapped pager output, including its untouched tail. Assert that native prepared copies do not modify unrelated comparison allocations.
Keep independent host aliases unchanged while proving canceled, oversized and stale native operations leave the actual retained allocation untouched.
docs: describe original registered backing admission
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 7m1s
aa3bd56cd2
Remove superseded root pointer fallback descriptions and distinguish actual owned fixture storage from native execution acceptance.
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 7m1s
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-registered-allocation-backing:feature/native-registered-allocation-backing'
git switch 'feature/native-registered-allocation-backing'

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-ipc-custody-transport'
git merge --no-ff 'feature/native-registered-allocation-backing'
git switch 'feature/native-registered-allocation-backing'
git rebase 'feature/native-ipc-custody-transport'
git switch 'feature/native-ipc-custody-transport'
git merge --ff-only 'feature/native-registered-allocation-backing'
git switch 'feature/native-registered-allocation-backing'
git rebase 'feature/native-ipc-custody-transport'
git switch 'feature/native-ipc-custody-transport'
git merge --no-ff 'feature/native-registered-allocation-backing'
git switch 'feature/native-ipc-custody-transport'
git merge --squash 'feature/native-registered-allocation-backing'
git switch 'feature/native-ipc-custody-transport'
git merge --ff-only 'feature/native-registered-allocation-backing'
git switch 'feature/native-ipc-custody-transport'
git merge 'feature/native-registered-allocation-backing'
git push origin 'feature/native-ipc-custody-transport'
Sign in to join this conversation.
No description provided.