lkml.org 
[lkml]   [2023]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] hugetlb: fix null-ptr-deref in hugetlb_vma_lock_write
From
Date
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.

\
 
 \ /
  Last update: 2023-11-20 13:58    [W:0.046 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site