[PATCH] powerpc/mm: Fix UBSAN warning reported on hugetlb

Michael Ellerman patch-notifications at ellerman.id.au
Wed Oct 5 00:26:19 AEDT 2022


On Thu, 8 Sep 2022 12:54:40 +0530, Aneesh Kumar K.V wrote:
> Powerpc architecture supports 16GB hugetlb pages with hash translation. For 4K
> page size, this is implemented as a hugepage directory entry at PGD level and
> for 64K it is implemented as a huge page pte at PUD level
> 
> With 16GB hugetlb size, offset within a page is greater than 32 bits. Hence
> switch to use unsigned long type when using hugepd_shift.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/mm: Fix UBSAN warning reported on hugetlb
      https://git.kernel.org/powerpc/c/7dd3a7b90bca2c12e2146a47d63cf69a2f5d7e89

cheers


More information about the Linuxppc-dev mailing list