[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f4f0e0b8-e04f-132b-7dbd-8bf1fc717544@google.com>
Date: Tue, 4 Jul 2023 10:58:08 -0700 (PDT)
From: David Rientjes <rientjes@...gle.com>
To: Matteo Rizzo <matteorizzo@...gle.com>
cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org, cl@...ux.com,
penberg@...nel.org, iamjoonsoo.kim@....com,
akpm@...ux-foundation.org, vbabka@...e.cz,
roman.gushchin@...ux.dev, 42.hyeyoo@...il.com, jannh@...gle.com
Subject: Re: [PATCH v2] mm/slub: refactor freelist to use custom type
On Tue, 4 Jul 2023, Matteo Rizzo wrote:
> From: Jann Horn <jannh@...gle.com>
>
> Currently the SLUB code represents encoded freelist entries as "void*".
> That's misleading, those things are encoded under
> CONFIG_SLAB_FREELIST_HARDENED so that they're not actually dereferencable.
>
> Give them their own type, and split freelist_ptr() into one function per
> direction (one for encoding, one for decoding).
>
> Signed-off-by: Jann Horn <jannh@...gle.com>
> Co-developed-by: Matteo Rizzo <matteorizzo@...gle.com>
> Signed-off-by: Matteo Rizzo <matteorizzo@...gle.com>
Acked-by: David Rientjes <rientjes@...gle.com>
Powered by blists - more mailing lists