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

From: Christoph Hellwig
Date: Fri Feb 17 2023 - 10:35:51 EST


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..