Re: [PATCH] hugetlb: fix null-ptr-deref in hugetlb_vma_lock_write

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxxxx
> Closes:
> https://lore.kernel.org/linux-mm/00000000000078d1e00608d7878b@xxxxxxxxxx/
> Fixes: bf4916922c60 ("hugetlbfs: extend hugetlb_vma_lock to private
> VMAs")
> Signed-off-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
> 

Reviewed-by: Rik van Riel <riel@xxxxxxxxxxx>

-- 
All Rights Reversed.





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux