Re: [PATCH] powerpc/fsl_book3e: Don't set rodata RO too early

2022-05-24 Thread Michael Ellerman
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 rea

Re: [PATCH] powerpc/fsl_book3e: Don't set rodata RO too early

2022-05-19 Thread Guenter Roeck
On Thu, May 19, 2022 at 07:24:15PM +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 ma

[PATCH] powerpc/fsl_book3e: Don't set rodata RO too early

2022-05-19 Thread Christophe Leroy
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