|
Message-Id: <486sDm3Clwz9sRW@ozlabs.org> Date: Wed, 29 Jan 2020 16:17:28 +1100 (AEDT) From: Michael Ellerman <patch-notifications@...erman.id.au> To: Russell Currey <ruscur@...sell.cc>, linuxppc-dev@...ts.ozlabs.org Cc: ajd@...ux.ibm.com, kernel-hardening@...ts.openwall.com, npiggin@...il.com, Russell Currey <ruscur@...sell.cc> Subject: Re: [PATCH 1/2] powerpc/book3s64/hash: Disable 16M linear mapping size if not aligned On Tue, 2019-12-24 at 06:41:25 UTC, Russell Currey wrote: > With STRICT_KERNEL_RWX on in a relocatable kernel under the hash MMU, if > the position the kernel is loaded at is not 16M aligned, the kernel > miscalculates its ALIGN*()s and things go horribly wrong. > > We can easily avoid this when selecting the linear mapping size, so do > so and print a warning. I tested this for various alignments and as > long as the position is 64K aligned it's fine (the base requirement for > powerpc). > > Signed-off-by: Russell Currey <ruscur@...sell.cc> Series applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/970d54f99ceac5bbf27929cb5ebfe18338ba1543 cheers
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.