[lvc-project] [PATCH] mm/vmalloc: fix unsafe dereference of potential null ptr in vmalloc_init()

Christoph Hellwig hch at infradead.org
Fri Feb 17 18:35:28 MSK 2023


On Fri, Feb 17, 2023 at 03:51:05PM +0300, Alexander Sapozhnikov wrote:
> Return value of a function 'kmem_cache_create' is dereferenced 
> at vmalloc.c:2444 without checking for null, but it is usually 
> checked for this function.
> 
> Found by Linux Verification Center (linuxtesting.org) with SVACE.

I think that checker needs to learn about SLAB_PANIC..



More information about the lvc-project mailing list