Re: [PATCH v2] slab: Warn on duplicate cache names when DEBUG_VM=y

From: Vlastimil Babka
Date: Thu Aug 08 2024 - 04:28:40 EST


On 8/7/24 19:32, Christoph Lameter (Ampere) wrote:
> On Wed, 7 Aug 2024, Pedro Falcato wrote:
>
>> Duplicate slab cache names can create havoc for userspace tooling that
>> expects slab cache names to be unique. This is a reasonable expectation.
>
> Yes that is reasonable. This is done during slab creation and so is not a
> performance sensitive operation. The sanity check could be done even
> without CONFIG_DEBUG_VM

We can perhaps move it outside CONFIG_DEBUG_VM in few cycles.

> Acked-by: Christoph Lameter <cl@xxxxxxxxx>

Added to slab/for-next, thanks!