From 599d01b21cb586c2774c2cb4b7b5466a4de377a6 Mon Sep 17 00:00:00 2001 From: zbarsky-openai Date: Mon, 24 Aug 2026 00:56:36 -0400 Subject: [PATCH] vm: enable memory advice syscalls 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. --- vm/linux.config | 1 + vm/linux_x86_64.config | 1 + 2 files changed, 2 insertions(+) diff --git a/vm/linux.config b/vm/linux.config index 69abcd9..96812f1 100644 --- a/vm/linux.config +++ b/vm/linux.config @@ -1,6 +1,7 @@ CONFIG_64BIT=y CONFIG_ACTIONDFS_FS=y CONFIG_ACPI=y +CONFIG_ADVISE_SYSCALLS=y CONFIG_ARM64=y CONFIG_SMP=y CONFIG_NR_CPUS=64 diff --git a/vm/linux_x86_64.config b/vm/linux_x86_64.config index 278a71f..d238aa2 100644 --- a/vm/linux_x86_64.config +++ b/vm/linux_x86_64.config @@ -1,6 +1,7 @@ CONFIG_64BIT=y CONFIG_ACTIONDFS_FS=y CONFIG_ACPI=y +CONFIG_ADVISE_SYSCALLS=y CONFIG_HPET_TIMER=y CONFIG_X86_PM_TIMER=y CONFIG_X86_64=y