[BUG] Native redirection assigns a wide wire mode to narrow creation metadata #17
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/vfsd#17
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 redirection draft assigns the public request's
u32creation mode directly to the native creation metadata'su16field. This is a source type mismatch in the draft runtime path and prevents that assignment from compiling. It was found by source inspection; no compiler diagnostic or execution result is claimed.Reproduction
Inspect
src/redirection/native.rsat Vfsd revisionf91883fe275e2368758d8843dff498e2f07bacc9: theFsCreationMetadataV1initializer usesmode: request.creation_mode. Compare the selected LibIPC definitions insrc/body/vfs_redirection.rs(creation_mode: u32) andsrc/body/fs_creation_metadata.rs(mode: u16). The mismatch is deterministic in the source. Builds and tests remain deferred by request.Expected and actual behavior
An admitted shell mode must reach native metadata with all permitted bits preserved. Invalid wire modes must be refused before provider effects. The draft directly assigns distinct integer types. Use a checked narrowing conversion after the existing wire-policy validation and author controls for zero, the highest admitted mode and invalid wider inputs.
Environment and identity
f91883fe275e2368758d8843dff498e2f07bacc9; selected compiled LibIPCeb51702fe7eb9125d97b5f5db5ed94ee61a7df46.e4e6cb58bb639cbac326043e818e52054b084f7e; the affected intermediate draft has not been selected there.Evidence and prior checks
Source comparison of the initializer and both type definitions. No tests, builds, checks, VM runs or CI monitoring were performed. A checked conversion and one independent boundary control are authored; execution is deferred.
Tracking
Related migration: Vfsd#16. Review: Vfsd PR#3.
Source repair is signed and pushed in the checked conversion. The new boundary control covers zero, the highest admitted mode and invalid wider values. Closed as source-complete under the testing/CI waiver; no executed compiler, test or CI result is asserted.
erikinkinen referenced this issue2026-10-01 12:28:38 +02:00
erikinkinen referenced this issue from erix/integration2026-10-01 12:28:42 +02:00
erikinkinen referenced this issue2026-10-01 12:28:42 +02:00
erikinkinen referenced this issue from erix/docs2026-10-01 12:28:43 +02:00
erikinkinen referenced this issue from erix/integration2026-10-01 12:28:44 +02:00
erikinkinen referenced this issue from erix/posixd2026-10-01 12:28:45 +02:00
erikinkinen referenced this issue from erix/lib-ipc2026-10-01 12:28:45 +02:00
erikinkinen referenced this issue from erix/ramfsd2026-10-01 12:28:45 +02:00
erikinkinen referenced this issue from erix/e2fsd2026-10-01 12:28:46 +02:00
erikinkinen referenced this issue from erix/fatd2026-10-01 12:59:08 +02:00