* 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. [not found] <20230116100520.71277-1-eesina@astralinux.ru> @ 2023-01-16 13:24 ` David Hildenbrand 2023-01-16 15:05 ` Екатерина Есина 2023-01-16 15:10 ` Екатерина Есина 0 siblings, 2 replies; 5+ messages in thread From: David Hildenbrand @ 2023-01-16 13:24 UTC (permalink / raw) To: Esina Ekaterina, Mike Kravetz Cc: Andrew Morton, linux-mm, linux-kernel, lvc-project 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* 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. 2023-01-16 13:24 ` [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 David Hildenbrand @ 2023-01-16 15:05 ` Екатерина Есина 2023-01-16 15:10 ` Екатерина Есина 1 sibling, 0 replies; 5+ messages in thread From: Екатерина Есина @ 2023-01-16 15:05 UTC (permalink / raw) To: David Hildenbrand, Mike Kravetz Cc: Andrew Morton, linux-mm, linux-kernel, lvc-project [-- Attachment #1: Type: text/plain, Size: 863 bytes --] -----Original Message----- From: David <david@redhat.com> To: Esina <eesina@astralinux.ru>; Mike <mike.kravetz@oracle.com> Cc: Andrew <akpm@linux-foundation.org>; linux-mm <linux-mm@kvack.org>; linux-kernel <linux-kernel@vger.kernel.org>; lvc-project <lvc-project@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 [-- Attachment #2: Type: text/html, Size: 1650 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* 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. 2023-01-16 13:24 ` [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 David Hildenbrand 2023-01-16 15:05 ` Екатерина Есина @ 2023-01-16 15:10 ` Екатерина Есина 2023-01-16 15:12 ` David Hildenbrand 1 sibling, 1 reply; 5+ messages in thread From: Екатерина Есина @ 2023-01-16 15:10 UTC (permalink / raw) To: David Hildenbrand, Mike Kravetz Cc: Andrew Morton, linux-mm, linux-kernel, lvc-project [-- Attachment #1: Type: text/plain, Size: 1193 bytes --] 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@redhat.com> To: Esina <eesina@astralinux.ru>; Mike <mike.kravetz@oracle.com> Cc: Andrew <akpm@linux-foundation.org>; linux-mm <linux-mm@kvack.org>; linux-kernel <linux-kernel@vger.kernel.org>; lvc-project <lvc-project@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 [-- Attachment #2: Type: text/html, Size: 2397 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* 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. 2023-01-16 15:10 ` Екатерина Есина @ 2023-01-16 15:12 ` David Hildenbrand 2023-01-16 15:21 ` Matthew Wilcox 0 siblings, 1 reply; 5+ messages in thread From: David Hildenbrand @ 2023-01-16 15:12 UTC (permalink / raw) To: Екатерина Есина, Mike Kravetz Cc: Andrew Morton, linux-mm, linux-kernel, lvc-project On 16.01.23 16:10, Екатерина Есина wrote: > 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 Thanks, but again What are the symptoms? How exactly does this BUG manifest? For example, does the kernel crash, and if so, how can it be triggered? -- Thanks, David / dhildenb ^ permalink raw reply [flat|nested] 5+ messages in thread
* 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. 2023-01-16 15:12 ` David Hildenbrand @ 2023-01-16 15:21 ` Matthew Wilcox 0 siblings, 0 replies; 5+ messages in thread From: Matthew Wilcox @ 2023-01-16 15:21 UTC (permalink / raw) To: David Hildenbrand Cc: Екатерина Есина, Mike Kravetz, Andrew Morton, linux-mm, linux-kernel, lvc-project On Mon, Jan 16, 2023 at 04:12:48PM +0100, David Hildenbrand wrote: > On 16.01.23 16:10, Екатерина Есина wrote: > > 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 > > Thanks, but again > > What are the symptoms? How exactly does this BUG manifest? > > For example, does the kernel crash, and if so, how can it be triggered? SVACE is a static analyser. It's not very good, but the people who run it are extremely persistent about submitting patches based solely on the output of the tool and doing no human checks of their own. Probably best to just ignore them, or NACK them. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-01-16 15:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20230116100520.71277-1-eesina@astralinux.ru>
2023-01-16 13:24 ` [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 David Hildenbrand
2023-01-16 15:05 ` Екатерина Есина
2023-01-16 15:10 ` Екатерина Есина
2023-01-16 15:12 ` David Hildenbrand
2023-01-16 15:21 ` Matthew Wilcox
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox