Re: [PATCH RFC 00/19] mm: Add __GFP_UNMAPPED
From: Mike Rapoport
Date: Fri Mar 06 2026 - 13:19:56 EST
On Fri, Mar 06, 2026 at 01:31:15PM +0100, Kevin Brodsky wrote:
> On 05/03/2026 16:58, Brendan Jackman wrote:
>
> > Right, and actually just today someone pointed out mm/execmem.c to me, I
> > think execmem_cache_populate() is basically doing the same thing
> > (although it's also creating a separate virtual mapping).
>
> Ah interesting I didn't know about that cache. It does have
> similarities, and the motivation seems similar too.
The motivation for execmem cache is slightly different. The goal there was
to ensure kernel's executable memory (modules, kprobes, ftrace and
potentially BPF) is mapped at PMD level at vmalloc address space.
And the removal of the direct map alias for execmem is rather a side effect :)
But sure, there are similarities.
--
Sincerely yours,
Mike.