vm: enable memory advice syscalls - #33
Open
zbarsky-openai wants to merge 1 commit into
Open
zbarsky-openai wants to merge 1 commit into
zbarsky-openai wants to merge 1 commit into
Conversation
Node/V8 actions fail inside the VM with: ```text # Fatal error in , line 0 # Check failed: 0 == ret. ``` A direct guest probe identifies the missing kernel operations: ```text madvise-normal: result=-1 errno=38 (ENOSYS) madvise-dontneed: result=-1 errno=38 (ENOSYS) madvise-free: result=-1 errno=38 (ENOSYS) ``` The compact kernels use `allnoconfig`, and Linux gates these operations on `CONFIG_ADVISE_SYSCALLS`. Enable it in both ARM64 and x86_64 kernels. The repaired ARM64 guest supports all three advice modes, runs ordinary V8 JIT and WebAssembly without special Node flags, and successfully builds and verifies a complete Vite application. Both architecture configurations resolve with memory-advice syscalls enabled.
This was referenced Sep 14, 2026
dzbarsky
added a commit
that referenced
this pull request
Sep 14, 2026
Enable CONFIG_ADVISE_SYSCALLS in the ARM64 and x86_64 VM kernels. The compact kernels use allnoconfig, which otherwise disables madvise and fadvise. Node/V8 requires madvise and fails when it returns ENOSYS. Apply the configuration change from PR #33. Validation: bazel build and bazel test //... passed with --config=remote and Linux-glibc target and host platforms (78 targets, 2 tests). The macOS Virtualization.framework suite passed with tools/e2e.sh vm.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Node/V8 actions fail inside the VM with:
A direct guest probe identifies the missing kernel operations:
The compact kernels use
allnoconfig, and Linux gates these operations onCONFIG_ADVISE_SYSCALLS. Enable it in both ARM64 and x86_64 kernels.The repaired ARM64 guest supports all three advice modes, runs ordinary
V8 JIT and WebAssembly without special Node flags, and successfully builds
and verifies a complete Vite application. Both architecture configurations
resolve with memory-advice syscalls enabled.