Messages in this thread | | | Date | Mon, 27 Jun 2022 17:30:58 +0300 | Subject | Re: [PATCH] mm/kasan: Fix null pointer dereference warning in qlink_to_cache() | From | Andrey Ryabinin <> |
| |
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.
| |