From: Rik van Riel <riel@surriel.com>
To: Mike Kravetz <mike.kravetz@oracle.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
llvm@lists.linux.dev
Cc: eadavis@qq.com, nh26223@qq.com,
syzbot+6ada951e7c0f7bc8a71e@syzkaller.appspotmail.com,
syzkaller-bugs@googlegroups.com, trix@redhat.com,
nathan@kernel.org, ndesaulniers@google.com,
muchun.song@linux.dev, akpm@linux-foundation.org
Subject: Re: [PATCH] hugetlb: fix null-ptr-deref in hugetlb_vma_lock_write
Date: Mon, 13 Nov 2023 21:07:58 -0500 [thread overview]
Message-ID: <74c9d165c2e09f962467364319c2a2a4e05583a7.camel@surriel.com> (raw)
In-Reply-To: <20231114012033.259600-1-mike.kravetz@oracle.com>
On Mon, 2023-11-13 at 17:20 -0800, Mike Kravetz wrote:
>
> Mask off low bit flags before checking for NULL pointer. In
> addition,
> the reserve map only 'belongs' to the OWNER (parent in parent/child
> relationships) so also check for the OWNER flag.
>
> Reported-by: syzbot+6ada951e7c0f7bc8a71e@syzkaller.appspotmail.com
> Closes:
> https://lore.kernel.org/linux-mm/00000000000078d1e00608d7878b@google.com/
> Fixes: bf4916922c60 ("hugetlbfs: extend hugetlb_vma_lock to private
> VMAs")
> Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
>
Reviewed-by: Rik van Riel <riel@surriel.com>
--
All Rights Reversed.
prev parent reply other threads:[~2023-11-14 2:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-14 1:20 Mike Kravetz
2023-11-14 2:07 ` Rik van Riel [this message]
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=74c9d165c2e09f962467364319c2a2a4e05583a7.camel@surriel.com \
--to=riel@surriel.com \
--cc=akpm@linux-foundation.org \
--cc=eadavis@qq.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--cc=mike.kravetz@oracle.com \
--cc=muchun.song@linux.dev \
--cc=nathan@kernel.org \
--cc=ndesaulniers@google.com \
--cc=nh26223@qq.com \
--cc=syzbot+6ada951e7c0f7bc8a71e@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=trix@redhat.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®