Re: [PATCH 08/10] kfence: Remove mention of PG_slab

Harry Yoo
2025-06-09T03:43:15Z

On Fri, Jun 06, 2025 at 11:22:10PM +0100, Matthew Wilcox (Oracle) wrote:
> Improve the documentation slightly, assuming I understood it correctly.
>
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> ---

Acked-by: Harry Yoo <harry.yoo@oracle.com>

> mm/kfence/core.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/mm/kfence/core.c b/mm/kfence/core.c
> index 102048821c22..0ed3be100963 100644
> --- a/mm/kfence/core.c
> +++ b/mm/kfence/core.c
> @@ -605,8 +605,8 @@ static unsigned long kfence_init_pool(void)
> pages = virt_to_page(__kfence_pool);
>
> /*
> - * Set up object pages: they must have PG_slab set, to avoid freeing
> - * these as real pages.
> + * Set up object pages: they must have PGTY_slab set to avoid freeing
> + * them as real pages.
> *
> * We also want to avoid inserting kfence_free() in the kfree()
> * fast-path in SLUB, and therefore need to ensure kfree() correctly
> --
> 2.47.2
>
>

--
Cheers,
Harry / Hyeonggon