linux/arch/riscv
Atish Patra f105ea9890
RISC-V: Fix .init section permission update
.init section permission should only updated to non-execute if
STRICT_KERNEL_RWX is enabled. Otherwise, this will lead to a kernel hang.

Fixes: 19a0086902 ("RISC-V: Protect all kernel sections including init early")
Cc: stable@vger.kernel.org
Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2021-02-02 18:35:42 -08:00
..
boot dts: phy: add GPIO number and active state used for phy reset 2021-01-13 20:59:16 -08:00
configs riscv: defconfig: enable gpio support for HiFive Unleashed 2021-01-13 20:59:46 -08:00
include riscv: virt_addr_valid must check the address belongs to linear mapping 2021-02-02 18:31:13 -08:00
kernel RISC-V: Fix .init section permission update 2021-02-02 18:35:42 -08:00
lib riscv: provide memmove implementation 2020-12-10 17:27:54 -08:00
mm riscv: Fixup pfn_valid error with wrong max_mapnr 2021-01-22 20:18:03 -08:00
net treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
Kbuild riscv: Allow device trees to be built into the kernel 2020-05-18 11:38:05 -07:00
Kconfig RISC-V: Fix maximum allowed phsyical memory for RV32 2021-01-15 21:35:48 -08:00
Kconfig.debug RISC-V: Remove EARLY_PRINTK support 2018-12-17 10:23:46 -08:00
Kconfig.socs clk: sifive: Use common name for prci configuration 2020-12-16 12:22:59 -08:00
Makefile riscv: Clean up boot dir 2020-11-09 11:54:45 -08:00