Christophe Leroy 2de654d858 powerpc: Mark .opd section read-only
[ Upstream commit 3091f5fc5f1df7741ddf326561384e0997eca2a1 ]

.opd section contains function descriptors used to locate
functions in the kernel. If someone is able to modify a
function descriptor he will be able to run arbitrary
kernel function instead of another.

To avoid that, move .opd section inside read-only memory.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/3cd40b682fb6f75bb40947b55ca0bac20cb3f995.1634136222.git.christophe.leroy@csgroup.eu
Stable-dep-of: 1b1e38002648 ("powerpc: add crtsavres.o to always-y instead of extra-y")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 14:52:32 -08:00
..
2024-01-25 14:52:30 -08:00
2023-02-01 08:27:20 +01:00
2023-11-20 11:08:23 +01:00
2023-09-19 12:22:49 +02:00
2023-08-08 19:58:30 +02:00