aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/book3s64/radix_pgtable.c
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2021-10-13 16:43:54 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2021-10-14 21:47:34 +1100
commit3091f5fc5f1df7741ddf326561384e0997eca2a1 (patch)
tree3e17c2810ec510cb4835f31cd9dba76b7329465a /arch/powerpc/mm/book3s64/radix_pgtable.c
parentpowerpc/perf: Fix cycles/instructions as PM_CYC/PM_INST_CMPL in power10 (diff)
downloadlinux-dev-3091f5fc5f1df7741ddf326561384e0997eca2a1.tar.xz
linux-dev-3091f5fc5f1df7741ddf326561384e0997eca2a1.zip
powerpc: Mark .opd section read-only
.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
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions