[BUG] Selector-race VM fixture bypasses native exact-entry acquisition #8

Closed
opened 2026-10-01 23:51:42 +02:00 by erikinkinen · 1 comment
Owner

Summary

Native exact-entry acquisition bypassed Ramfsd's selector-race hook. The VM case
could pass after an ordinary mkdir without injecting the intended race.

Reproduction

At Ramfsd d159c5a3, compare ACQUIRE_EXACT_ENTRY_V1 with the legacy
OPEN_EXACT_ENTRY dispatch. Only the latter calls the hook. The original
appliance-disk-image-exact-selector-race-negative case accepts SELECTOR0
without proving that injection ran.

Expected and actual behavior

Inject rename/replacement after acquiring the original parent, preserve that
parent's identity, and reject an uninjected run. The old hook missed native
acquisition and expected BUSY from rename despite retained-object lifetime.
Failed injection must retire its original acquisition before refusing.

Environment and identity

Originally found by source inspection at Ramfsd d159c5a3, Vfsd 4f18e43e and
Integration 914650c7. The fixture targets x86-64 QEMU and uses the existing
private filesystem endpoint and physical consent route. No image or toolchain
identity was recorded for that inspection; the last working revision is unknown.

Evidence and prior checks

Original native dispatch
and original scenario.
The repaired fixture requires unique, ordered RACESETUP0, SELECTOR0 and
REPLACEMENT0 alongside the existing exit, input and cleanup gates.

Tracking

Ramfsd review,
Integration review,
native ownership,
fixture contract,
manual review,
Phase 6 tracker.

## Summary Native exact-entry acquisition bypassed Ramfsd's selector-race hook. The VM case could pass after an ordinary `mkdir` without injecting the intended race. ## Reproduction At Ramfsd `d159c5a3`, compare `ACQUIRE_EXACT_ENTRY_V1` with the legacy `OPEN_EXACT_ENTRY` dispatch. Only the latter calls the hook. The original `appliance-disk-image-exact-selector-race-negative` case accepts `SELECTOR0` without proving that injection ran. ## Expected and actual behavior Inject rename/replacement after acquiring the original parent, preserve that parent's identity, and reject an uninjected run. The old hook missed native acquisition and expected `BUSY` from rename despite retained-object lifetime. Failed injection must retire its original acquisition before refusing. ## Environment and identity Originally found by source inspection at Ramfsd `d159c5a3`, Vfsd `4f18e43e` and Integration `914650c7`. The fixture targets x86-64 QEMU and uses the existing private filesystem endpoint and physical consent route. No image or toolchain identity was recorded for that inspection; the last working revision is unknown. ## Evidence and prior checks [Original native dispatch](https://git.erikinkinen.fi/erix/ramfsd/src/commit/d159c5a33f4ed23b51385a697d3fc7f3d709276e/src/dispatch/acquisition/exact_entry.rs) and [original scenario](https://git.erikinkinen.fi/erix/integration/src/commit/914650c7004260904e453f4e3e9f2b2531bc531c/tests/scenarios/appliance-disk-image-exact-selector-race-negative.toml). The repaired fixture requires unique, ordered `RACESETUP0`, `SELECTOR0` and `REPLACEMENT0` alongside the existing exit, input and cleanup gates. ## Tracking [Ramfsd review](https://git.erikinkinen.fi/erix/ramfsd/pulls/2), [Integration review](https://git.erikinkinen.fi/erix/integration/pulls/12), [native ownership](https://git.erikinkinen.fi/erix/vfsd/issues/16), [fixture contract](https://git.erikinkinen.fi/erix/integration/src/branch/feature/posix-compat/docs/exact-selector-race.md), [manual review](https://git.erikinkinen.fi/erix/docs/pulls/4), [Phase 6 tracker](https://git.erikinkinen.fi/erix/integration/issues/65).
Author
Owner

CI 2825 at
f4ff9683 exercises the repaired native fixture with Ramfsd 29acd773 and passes.
The run builds the selector-race feature artifact and requires all three ordered
zero-status markers, along with the original input, exit and cleanup gates.

This confirms the fixture repair. The historical observer exception in
Integration #64 remains
separate.

[CI 2825](https://git.erikinkinen.fi/erix/integration/actions/runs/2825) at `f4ff9683` exercises the repaired native fixture with Ramfsd `29acd773` and passes. The run builds the selector-race feature artifact and requires all three ordered zero-status markers, along with the original input, exit and cleanup gates. This confirms the fixture repair. The historical observer exception in [Integration #64](https://git.erikinkinen.fi/erix/integration/issues/64) remains separate.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:35:11 +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/ramfsd#8
No description provided.