Re: [PATCH] mm/kasan: Fix null pointer dereference warning in qlink_to_cache()

From: Andrey Ryabinin
Date: Mon Jun 27 2022 - 10:30:14 EST




On 6/26/22 20:03, Gautam Menghani wrote:
> The function virt_to_slab() declared in slab.h can return NULL if the
> address does not belong to a slab. This case is not handled in the
> function qlink_to_cache() in the file quarantine.c, which can cause a
> NULL pointer dereference in "virt_to_slab(qlink)->slab_cache".

qlink is always slab address, so I don't think this patch makes sense.
NAK.