Re: [PATCH v3] mm/mm_init: Introduce a boot parameter for check_pages

From: Mike Rapoport
Date: Tue Dec 02 2025 - 06:10:07 EST


On Mon, 01 Dec 2025 10:07:38 -0800, Joshua Hahn wrote:
> Use-after-free and double-free bugs can be very difficult to track down.
> The kernel is good at tracking these and preventing bad pages from being
> used/created through simple checks gated behind "check_pages_enabled".
>
> Currently, the only ways to enable this flag is by building with
> CONFIG_DEBUG_VM, or as a side effect of other checks such as
> init_on_{alloc, free}, page_poisoning, or debug_pagealloc among others.
> These solutions are powerful, but may often be too coarse in balancing
> the performance vs. safety that a user may want, particularly in
> latency-sensitive production environments.
>
> [...]

Applied to for-next branch of memblock.git tree, thanks!

[1/1] mm/mm_init: Introduce a boot parameter for check_pages
commit: a29b922955aa2bedde15876707532b982dec183c

tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock
branch: for-next

--
Sincerely yours,
Mike.