Re: [PATCH] powerpc/mm/32s: only use MMU to mark initmem NX if STRICT_KERNEL_RWX
From: christophe leroy
Date: Sun Jun 16 2019 - 04:26:38 EST
Le 15/06/2019 Ã 16:36, Andreas Schwab a ÃcritÂ:
On Jun 15 2019, Christophe Leroy <christophe.leroy@xxxxxx> wrote:
Andreas Schwab <schwab@xxxxxxxxxxxxxx> a ÃcritÂ:
If STRICT_KERNEL_RWX is disabled, never use the MMU to mark initmen
nonexecutable.
I dont understand, can you elaborate ?
It breaks suspend.
Ok, but we need to explain why it breaks suspend, and again your patch
is wrong anyway because that area of memory is mapped with BATs so you
can't use change_page_attr()
This area is mapped with BATs so using change_page_attr() is pointless.
There must be a reason STRICT_KERNEL_RWX is not available with
HIBERNATE.
Yes but HIBERNATE and suspend are not the same thing. I guess HIBERNATE
is not available with STRICT_KERNEL_RWX because HIBERNATE have to write
back saved state into read-only memory as well.
Christophe
---
L'absence de virus dans ce courrier Ãlectronique a Ãtà vÃrifiÃe par le logiciel antivirus Avast.
https://www.avast.com/antivirus