mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: "Екатерина Есина" <eesina@astralinux.ru>,
	"Mike Kravetz" <mike.kravetz@oracle.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	lvc-project@linuxtesting.org
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.
Date: Mon, 16 Jan 2023 16:12:48 +0100	[thread overview]
Message-ID: <a402b90d-372e-2774-d2c4-ceae64c6eed2@redhat.com> (raw)
In-Reply-To: <182575210.374192581.1673881818398.JavaMail.zimbra@astralinux.ru>

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


  parent reply	other threads:[~2023-01-16 15:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-16 10:05 Esina Ekaterina
2023-01-16 13:24 ` David Hildenbrand
     [not found]   ` <182575210.374192581.1673881818398.JavaMail.zimbra@astralinux.ru>
2023-01-16 15:12     ` David Hildenbrand [this message]
2023-01-16 15:21       ` Matthew Wilcox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a402b90d-372e-2774-d2c4-ceae64c6eed2@redhat.com \
    --to=david@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=eesina@astralinux.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lvc-project@linuxtesting.org \
    --cc=mike.kravetz@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®