Re: [PATCH v2 00/12] powerpc: Optimise KUAP on book3s/32

From: Michael Ellerman
Date: Fri Jun 18 2021 - 00:23:50 EST

On Thu, 3 Jun 2021 08:41:35 +0000 (UTC), Christophe Leroy wrote:
> This series is a rework of KUAP on book3s/32.
> On book3s32, KUAP is heavier than on other platform because it can't
> be opened globaly at once, it must be done for each 256Mb segment.
> Instead of opening access to all necessary segments via a heavy logic,
> only open access to the segment matching the start of the range.
> [...]

Applied to powerpc/next.

[01/12] powerpc/32s: Move setup_{kuep/kuap}() into {kuep/kuap}.c
[02/12] powerpc/32s: Refactor update of user segment registers
[03/12] powerpc/32s: move CTX_TO_VSID() into mmu-hash.h
[04/12] powerpc/32s: Convert switch_mmu_context() to C
[05/12] powerpc/32s: Simplify calculation of segment register content
[06/12] powerpc/32s: Initialise KUAP and KUEP in C
[07/12] powerpc/32s: Allow disabling KUEP at boot time
[08/12] powerpc/32s: Allow disabling KUAP at boot time
[09/12] powerpc/32s: Rework Kernel Userspace Access Protection
[10/12] powerpc/32s: Activate KUAP and KUEP by default
[11/12] powerpc/kuap: Remove KUAP_CURRENT_XXX
[12/12] powerpc/kuap: Remove to/from/size parameters of prevent_user_access()