OSDN Git Service

powerpc/8xx: Allow disabling KUAP at boot time
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 4 Jun 2021 04:49:25 +0000 (04:49 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Jun 2021 14:09:07 +0000 (00:09 +1000)
commitf6025a140ba8dcabdfb8a1e27ddaf44821700dce
tree11f90bdc86e96de4b1b14b687535a76f45eb71ef
parent10248dcba1205042a3a0ea65eb441030702d97cd
powerpc/8xx: Allow disabling KUAP at boot time

PPC64 uses MMU features to enable/disable KUAP at boot time.
But feature fixups are applied way too early on PPC32.

But since commit c16728835eec ("powerpc/32: Manage KUAP in C"),
all KUAP is in C so it is now possible to use static branches.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/3dca510ce555335261a47c4799167da698f569c0.1622782111.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/nohash/32/kup-8xx.h
arch/powerpc/mm/nohash/8xx.c