]> Git Repo - linux.git/commit
RISC-V: Fix .init section permission update
authorAtish Patra <[email protected]>
Fri, 29 Jan 2021 19:00:36 +0000 (11:00 -0800)
committerPalmer Dabbelt <[email protected]>
Wed, 3 Feb 2021 02:35:42 +0000 (18:35 -0800)
commitf105ea9890f42137344f8c08548c895dc9294bd8
treef15e209e644cc6aaf11c7d6ea10b33012e97dbc8
parent2ab543823322b564f205cb15d0f0302803c87d11
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: 19a00869028f ("RISC-V: Protect all kernel sections including init early")
Cc: [email protected]
Suggested-by: Geert Uytterhoeven <[email protected]>
Reported-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Atish Patra <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
arch/riscv/kernel/setup.c
This page took 0.051968 seconds and 4 git commands to generate.