On Thu, 9 Jul 2020 08:59:23 +0530, Aneesh Kumar K.V wrote: > This patch series update the pkey subsystem with more documentation and > rename variables so that it is easy to follow the code. We drop the changes > to support KUAP/KUEP with hash translation in this update. The changes > are adding 200 cycles to null syscalls benchmark and I want to look at that > closely before requesting a merge. The rest of the patches are included > in this series. This should avoid having to carry a large patchset across > the upstream merge. Some of the changes in here make the hash KUEP/KUAP > addition simpler. > > [...]
Applied to powerpc/next. [01/23] powerpc/book3s64/pkeys: Use PVR check instead of cpu feature https://git.kernel.org/powerpc/c/d79e7a5f26f1d179cbb915a8bf2469b6d7431c29 [02/23] powerpc/book3s64/pkeys: Fixup bit numbering https://git.kernel.org/powerpc/c/33699023f51f96ac9be38747e64967ea05e00bab [03/23] powerpc/book3s64/pkeys: pkeys are supported only on hash on book3s. https://git.kernel.org/powerpc/c/b9658f83e721ddfcee3e08b16a6628420de424c3 [04/23] powerpc/book3s64/pkeys: Move pkey related bits in the linux page table https://git.kernel.org/powerpc/c/ee8b39331f89950b0a011c7965db5694f0153166 [05/23] powerpc/book3s64/pkeys: Explain key 1 reservation details https://git.kernel.org/powerpc/c/1f404058e2911afe08417ef82f17aba6adccfc63 [06/23] powerpc/book3s64/pkeys: Simplify the key initialization https://git.kernel.org/powerpc/c/f491fe3fb41eafc7a159874040e032ad41ade210 [07/23] powerpc/book3s64/pkeys: Prevent key 1 modification from userspace. https://git.kernel.org/powerpc/c/718d9b380174eb8fe16d67769395737b79654a02 [08/23] powerpc/book3s64/pkeys: kill cpu feature key CPU_FTR_PKEY https://git.kernel.org/powerpc/c/a24204c307962214996627e3f4caa8772b9b0cf4 [09/23] powerpc/book3s64/pkeys: Simplify pkey disable branch https://git.kernel.org/powerpc/c/a4678d4b477c3d2901f101986ca01406f3b7eaea [10/23] powerpc/book3s64/pkeys: Convert pkey_total to num_pkey https://git.kernel.org/powerpc/c/c529afd7cbc71ae1dc44a31efc7c1c9db3c3a143 [11/23] powerpc/book3s64/pkeys: Make initial_allocation_mask static https://git.kernel.org/powerpc/c/3c8ab47362fe9a74f61b48efe957666a423c55a2 [12/23] powerpc/book3s64/pkeys: Mark all the pkeys above max pkey as reserved https://git.kernel.org/powerpc/c/3e4352aeb8b17eb1040ba288f586620e8294389d [13/23] powerpc/book3s64/pkeys: Add MMU_FTR_PKEY https://git.kernel.org/powerpc/c/d3cd91fb8d2e202cf8ebb6f271898aaf37ecda8f [14/23] powerpc/book3s64/kuep: Add MMU_FTR_KUEP https://git.kernel.org/powerpc/c/e10cc8715d180509a367d3ab25d40e4a1612cb2f [15/23] powerpc/book3s64/pkeys: Use pkey_execute_disable_supported https://git.kernel.org/powerpc/c/2daf298de728dc37f32d0749fa4f59db36fa7d96 [16/23] powerpc/book3s64/pkeys: Use MMU_FTR_PKEY instead of pkey_disabled static key https://git.kernel.org/powerpc/c/f7045a45115b17fe695ea7075f5213706f202edb [17/23] powerpc/book3s64/keys: Print information during boot. https://git.kernel.org/powerpc/c/7cdd3745f2d75aecc2b61368e2563ae54bfac59a [18/23] powerpc/book3s64/keys/kuap: Reset AMR/IAMR values on kexec https://git.kernel.org/powerpc/c/000a42b35a54372597f0657f6b9875b38c641864 [19/23] powerpc/book3s64/kuap: Move UAMOR setup to key init function https://git.kernel.org/powerpc/c/e0d8e991be641ba0034c67785bf86f6c097869d6 [20/23] selftests/powerpc: ptrace-pkey: Rename variables to make it easier to follow code https://git.kernel.org/powerpc/c/9a11f12e0a6c374b3ef1ce81e32ce477d28eb1b8 [21/23] selftests/powerpc: ptrace-pkey: Update the test to mark an invalid pkey correctly https://git.kernel.org/powerpc/c/0eaa3b5ca7b5a76e3783639c828498343be66a01 [22/23] selftests/powerpc: ptrace-pkey: Don't update expected UAMOR value https://git.kernel.org/powerpc/c/3563b9bea0ca7f53e4218b5e268550341a49f333 [23/23] powerpc/book3s64/pkeys: Remove is_pkey_enabled() https://git.kernel.org/powerpc/c/482b9b3948675df60c015b2155011c1f93234992 cheers