xia-chao opened PR #15058 from xia-chao:wasi-tls-write-permit to bytecodealliance:main:
The TLS output stream let a write go past the permit returned by check-write. It traps now.
check-write is what tells a guest how much it can write without blocking, so a write above that number has to trap instead of being accepted.
xia-chao requested wasmtime-wasi-reviewers for a review on PR #15058.
xia-chao removed the review request for wasmtime-wasi-reviewers from PR #15058.
xia-chao requested rvolosatovs for a review on PR #15058.
xia-chao requested cfallin for a review on PR #15058.
xia-chao requested wasmtime-core-reviewers for a review on PR #15058.
xia-chao removed the review request for wasmtime-core-reviewers from PR #15058.
xia-chao updated PR #15058.
cfallin requested pchickey for a review on PR #15058.
cfallin commented on PR #15058:
Tagging in @pchickey to review; I don't know the implementation constraints and implications here well enough to review, sorry.
:memo: rvolosatovs submitted PR review:
Especially since this is specific to p2, I feel like testing here is excessive, personally I'd expect the two unit tests added to be perfectly sufficient.
Other than that it looks good to me.@pchickey WDYT?
xia-chao updated PR #15058.
:thumbs_up: rvolosatovs submitted PR review.
rvolosatovs added PR #15058 wasi-tls: enforce the check-write permit in the p2 output stream to the merge queue.
:check: rvolosatovs merged PR #15058.
rvolosatovs removed PR #15058 wasi-tls: enforce the check-write permit in the p2 output stream from the merge queue.
Last updated: Nov 19 2026 at 20:05 UTC