Re: [PATCH] init: fix misleading "This architecture does not have kernel memory protection" message

2020-01-09 Thread Kees Cook
On Thu, Jan 09, 2020 at 08:15:01AM +, Christophe Leroy wrote: > This message leads to think that memory protection is not implemented > for the said architecture, whereas absence of CONFIG_STRICT_KERNEL_RWX > only means that memory protection has not been selected at > compile time. > > Don't

[PATCH] init: fix misleading "This architecture does not have kernel memory protection" message

2020-01-09 Thread Christophe Leroy
This message leads to think that memory protection is not implemented for the said architecture, whereas absence of CONFIG_STRICT_KERNEL_RWX only means that memory protection has not been selected at compile time. Don't print this message when CONFIG_ARCH_HAS_STRICT_KERNEL_RWX is selected by the a