[BUG] Native scope Close refuses retained children and transient cleanup stops serving #29

Closed
opened 2026-10-04 10:21:39 +02:00 by erikinkinen · 0 comments
Owner

Suspected security vulnerabilities must be reported privately using SECURITY.md. This report concerns source-confirmed Close progress and transient cleanup handling; no runtime reproduction is claimed.

Summary

The native scope Close path refuses disposal while a retained child candidate exists, including the candidate held by a blocked advisory Wait. Separately, transient provider cleanup refusal propagates out of native serving to the runtime fail-stop path. Both prevent the intended original Close from completing and draining its own scope. Fair intake alone does not remove those restrictions.

Reproduction

Source-only trace at dd1a7b8a: admit an original acquisition scope and file candidate, independently publish a peer's conflicting interval, claim a blocking Wait, then queue Close with the endpoint-implied zero handle selector. The Close parser calls ensure_no_acquisitions and returns BUSY while that candidate remains. For a separate provider refusal, close_exact_object returns BUSY and the serving error reaches runtime's fail_stop.

The authored production-path controls are scope_close_retries_original_children_without_publishing_older_cached_results and closing_receiver_generation_is_revalidated_before_provider_retry. They use independent native owners and real scope/provider fixture state. Execution, frequency in an actual image and clean-image reproduction remain unmeasured under the current testing waiver.

Expected and actual behavior

Expected: dispose only the complete original scope and its own candidates, abandon older replies before fallible cleanup, retain the original Close/native owner and retry transient cleanup without clearing semantic obligations. Caller retirement cannot prove provider cleanup, and private revocation cannot restore any abandoned reply.

Actual prior source: retained children produce a permanent BUSY guard; provider BUSY/RETRY can stop serving rather than retain bounded original Close progress. The signed source repair removes that guard, consolidates scope disposal and retains an explicit Closing phase through transient refusal. Original association and receiver generation validate before every provider retry. Private revocation may suppress Close's reply while cleanup still finishes.

Environment and identity

  • Component repository/revision and Integration source graph: Vfsd source before repair; signed repaired Vfsd; immutable Integration adoption.
  • Image profile, digest and build/runtime configuration: no image built or run for this source-only report; actual deployment-counted native storage is used by authored controls.
  • Hardware or VM, architecture, firmware and toolchain versions: no hardware/VM execution; native serving source targets x86-64. No executed toolchain result is claimed.
  • Input/session route and granted authority relevant to reproduction: original exact acquisition-scope receiver and its own provider pins; no ambient pathname lookup, new grant or packet-selected provider identity.
  • Last known working revision, if known: unknown; old serial intake could not admit Close behind Wait, so the complete requirement was already open.

Evidence and prior checks

Source inspection follows exact_dispatch, close_exact_object, retained original Call custody and runtime's error path. Repair adds original Closing progress, complete original child disposal, selective older-reply abandonment and validation before provider effects. Twelve fair-intake controls are authored and unrun, including retained cleanup through provider refusal, native caller loss, private reply abandonment and generation contradiction. The existing provider-refusal control now expects retained serving progress. Rustfmt applied without diagnostics. Tests, builds, lint, generated documentation, VM/profiler and CI observation remain deferred. No executed pass or warning-free build is claimed.

Tracking

Native serving feature, local stream sockets and concurrent mediation, Vfsd review, Docs review, Integration review, complete phase requirements.

Source repair is complete under the testing waiver; the wider mediator and guest-build requirements remain open.

  • Remove the permanent original-child guard and dispose the complete owned scope before anchors.
  • Retain original Close cleanup through transient refusal and native caller loss without restoring abandoned replies.
  • Validate the original Close/native receiver before provider effects and author independent positive/failure/generation controls.
  • Maintain inline/component/manual contracts and publish coherent signed immutable adoption.
Suspected security vulnerabilities must be reported privately using SECURITY.md. This report concerns source-confirmed Close progress and transient cleanup handling; no runtime reproduction is claimed. ## Summary The native scope Close path refuses disposal while a retained child candidate exists, including the candidate held by a blocked advisory Wait. Separately, transient provider cleanup refusal propagates out of native serving to the runtime fail-stop path. Both prevent the intended original Close from completing and draining its own scope. Fair intake alone does not remove those restrictions. ## Reproduction Source-only trace at [dd1a7b8a](https://git.erikinkinen.fi/erix/vfsd/commit/dd1a7b8af9c7a5101e5244eea0248f405753633d): admit an original acquisition scope and file candidate, independently publish a peer's conflicting interval, claim a blocking Wait, then queue Close with the endpoint-implied zero handle selector. The Close parser calls ensure_no_acquisitions and returns BUSY while that candidate remains. For a separate provider refusal, close_exact_object returns BUSY and the serving error reaches runtime's fail_stop. The authored production-path controls are scope_close_retries_original_children_without_publishing_older_cached_results and closing_receiver_generation_is_revalidated_before_provider_retry. They use independent native owners and real scope/provider fixture state. Execution, frequency in an actual image and clean-image reproduction remain unmeasured under the current testing waiver. ## Expected and actual behavior Expected: dispose only the complete original scope and its own candidates, abandon older replies before fallible cleanup, retain the original Close/native owner and retry transient cleanup without clearing semantic obligations. Caller retirement cannot prove provider cleanup, and private revocation cannot restore any abandoned reply. Actual prior source: retained children produce a permanent BUSY guard; provider BUSY/RETRY can stop serving rather than retain bounded original Close progress. The signed source repair removes that guard, consolidates scope disposal and retains an explicit Closing phase through transient refusal. Original association and receiver generation validate before every provider retry. Private revocation may suppress Close's reply while cleanup still finishes. ## Environment and identity - Component repository/revision and Integration source graph: [Vfsd source before repair](https://git.erikinkinen.fi/erix/vfsd/commit/dd1a7b8af9c7a5101e5244eea0248f405753633d); [signed repaired Vfsd](https://git.erikinkinen.fi/erix/vfsd/commit/b135d7162b30e0997f3ef56a5b74830c3944c9ee); [immutable Integration adoption](https://git.erikinkinen.fi/erix/integration/commit/b97fd34317a97d2fd4d73a1c55f817d21daa7ddc). - Image profile, digest and build/runtime configuration: no image built or run for this source-only report; actual deployment-counted native storage is used by authored controls. - Hardware or VM, architecture, firmware and toolchain versions: no hardware/VM execution; native serving source targets x86-64. No executed toolchain result is claimed. - Input/session route and granted authority relevant to reproduction: original exact acquisition-scope receiver and its own provider pins; no ambient pathname lookup, new grant or packet-selected provider identity. - Last known working revision, if known: unknown; old serial intake could not admit Close behind Wait, so the complete requirement was already open. ## Evidence and prior checks Source inspection follows exact_dispatch, close_exact_object, retained original Call custody and runtime's error path. [Repair](https://git.erikinkinen.fi/erix/vfsd/commit/b135d7162b30e0997f3ef56a5b74830c3944c9ee) adds original Closing progress, complete original child disposal, selective older-reply abandonment and validation before provider effects. Twelve fair-intake controls are authored and unrun, including retained cleanup through provider refusal, native caller loss, private reply abandonment and generation contradiction. The existing provider-refusal control now expects retained serving progress. Rustfmt applied without diagnostics. Tests, builds, lint, generated documentation, VM/profiler and CI observation remain deferred. No executed pass or warning-free build is claimed. ## Tracking [Native serving feature](https://git.erikinkinen.fi/erix/vfsd/issues/27), [local stream sockets and concurrent mediation](https://git.erikinkinen.fi/erix/posixd/issues/34), [Vfsd review](https://git.erikinkinen.fi/erix/vfsd/pulls/3), [Docs review](https://git.erikinkinen.fi/erix/docs/pulls/4), [Integration review](https://git.erikinkinen.fi/erix/integration/pulls/12), [complete phase requirements](https://git.erikinkinen.fi/erix/integration/issues/65). Source repair is complete under the testing waiver; the wider mediator and guest-build requirements remain open. - [x] Remove the permanent original-child guard and dispose the complete owned scope before anchors. - [x] Retain original Close cleanup through transient refusal and native caller loss without restoring abandoned replies. - [x] Validate the original Close/native receiver before provider effects and author independent positive/failure/generation controls. - [x] Maintain inline/component/manual contracts and publish coherent signed immutable adoption.
erikinkinen 2026-10-04 10:21:39 +02:00
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:35:19 +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/vfsd#29
No description provided.