[BUG] Stale realm configuration fixture omits a required count and uses a short buffer #4

Closed
opened 2026-09-30 06:17:34 +02:00 by erikinkinen · 0 comments
Owner

Summary

A public realm-configuration test still constructs RealmArenaCountsV1 without the required supplementary_groups field. The same test later encodes a client append into an obsolete 80-byte output. These stale fixtures prevent the test target from compiling and would reject its nominal successful encode after compilation. This finding comes from source inspection; no compiler or test execution was performed.

Reproduction

At LibIPC revision 08c3a9d05e, inspect tests/realm_public_clients.rs, public_counted_plan_extent_must_be_addressable_before_admission. Its complete RealmArenaCountsV1 initializer omits supplementary_groups. Compare that initializer with the mandatory struct field and compare its 80-byte output with the client append encoder's then-current 88-byte frame. A proposed executable reproduction is cargo test --test realm_public_clients; it has not been run under the current testing deferral.

Expected and actual behavior

The independently authored overflow control should compile and preserve output on its deliberate overflow cases, then encode a valid current-width append before asserting counted overflow precedence. Source instead shows an incomplete struct literal and an undersized success buffer. No compiler error text, exit status or CI result is claimed.

Environment and identity

  • Component: LibIPC 08c3a9d05e.
  • Integration source graph: 450c6f2a0c4866ed476375239847c7667395d585.
  • Host integration-test source; no VM image, firmware or native authority involved.
  • Toolchain execution deferred; last known working revision unknown.

Evidence and prior checks

Authenticated process creation-mask configuration and exchange are implemented and published within full Open/openat: lib-ipc ec802763, lib-posixabi c81f92e5, launchd 1e3ebccd, posixd 6ca3e122, exsh 06056100, docs 468095f5, integration d8413bf1. Full conditional creation remains open; the complete ownership and inheritance design is recorded before ABI implementation.

Canonical configuration/pulls require minor four. Each original client explicitly carries a checked nine-bit initial mask in its unchanged 72-byte record. Owner appends have a distinct 60-byte client record; old frames are rejected. No host, environment, UID-zero exception or omitted-field default supplies policy. Launchd preserves the mask through reversible sorting by using only the remaining reserved u32 for temporary ordinals. Posixd reserves policy with the original counted receiver and verifies it against the frozen digest-covered plan before serving.

Compatibility 1.7 adds Umask operation11. Actual sealed CLAIM admission selects the exact native process generation. A complete previous-mask reply is prepared before one process-local exchange; only low permission bits of the argument are retained. Failed or ambiguous COMPLETE preserves the result and effect under its original serving owner without replay or rollback. Terminal retirement disables selection. No descriptor, filesystem handle, provider call, native endpoint or capability grant is added. The live credential view reports current policy rather than the initial frozen value.

Twelve new unit controls are authored and unrun, alongside migrated independent wire/C constants, original producer fixtures and existing sorting/credential controls. The native two-client workload configures masks027 and077, changes them independently before reciprocal channel traffic, then checks and restores them after peer participation. The LibIPC fixture defect and Launchd fixture defect are corrected and closed under the testing waiver. Reproductions remain explicitly source-derived: missing count, obsolete frame/storage sizes and addressability assumptions were corrected, and the canonical digest fixture was authored independently without executing EriX code.

Conditional creation must still consume current process policy, fresh held-parent evidence and complete default ACLs under original acquisition custody. Persistent inheritance, complete provider policy, libc/shell process integration and fork/exec inheritance remain unfinished. No full Open acceptance credit is added: 16.91% weighted, 5.21% whole acceptance; 21/460 parents and 441/902 sub-items. Both full EriX guest build generations and external Rust/LLVM rebuilding inside EriX remain required and unperformed. Tests, builds, lint checks, documentation generation, VM/profiler execution and CI observation remain deferred. No executed pass, warning-free build or measured performance result is claimed.

Earlier evidence follows; the process-mask implementation above is current.

The complete initializer lacks supplementary_groups, which is required by the current counted-storage type. The success path passes an 80-byte slice to the canonical append encoder. This is a source-derived fixture defect, independent of CI outcomes. Update the explicit group count and current output capacity while retaining overflow/error-precedence assertions. The process-mask framing migration must also preserve this control.

Tracking

Related full Open work and phase completion tracking. Use the coordinated LibIPC revision graph. Testing remains deferred; authored corrections must not be reported as executed passes.

## Summary A public realm-configuration test still constructs RealmArenaCountsV1 without the required supplementary_groups field. The same test later encodes a client append into an obsolete 80-byte output. These stale fixtures prevent the test target from compiling and would reject its nominal successful encode after compilation. This finding comes from source inspection; no compiler or test execution was performed. ## Reproduction At LibIPC revision 08c3a9d05ef10b8f1eca48a03bfbb5f4a8abd520, inspect tests/realm_public_clients.rs, public_counted_plan_extent_must_be_addressable_before_admission. Its complete RealmArenaCountsV1 initializer omits supplementary_groups. Compare that initializer with the mandatory struct field and compare its 80-byte output with the client append encoder's then-current 88-byte frame. A proposed executable reproduction is cargo test --test realm_public_clients; it has not been run under the current testing deferral. ## Expected and actual behavior The independently authored overflow control should compile and preserve output on its deliberate overflow cases, then encode a valid current-width append before asserting counted overflow precedence. Source instead shows an incomplete struct literal and an undersized success buffer. No compiler error text, exit status or CI result is claimed. ## Environment and identity - Component: LibIPC 08c3a9d05ef10b8f1eca48a03bfbb5f4a8abd520. - Integration source graph: 450c6f2a0c4866ed476375239847c7667395d585. - Host integration-test source; no VM image, firmware or native authority involved. - Toolchain execution deferred; last known working revision unknown. ## Evidence and prior checks Authenticated process creation-mask configuration and exchange are implemented and published within [full Open/openat](https://git.erikinkinen.fi/erix/posixd/issues/17): [lib-ipc `ec802763`](https://git.erikinkinen.fi/erix/lib-ipc/commit/ec8027630ac2433851a02a681f3921eb235f3877), [lib-posixabi `c81f92e5`](https://git.erikinkinen.fi/erix/lib-posixabi/commit/c81f92e537066f9596d53d42a9a9d214c2be11a3), [launchd `1e3ebccd`](https://git.erikinkinen.fi/erix/launchd/commit/1e3ebccd1fe2e005c2c6d3af4419886d38237d91), [posixd `6ca3e122`](https://git.erikinkinen.fi/erix/posixd/commit/6ca3e122835c83c74ee153785d67c97cea32d353), [exsh `06056100`](https://git.erikinkinen.fi/erix/exsh/commit/060561008337aa4d95761ef2747b184fe9a9d72e), [docs `468095f5`](https://git.erikinkinen.fi/erix/docs/commit/468095f5465b07eab28915822805b1d5730db383), [integration `d8413bf1`](https://git.erikinkinen.fi/erix/integration/commit/d8413bf1bb92414b6b84ffec9e3839695b1439dc). Full conditional creation remains open; the complete ownership and inheritance design is recorded before ABI implementation. Canonical configuration/pulls require minor four. Each original client explicitly carries a checked nine-bit initial mask in its unchanged 72-byte record. Owner appends have a distinct 60-byte client record; old frames are rejected. No host, environment, UID-zero exception or omitted-field default supplies policy. Launchd preserves the mask through reversible sorting by using only the remaining reserved u32 for temporary ordinals. Posixd reserves policy with the original counted receiver and verifies it against the frozen digest-covered plan before serving. Compatibility 1.7 adds Umask operation11. Actual sealed CLAIM admission selects the exact native process generation. A complete previous-mask reply is prepared before one process-local exchange; only low permission bits of the argument are retained. Failed or ambiguous COMPLETE preserves the result and effect under its original serving owner without replay or rollback. Terminal retirement disables selection. No descriptor, filesystem handle, provider call, native endpoint or capability grant is added. The live credential view reports current policy rather than the initial frozen value. Twelve new unit controls are authored and unrun, alongside migrated independent wire/C constants, original producer fixtures and existing sorting/credential controls. The native two-client workload configures masks027 and077, changes them independently before reciprocal channel traffic, then checks and restores them after peer participation. The [LibIPC fixture defect](https://git.erikinkinen.fi/erix/lib-ipc/issues/4) and [Launchd fixture defect](https://git.erikinkinen.fi/erix/launchd/issues/14) are corrected and closed under the testing waiver. Reproductions remain explicitly source-derived: missing count, obsolete frame/storage sizes and addressability assumptions were corrected, and the canonical digest fixture was authored independently without executing EriX code. Conditional creation must still consume current process policy, fresh held-parent evidence and complete default ACLs under original acquisition custody. Persistent inheritance, complete provider policy, libc/shell process integration and fork/exec inheritance remain unfinished. No full Open acceptance credit is added: 16.91% weighted, 5.21% whole acceptance; 21/460 parents and 441/902 sub-items. Both full EriX guest build generations and external Rust/LLVM rebuilding inside EriX remain required and unperformed. Tests, builds, lint checks, documentation generation, VM/profiler execution and CI observation remain deferred. No executed pass, warning-free build or measured performance result is claimed. Earlier evidence follows; the process-mask implementation above is current. The complete initializer lacks supplementary_groups, which is required by the current counted-storage type. The success path passes an 80-byte slice to the canonical append encoder. This is a source-derived fixture defect, independent of CI outcomes. Update the explicit group count and current output capacity while retaining overflow/error-precedence assertions. The process-mask framing migration must also preserve this control. ## Tracking Related [full Open work](https://git.erikinkinen.fi/erix/posixd/issues/17) and [phase completion tracking](https://git.erikinkinen.fi/erix/integration/issues/65). Use the coordinated LibIPC revision graph. Testing remains deferred; authored corrections must not be reported as executed passes.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:34:47 +01:00
Sign in to join this conversation.
No milestone
No project
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/lib-ipc#4
No description provided.