WIP: Enforce native lifetime and staged construction authority #3
Closed
erikinkinen
wants to merge 269 commits from
feature/posix-compat into main
pull from: feature/posix-compat
merge into: erix:main
erix:main
erix:feature/public-ci-source-graph
erix:feature/terminal-peer-flow
erix:feature/ci-repository-catalog-merge-ready-3ff6bd6a
erix:feature/documentation-lint-repair-merge-ready-c029e817
erix:feature/boot-kernel-v2-startup-intake
erix:feature/kernel-runtime-image-sources
erix:feature/ap-supervisor-memory-policy
erix:feature/native-private-root-activation
erix:feature/retained-processor-topology-intake
erix:feature/native-boot-source-reservations
erix:feature/native-registered-allocation-backing
erix:feature/native-ipc-custody-transport
erix:feature/native-completion-publication
erix:feature/native-control-publication-custody
erix:feature/native-call-response-loans
erix:feature/native-capability-exclusion
erix:feature/native-reply-acceptance
erix:feature/documentation-lint-repair
erix:feature/ci-repository-catalog
erix:feature/counted-boot-object-names
erix:feature/kernel-runtime-test-matrix
erix:feature/kernel-source-governance
erix:feature/physical-uart-line-configuration
erix:feature/calibrated-time-resolution
erix:feature/hardware-timed-uart-break
erix:feature/process-bound-uart-transients
erix:feature/native-cpu-local-execution
erix:feature/native-oir3-result-budget-claims
erix:feature/native-query-layout-controls
erix:feature/native-pending-reply-context
erix:feature/native-rendezvous-custody-controls
erix:feature/opt-in-process-exit-tracing
erix:feature/register-only-syscall-return-abi
erix:feature/native-execution-departure-and-retirement
erix:feature/native-invocation-diagnostics
erix:feature/native-member-exit-observation
erix:feature/ci-source-acquisition
erix:feature/native-terminal-receipt-deadlines
erix:feature/native-thread-lifecycle
erix:feature/owned-activity-and-deadline-waits
erix:feature/generation-bound-process-termination
erix:feature/ap-scheduler-deadline-observation
erix:feature/reserved-heap-region-core
erix:feature/owned-private-page-tables
erix:feature/registered-scheduler-mapping-ranges
erix:feature/kernel-owned-initial-resume-frames
erix:feature/owned-supervisor-baseline
erix:feature/page-walk-huge-leaf-geometry
erix:feature/grant-backed-frame-protection
erix:feature/hardware-frame-access-preservation
erix:feature/current-vspace-map-authority
erix:feature/ordinary-frame-map-domain
erix:feature/unpublished-table-allocation-custody
erix:feature/declared-native-request-mappings
erix:feature/native-table-bit-provenance
erix:feature/acknowledged-terminal-cpu-accounting
erix:feature/explicit-installer-grant-rights
erix:feature/native-child-release-recovery-controls
erix:feature/native-terminal-event-refusal-controls
erix:feature/native-receiver-budgets
erix:feature/owned-supervisor-child-lifetimes
erix:feature/terminal-control-reply-custody
erix:feature/caller-local-grant-relocation
erix:feature/process-generations-and-accounting
erix:feature/terminal-process-identity-custody
erix:feature/exact-vspace-teardown
erix:feature/owned-syscall-resume-capture
erix:feature/native-diagnostic-observation
erix:feature/owned-host-startup-stack-fixtures
erix:feature/terminal-exception-frame-boundaries
erix:feature/native-capability-query-context
erix:feature/native-entry-direction-custody
erix:feature/frame-mapping-permission-boundaries
erix:feature/grant-bound-process-staging
erix:feature/endpoint-transfer-preflight
erix:feature/native-invocation-transport
erix:feature/cspace-free-slot-index
erix:feature/native-syscall-entry-custody
erix:feature/managed-frame-lookup-cache
erix:feature/process-bound-local-revokers
erix:feature/hosted-fixture-isolation
erix:feature/native-cli
erix:feature/phase-4-audit
erix:feature/dynlink
erix:feature/program-loader
erix:feature/e2fs-fat
erix:feature/block-devices
erix:feature/vfs
erix:feature/centralized-process-authority
No reviewers
Labels
Clear labels
alpha-1
EriX Alpha 1 release acceptance
bug
Something is not working
ci
docs
duplicate
This issue or pull request already exists
enhancement
New feature
help wanted
Need some help
invalid
Something is wrong
performance
Measured performance profiling, bottleneck analysis, and regression budgets.
phase-6
Phase 6: POSIX compatibility, full EriX self-hosting, and its required audits and validation.
question
More information is needed
refactor
Code cleanup, removal of obsolete paths, and structural improvements preserving behavior.
security
wontfix
This won't be fixed
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
erix/kernel!3
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/posix-compat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary and rationale
Enforce process-bound grant custody, staged construction, endpoint attenuation
and owned invocation. Operation 54 creates a child with one primary endpoint and
no root capabilities while retaining native backing. Queries use actual caller
attribution and mappings retain explicit execution permissions.
Native syscall entry captures a complete initialized resume prefix in stable
kernel-owned storage before dispatch. Refusal cannot execute the requested
operation or select stale resume state. Exception entry preserves alignment and
exact hardware-frame extents; host fixtures own their complete stack windows.
VSpace cleanup records completed withdrawals and consumes successful frame
releases. Process abort and destruction now retain their empty private CSpace
through final VSpace release. Distinct cleanup states prevent restart, wake,
ordinary record mutation and live IPC admission. Identity reuse follows the
successful final commit.
OIR3 CLAIM returns the original invocation's result byte and capability limits
from the retained native record. These values describe capacity and grant no
authority. OIR2 and COLLECT keep their existing contracts. This supplies the
native budget witness for namespace acquisition.
Tracking and scope
The linked component audit, implementation and consumer requirements remain part of this WIP review. The phase-wide guest and toolchain build requirements stay with the phase completion issue.
Architecture, authority and failure behavior
Construction requires an actual Process endpoint; identities do not confer
authority. Grants retain unique custody, explicit rights, generation checks,
caller windows and rollback obligations. Omission of initial root capabilities
does not imply sealing or prohibit later authorized installation.
Retiring VSpaces refuse ordinary operations and new ownership. All access
withdrawals complete before backing release; completed effects are recorded.
Aborting and destroying processes remain distinct non-executable owners.
Final cleanup validates exact TCB generation and identities, then holds TCB,
CSpace, VSpace and allocator locks in that order. The final-release callback
cannot access TCB or CSpace tables. Failure retains the empty private CSpace;
success publishes its reuse and removes the TCB without another fallible step.
Earlier cleanup effects are retained, so this is not whole-process rollback.
Current native source implements genuine prepared membership, original context initialization, enrollment and Start, thread-only departure, retained process anchors and whole-group accounting. Actual Process/factory/member custody and native serial observations govern these operations; copied identities cannot select a target. ordinary native thread birth and join and detach ownership describe the mediator's source mechanisms and their separate native ownership boundaries.
Complete source and frame admission, imported libc and dynamic ELF TLS consumers, and the signed native/VM workload remain open. The full EriX guest builds and external Rust/LLVM rebuild inside EriX remain phase requirements. Complete semantic authority admission remains unfinished; no generic syscall preservation mask is admitted.
Validation evidence
Formatting, strict Clippy, warning-denied builds and documentation, unit tests, and applicable native/VM and consumer regressions remain required for the declared scope. Authored controls and older successful runs do not establish current full acceptance.
Review checklist
This review remains WIP until its declared scope and dependent requirements are complete.
WIP: Separate endpoint transport and receiver-scheduling teststo WIP: Stabilize kernel test isolation and split endpoint fixtureserikinkinen referenced this pull request from erix/integration2026-09-12 09:18:44 +02:00
WIP: Stabilize kernel test isolation and split endpoint fixturesto WIP: Stabilize kernel tests and measure mapping lookup workWIP: Stabilize kernel tests and measure mapping lookup workto WIP: Reduce managed-frame scans and stabilize kernel testsWIP: Reduce managed-frame scans and stabilize kernel teststo WIP: Reduce kernel handoff allocations and mapping scansWIP: Reduce kernel handoff allocations and mapping scansto WIP: Add native lifetime revocation and reduce handoff allocationserikinkinen referenced this pull request from erix/docs2026-09-14 10:13:48 +02:00
WIP: Add native lifetime revocation and reduce handoff allocationsto WIP: Add lifetime revocation and native custody validationWIP: Add lifetime revocation and native custody validationto WIP: Harden lifetime custody and preserve native entry argumentsWIP: Harden lifetime custody and preserve native entry argumentsto WIP: Harden lifetime custody and scale CSpace allocationWIP: Harden lifetime custody and scale CSpace allocationto WIP: Harden native lifetime and capability transferWIP: Harden native lifetime and capability transferto WIP: Implement owned invocation transport and native lifetime custodyWIP: Implement owned invocation transport and native lifetime custodyto WIP: Implement owned invocations and process-bound installationWIP: Implement owned invocations and process-bound installationto WIP: Enforce native lifetime custody and atomic process constructionWIP: Enforce native lifetime custody and atomic process constructionto WIP: Enforce native lifetime and staged endpoint authorityWIP: Enforce native lifetime and staged endpoint authorityto WIP: Enforce native lifetime and staged construction authorityerikinkinen referenced this pull request from erix/docs2026-09-17 18:12:35 +02:00
erikinkinen referenced this pull request from erix/integration2026-09-19 20:18:40 +02:00
erikinkinen referenced this pull request2026-09-21 23:45:23 +02:00
erikinkinen referenced this pull request from erix/bootloader2026-09-24 14:43:22 +02:00
erikinkinen referenced this pull request from erix/lib-ipc2026-10-02 10:57:24 +02:00
erikinkinen referenced this pull request from erix/docs2026-10-04 13:21:29 +02:00
erikinkinen referenced this pull request from erix/integration2026-10-04 13:21:29 +02:00
erikinkinen referenced this pull request from erix/lib-cstd2026-10-04 13:21:32 +02:00
Added native exit watches, initial private cleanup and result retirement, followed by separate member-watch and initial-thread CPL3 diagnostics. See #52. The new guest cases currently fail an exact syscall-result assertion; investigation continues with the original oracles intact.
The native diagnostic receiver-ordering repair is pushed. All six original lifecycle VMs pass on the coherent signed graph, including the two formerly failing departure cases, with unchanged assertions, markers and deadlines. Kernel #54 is closed; source-bound performance work and the broader Phase 6 requirements continue.
Added the nested-call regression in 187c03fc. It drives real endpoint dispatch and scheduler state, verifies that an oversized inner reply preserves both pending callers, and checks distinct reply lengths through the original saved frames. The checked deadline-heap descent also uses equivalent while-let syntax for strict Clippy compatibility.
This adds focused regression coverage; it does not establish the cause of Integration #125.
68a65a86addresses #55 by making routine runtime process-exit values opt-in. Explicit traces and fault/result paths remain intact. The matching manual update is in Docs PR4. Integration adoption and the unchanged directory regression are pending.The runtime exit-logging repair now passes the unchanged directory VM scenario on Integration ab6a8d59. Both denied-access diagnostics remain intact, all marker checks pass, and cleanup is confirmed. #55 is closed.
5d6264e replaces the duplicate reserved-heap implementation with lib-owned-region. Kernel keeps its backing, lock, diagnostics and native geometry probe; the seven primitive controls move with the shared implementation. The dependency tracks main and the CI helper includes the new repository.
The current Kernel CI passes at 5d6264e with the shared library selected at b8322673. Full logs are retained and contain no warnings. The allocator-domain VM probe is still open.
A separate local Cargo 1.97.1 run stops before compilation because its cache rejects the library’s recorded shallow boundary. Integration #157 tracks that source-handoff defect; the CI compiler is 1.93.1. The version difference is observed, and its causal role is not established.
Published 32ee24c8 with the conservative syscall-return declaration and source contract. The coordinated producer and Exsh route are tracked in #56; full frame and native guest acceptance remain open.
ca2c4735 publishes the version 2 return contract for #57. Capability and endpoint-identity queries explicitly preserve userspace memory. The endpoint query retains its caller-local slot, type and reserved-argument checks; the declaration grants no capability. The existing invocation canaries now cover the query as well.
d04e3e30 adds the opt-in CLAIM budget witness used by LibIPC #12. Both capacities come from the retained invocation record. Existing receive packets and rights remain unchanged; namespace service adoption is still in progress.
The original work is now split into #60, #61, #62, #63, #64, #65, #66, #67, #68, #69, #70, #71, #72, #73, #74, #75, #76, #77, #78, #79, #80, #81, #82, #83, #84, #85, #86, #87, #88, #89, #90, #91, #92, #93, #94, #95, #96, #97, #98, #99, #100, #101, #102, #103, #104, #105, #106, #107, #108, #109, #110, #111, #112, #113, #114, #115, #116, #117, #118, #119, #120. These PRs retain the original source and its separate peer-flow cleanup feature. Closing this aggregate without merging; the original branch remains available.
Pull request closed