Home
last modified time | relevance | path

Searched hist:"6 b4d630068b0c5cdd6d8e599182b131448e0cb06" (Results 1 – 2 of 2) sorted by relevance

/linux/arch/powerpc/mm/book3s32/
H A Dkuap.cdiff 6b4d630068b0c5cdd6d8e599182b131448e0cb06 Thu Jun 03 10:41:43 CEST 2021 Christophe Leroy <christophe.leroy@csgroup.eu> powerpc/32s: 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.

Now that all KUAP related actions are in C following the
conversion of KUAP initial setup and context switch in C,
static branches can be used to enable/disable KUAP.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[mpe: Export disable_kuap_key to fix build errors]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/cd79e8008455fba5395d099f9bb1305c039b931c.1622708530.git.christophe.leroy@csgroup.eu
/linux/arch/powerpc/include/asm/book3s/32/
H A Dkup.hdiff 6b4d630068b0c5cdd6d8e599182b131448e0cb06 Thu Jun 03 10:41:43 CEST 2021 Christophe Leroy <christophe.leroy@csgroup.eu> powerpc/32s: 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.

Now that all KUAP related actions are in C following the
conversion of KUAP initial setup and context switch in C,
static branches can be used to enable/disable KUAP.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[mpe: Export disable_kuap_key to fix build errors]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/cd79e8008455fba5395d099f9bb1305c039b931c.1622708530.git.christophe.leroy@csgroup.eu