Messages in this thread | | | Date | Fri, 15 Sep 2023 14:03:22 -0700 | From | Kees Cook <> | Subject | Re: [RFC PATCH 06/14] mm/slub: pass additional args to alloc_slab_page |
| |
On Fri, Sep 15, 2023 at 10:59:25AM +0000, Matteo Rizzo wrote: > From: Jann Horn <jannh@google.com> > > This is refactoring in preparation for SLAB_VIRTUAL. > > The implementation of SLAB_VIRTUAL needs access to struct kmem_cache in > alloc_slab_page in order to take unused slabs from the slab freelist, > which is per-cache. > > In addition to that it passes two different sets of GFP flags. > meta_gfp_flags is used for the memory backing the metadata region and > page tables, and gfp_flags for the data memory. > > Signed-off-by: Jann Horn <jannh@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
-- Kees Cook
| |