Re: [PATCH 09/13] x86/kconfig/64: Enable popular MM options in the defconfig

From: Peter Zijlstra
Date: Sat Jun 14 2025 - 06:39:52 EST


On Thu, May 15, 2025 at 03:27:15PM +0200, Ingo Molnar wrote:
> Since the x86 defconfig aims to be a distro kernel work-alike with
> fewer drivers and a shorter build time, enable the following
> MM options that are typically enabled on major Linux distributions:
>
> - ACPI_HOTPLUG_MEMORY, ZSWAP, SLAB hardening, MEMORY_HOTPLUG,
> MEMORY_HOTREMOVE, PAGE_REPORTING, KSM, higher DEFAULT_MMAP_MIN_ADDR,
> MEMORY_FAILURE, HWPOISON_INJECT, TRANSPARENT_HUGEPAGE,
> TRANSPARENT_HUGEPAGE_MADVISE, IDLE_PAGE_TRACKING, ZONE_DEVICE
> DEVICE_PRIVATE, ANON_VMA_NAME, USERFAULTFD, multi-gen LRU.
>
> Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>

> +CONFIG_KSM=y

Isn't this thing like a giant security fail?