Re: [PATCH V2] arm64/mm: Limit ARCH_MMAP_RND_BITS_MAX to 23 for 42-bit VA
From: Catalin Marinas
Date: Fri Dec 04 2026 - 11:46:40 EST
On Tue, Dec 01, 2026 at 09:18:34AM +0530, Anshuman Khandual wrote:
> The existing ARCH_MMAP_RND_BITS_MAX value of 27 for 42-bit VA (64K) pgtable
> configuration allows mmap() randomization range which exceeds the available
> user space address space constraints.
>
> This can cause mmap() allocations to fail when the maximum randomization is
> enabled. Although it still requires CONFIG_EXPERT for ARCH_MMAP_RND_BITS to
> accept values up to ARCH_MMAP_RND_BITS_MAX.
Reviewed-by: Catalin Marinas <catalin.marinas@xxxxxxx>