[BUG] Finish capability-window consumers after native storage refactor #45
Labels
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/kernel#45
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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
The native process storage refactor at Kernel
18a15e8777346fac05bfecaef1873cb9453f4a75removes capability-window fields from TcbRecord, but legacy capability transfer and two control-test modules still refer to those fields. These source references prevent coherent compilation of the affected native/test configurations. The issue was found by source audit; no compiler or test run was executed.Reproduction
Read that exact revision's
src/kobj/tcb/state.rs,src/kobj/endpoint/runtime_prelude.rs,src/ipc/control/tests/rootless_creation.rsandsrc/arch/x86_64/syscall/query_local_cap_tests.rs. Compare TcbRecord's declared fields with the latter modules'record.cspace_window_base/lenandchild.cspace_window_base/lenreferences. This mismatch is deterministic at the listed revision. Reading immutable source is sufficient to observe it; compilation is currently deferred.Expected and actual behavior
All TCB consumers must observe or enforce the sole original process window. Actual source still accesses removed per-TCB policy fields. Legacy transfer should call the validated original-owner predicate, rootless controls should observe the actual process window, and malformed-window controls should assert rejection without mutating a descriptive snapshot. Staged request-envelope window fields remain valid and must not be removed.
Environment and identity
Evidence and prior checks
The removed declaration and surviving field accesses are direct source observations. No compiler error text, successful compilation, unit/VM pass or CI result is claimed. Complete the full source consumer migration and update stale backing-lifetime documentation. Rustfmt application and source/reference bookkeeping remain separate from deferred product checks.
Tracking
Native implementation, Kernel review, process storage contract, and phase completion. The issue may close when all listed source consumers migrate and coherent signed adoption is published; execution validation remains deferred.
Resolution
Kernel's complete consumer migration replaces every remaining removed-TCB-window reference with original-owner admission or observation. Rootless and malformed-window controls retain exact refusal/ceiling coverage, and backing-lifetime documentation reflects the actual process owner. Integration adopts that signed revision in every applicable catalog; compiled helper and Rootd remain unchanged. Rustfmt is applied. Read-only source inventory confirms only valid staged request-envelope window fields remain. The source defect is resolved; compilation, tests, lint, VM/profiler execution and CI observation remain deferred.
erikinkinen referenced this issue from erix/docs2026-10-04 14:19:20 +02:00
erikinkinen referenced this issue from erix/integration2026-10-04 14:19:20 +02:00