[lvc-project] [PATCH mm] mm: hugetlb: Add checks for NULL for vma returned from find_vma. find_vma may return NULL, that's why its return value is usually checked for NULL.
Екатерина Есина
eesina at astralinux.ru
Mon Jan 16 18:10:18 MSK 2023
Sorry, I've noticed that I'd sent the patch without description and sent version 2. Function find_vma may return NULL, that's why its return value is usually checked for NULL. In this case vma and its fields also should be checked before dereferencing to avoid NULL pointer dereference Best regards, Ekaterina Esina
-----Original Message-----
From: David <david at redhat.com>
To: Esina <eesina at astralinux.ru>; Mike <mike.kravetz at oracle.com>
Cc: Andrew <akpm at linux-foundation.org>; linux-mm <linux-mm at kvack.org>; linux-kernel <linux-kernel at vger.kernel.org>; lvc-project <lvc-project at linuxtesting.org>
Date: Monday, 16 January 2023 4:24 PM MSK
Subject: Re: [PATCH mm] mm: hugetlb: Add checks for NULL for vma returned from find_vma. find_vma may return NULL, that's why its return value is usually checked for NULL.
On 16.01.23 11:05, Esina Ekaterina wrote:
> Found by Astra Linux on behalf of Linux Verification Center
> (linuxtesting.org) with SVACE.
Please trim the subject and move details to the description.
What are the symptoms? How exactly does this BUG manifest? What is this
patch fixing?
--
Thanks,
David / dhildenb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://linuxtesting.org/pipermail/lvc-project/attachments/20230116/04cc608f/attachment.html>
More information about the lvc-project
mailing list