]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
slab: wrap debug slab validation in validate_slab_ptr()
authorVlastimil Babka <vbabka@suse.cz>
Mon, 15 Sep 2025 13:55:09 +0000 (15:55 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Mon, 15 Sep 2025 14:10:10 +0000 (16:10 +0200)
commit86169b00f89633e255048feb5dde438dd3522fd4
tree38a15e741c41cc83632aea7ce924ad3e26079960
parentf4930de03dcf4a3f2515546f5b3c04bac016685d
slab: wrap debug slab validation in validate_slab_ptr()

This will make it clear where we currently cast struct slab to folio
only to check the slab type, and allow to change the implementation
later with memdesc conversion.

For now use a struct page based implementation instead of struct folio
to be compatible with further upcoming changes.

Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c