[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <159168031307.1381411.14671547649283777399.b4-ty@ellerman.id.au>
Date: Tue, 9 Jun 2020 15:28:34 +1000 (AEST)
From: Michael Ellerman <patch-notifications@...erman.id.au>
To: mpe@...erman.id.au, Qian Cai <cai@....pw>
Cc: linuxppc-dev@...ts.ozlabs.org, rashmicy@...il.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] powerpc/64s/pgtable: fix an undefined behaviour
On Thu, 5 Mar 2020 23:48:52 -0500, Qian Cai wrote:
> Booting a power9 server with hash MMU could trigger an undefined
> behaviour because pud_offset(p4d, 0) will do,
>
> 0 >> (PAGE_SHIFT:16 + PTE_INDEX_SIZE:8 + H_PMD_INDEX_SIZE:10)
>
> Fix it by converting pud_index() and friends to static inline
> functions.
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/64s/pgtable: fix an undefined behaviour
https://git.kernel.org/powerpc/c/c2e929b18cea6cbf71364f22d742d9aad7f4677a
cheers
Powered by blists - more mailing lists