Skip to content

fix(wasm): only precreate-and-retry path_open on NOENT#243

Merged
NathanFlurry merged 1 commit into
mainfrom
stack/fix-wasm-only-precreate-and-retry-path_open-on-noent-wsuvtsmm
Jul 3, 2026
Merged

fix(wasm): only precreate-and-retry path_open on NOENT#243
NathanFlurry merged 1 commit into
mainfrom
stack/fix-wasm-only-precreate-and-retry-path_open-on-noent-wsuvtsmm

Conversation

@NathanFlurry

Copy link
Copy Markdown
Member

The external-redirect fix (cd4683c) dropped the standalone-only gate on
the precreate+retry block, so a sidecar-managed path_open that failed
with EACCES got a precreate attempt and its errno replaced by the
retry's result — a deny-write guest saw the wrong errno (caught by
wasm_path_open_write_goes_through_kernel_filesystem_permissions when a
warm runner was reused). Precreate-and-retry exists for creatable
targets reported missing (>> append redirect targets), so gate it on
the delegate returning NOENT; permission errors propagate untouched.
Redirect regressions (wasm_shell_) and the wasm suite stay green.

The external-redirect fix (cd4683c) dropped the standalone-only gate on
the precreate+retry block, so a sidecar-managed path_open that failed
with EACCES got a precreate attempt and its errno replaced by the
retry's result — a deny-write guest saw the wrong errno (caught by
wasm_path_open_write_goes_through_kernel_filesystem_permissions when a
warm runner was reused). Precreate-and-retry exists for creatable
targets reported missing (`>>` append redirect targets), so gate it on
the delegate returning NOENT; permission errors propagate untouched.
Redirect regressions (wasm_shell_) and the wasm suite stay green.
@NathanFlurry

Copy link
Copy Markdown
Member Author

Stack for rivet-dev/secure-exec

Get stack: forklift get 243
Push local edits: forklift submit
Merge when ready: forklift merge 243

@railway-app railway-app Bot temporarily deployed to secure-exec / secure-exec-pr-243 July 3, 2026 03:26 Destroyed
@NathanFlurry NathanFlurry merged commit 4ffd056 into main Jul 3, 2026
3 of 5 checks passed
@NathanFlurry NathanFlurry deleted the stack/fix-wasm-only-precreate-and-retry-path_open-on-noent-wsuvtsmm branch July 3, 2026 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant