From 4ee74aeb248babcd3d343b8e6fac3c05515ea882 Mon Sep 17 00:00:00 2001 From: Peron Date: Tue, 9 Jun 2026 21:25:01 +0800 Subject: [PATCH] fix(config): disable COMPAT_BRK so randomize_va_space defaults to 2 CONFIG_COMPAT_BRK=y makes the kernel boot with randomize_va_space=1 (brk/heap not randomized). FEX's x86-64 JIT allocator relies on full ASLR to place its managed VA region; under randomize_va_space=1 it fails with "Failed to map VMA region" and linux/amd64 containers crash. The kernel OrbStack ships disables COMPAT_BRK (randomize_va_space=2) and runs FEX cleanly; matching that here fixes amd64 emulation. No other kernel change (VA width, SVE/SME) is needed. --- configs/arcbox-arm64.config | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/arcbox-arm64.config b/configs/arcbox-arm64.config index 241fcfd..96a53f6 100644 --- a/configs/arcbox-arm64.config +++ b/configs/arcbox-arm64.config @@ -94,6 +94,7 @@ CONFIG_MEMORY_HOTPLUG=y CONFIG_TRANSPARENT_HUGEPAGE=y CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y CONFIG_COMPACTION=y +# CONFIG_COMPAT_BRK is not set # Networking CONFIG_NET=y