[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <165339059929.1718562.6708480994090360470.b4-ty@ellerman.id.au>
Date: Tue, 24 May 2022 21:09:59 +1000
From: Michael Ellerman <patch-notifications@...erman.id.au>
To: Michael Ellerman <mpe@...erman.id.au>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>,
Christophe Leroy <christophe.leroy@...roup.eu>
Cc: Guenter Roeck <linux@...ck-us.net>, linuxppc-dev@...ts.ozlabs.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] powerpc/fsl_book3e: Don't set rodata RO too early
On Thu, 19 May 2022 19:24:15 +0200, Christophe Leroy wrote:
> On fsl_book3e, rodata is set read-only at the same time as
> init text is set NX at the end of init. That's too early.
>
> As both action are performed at the same time, delay both
> actions to the time rodata is expected to be made read-only.
>
> It means we will have a small window with init mem freed but
> still executable. It shouldn't be an issue though, especially
> because the said memory gets poisoned and should therefore
> result to a bad instruction fault in case it gets executer.
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/fsl_book3e: Don't set rodata RO too early
https://git.kernel.org/powerpc/c/ad91f66f5fa7c6f9346e721c3159ce818568028b
cheers
Powered by blists - more mailing lists