Re: [PATCH v2] powerpc: Handle error in mark_rodata_ro() and mark_initmem_nx()

2024-03-22 Thread Michael Ellerman
On Sat, 16 Mar 2024 12:18:21 +0100, Christophe Leroy wrote: > mark_rodata_ro() and mark_initmem_nx() use functions that can > fail like set_memory_nx() and set_memory_ro(), leading to a not > protected kernel. > > In case of failure, panic. > > > [...] Applied to powerpc/next. [1/1] powerpc:

[PATCH v2] powerpc: Handle error in mark_rodata_ro() and mark_initmem_nx()

2024-03-16 Thread Christophe Leroy
mark_rodata_ro() and mark_initmem_nx() use functions that can fail like set_memory_nx() and set_memory_ro(), leading to a not protected kernel. In case of failure, panic. Link: https://github.com/KSPP/linux/issues/7 Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: