]> Git Repo - linux.git/commit
slab: Warn on duplicate cache names when DEBUG_VM=y
authorPedro Falcato <[email protected]>
Wed, 7 Aug 2024 09:07:46 +0000 (10:07 +0100)
committerVlastimil Babka <[email protected]>
Mon, 26 Aug 2024 19:19:54 +0000 (21:19 +0200)
commit4c39529663b93165953ecf9b1a9ea817358dcd06
tree095b69ae2e0f5a3ed533c8b20e782f487d552547
parent5be63fc19fcaa4c236b307420483578a56986a37
slab: Warn on duplicate cache names when DEBUG_VM=y

Duplicate slab cache names can create havoc for userspace tooling that
expects slab cache names to be unique [1]. This is a reasonable
expectation.

Sadly, too many duplicate name problems are out there in the wild, so
simply warn instead of pr_err() + failing the sanity check.

[email protected]: change to WARN_ON(), see the discussion at [2] ]

Link: https://lore.kernel.org/linux-fsdevel/2d1d053da1cafb3e7940c4f25952da4f0af34e38.1722293276.git.osandov@fb.com/
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Pedro Falcato <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>
mm/slab_common.c
This page took 0.050785 seconds and 4 git commands to generate.