Assortment of fixes to pkey. Patch 1 makes pkey consumable in multithreaded applications.
Patch 2 fixes fork behavior to inherit the key attributes. Patch 3 A off-by-one bug made one key unusable. Fixes it. Patch 4 Makes pkey-0 less special. Ram Pai (5): powerpc/pkeys: Enable all user-allocatable pkeys at init. powerpc/pkeys: Save the pkey registers before fork powerpc/pkeys: fix calculation of total pkeys. powerpc/pkeys: Preallocate execute-only key powerpc/pkeys: make protection key 0 less special arch/powerpc/include/asm/pkeys.h | 29 ++++++++-- arch/powerpc/kernel/process.c | 1 + arch/powerpc/mm/pkeys.c | 107 ++++++++++++++------------------------ 3 files changed, 64 insertions(+), 73 deletions(-)