Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kasan: update outdated comment

kmalloc_large() was renamed kmalloc_large_noprof() by commit 7bd230a26648
("mm/slab: enable slab allocation tagging for kmalloc and friends"), and
subsequently renamed __kmalloc_large_noprof() by commit a0a44d9175b3 ("mm,
slab: don't wrap internal functions with alloc_hooks()"), making it an
internal implementation detail.

Large kmalloc allocations are now performed through the public kmalloc()
interface directly, making the reference to KMALLOC_MAX_SIZE also stale
(KMALLOC_MAX_CACHE_SIZE would be more accurate). Remove the references to
kmalloc_large() and KMALLOC_MAX_SIZE, and rephrase the description for
large kmalloc allocations.

Link: https://lkml.kernel.org/r/20260312053812.1365-1-kexinsun@smail.nju.edu.cn
Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
Suggested-by: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Assisted-by: unnamed:deepseek-v3.2 coccinelle
Reviewed-by: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Konovalov <andreyknvl@gmail.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Julia Lawall <julia.lawall@inria.fr>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Kexin Sun and committed by
Andrew Morton
d4e981b2 a2e0c066

+4 -4
+4 -4
include/linux/kasan.h
··· 352 352 * kasan_mempool_unpoison_object(). 353 353 * 354 354 * This function operates on all slab allocations including large kmalloc 355 - * allocations (the ones returned by kmalloc_large() or by kmalloc() with the 356 - * size > KMALLOC_MAX_SIZE). 355 + * allocations (i.e. the ones backed directly by the buddy allocator rather 356 + * than kmalloc slab caches). 357 357 * 358 358 * Return: true if the allocation can be safely reused; false otherwise. 359 359 */ ··· 381 381 * original tags based on the pointer value. 382 382 * 383 383 * This function operates on all slab allocations including large kmalloc 384 - * allocations (the ones returned by kmalloc_large() or by kmalloc() with the 385 - * size > KMALLOC_MAX_SIZE). 384 + * allocations (i.e. the ones backed directly by the buddy allocator rather 385 + * than kmalloc slab caches). 386 386 */ 387 387 static __always_inline void kasan_mempool_unpoison_object(void *ptr, 388 388 size_t size)