powerpc: Enable KFENCE for PPC32
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 4 Mar 2021 14:35:09 +0000 (14:35 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Mar 2021 03:09:30 +0000 (14:09 +1100)
commit90cbac0e995dd92f7bcf82f74aa50250bf194a4a
tree3aed376f4cfed4ced8df36e455819cd5e7279f59
parent0b71b37241784c309bea6bd6a9d2027943c4ab94
powerpc: Enable KFENCE for PPC32

Add architecture specific implementation details for KFENCE and enable
KFENCE for the ppc32 architecture. In particular, this implements the
required interface in <asm/kfence.h>.

KFENCE requires that attributes for pages from its memory pool can
individually be set. Therefore, force the Read/Write linear map to be
mapped at page granularity.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Marco Elver <elver@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/8dfe1bd2abde26337c1d8c1ad0acfcc82185e0d5.1614868445.git.christophe.leroy@csgroup.eu
arch/powerpc/Kconfig
arch/powerpc/include/asm/kfence.h [new file with mode: 0644]
arch/powerpc/mm/book3s32/mmu.c
arch/powerpc/mm/fault.c
arch/powerpc/mm/init_32.c
arch/powerpc/mm/mmu_decl.h
arch/powerpc/mm/nohash/8xx.c