Re: [PATCH 1/3] RISC-V: Fix .init section permission update

2021-02-02 Thread Palmer Dabbelt
On Fri, 29 Jan 2021 11:00:36 PST (-0800), Atish Patra wrote: .init section permission should only updated to non-execute if STRICT_KERNEL_RWX is enabled. Otherwise, this will lead to a kernel hang. Fixes: 19a00869028f ("RISC-V: Protect all kernel sections including init early") Suggested-by:

[PATCH 1/3] RISC-V: Fix .init section permission update

2021-01-29 Thread Atish Patra
.init section permission should only updated to non-execute if STRICT_KERNEL_RWX is enabled. Otherwise, this will lead to a kernel hang. Fixes: 19a00869028f ("RISC-V: Protect all kernel sections including init early") Suggested-by: Geert Uytterhoeven Reported-by: Geert Uytterhoeven