Stream: git-wasmtime

Topic: wasmtime / PR #15320 Prevent memory growth when reservati...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2026 at 21:37):

fitzgen opened PR #15320 from fitzgen:main-backport-311470f1b7 to bytecodealliance:main:

This commit is an adjustment of the logic to grow an mmap-backed linear memory. Specifically when a memory cannot move and when the memory reservation is not page-size-aligned this means that memories may not grow to their full extent. This is required because bounds-checks assume that bytes beyond the memory_reservation tunable are all inaccessible in this scenario, but when memory_reservation is not page-size-aligned the actual capacity is beyond memory_reservation.

The fix here is to, in some situations that match what compiled code expects, to clamp the size of growth a bit more aggressively and disallow growth in situations that the compile code isn't expecting.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.md

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2026 at 21:37):

fitzgen removed the review request for wasmtime-core-reviewers from PR #15320.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2026 at 21:37):

fitzgen requested wasmtime-core-reviewers for a review on PR #15320.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2026 at 21:37):

fitzgen requested pchickey for a review on PR #15320.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2026 at 21:43):

:thumbs_up: alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2026 at 21:44):

alexcrichton has enabled auto merge for PR #15320.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2026 at 21:48):

alexcrichton added PR #15320 Prevent memory growth when reservation disallows to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2026 at 22:11):

:check: alexcrichton merged PR #15320.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2026 at 22:11):

alexcrichton removed PR #15320 Prevent memory growth when reservation disallows from the merge queue.


Last updated: Nov 19 2026 at 20:05 UTC