]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
powerpc: sys_pkey_alloc() and sys_pkey_free() system calls
authorRam Pai <linuxram@us.ibm.com>
Mon, 3 Jun 2019 12:03:00 +0000 (14:03 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 2 Jul 2019 12:18:49 +0000 (14:18 +0200)
BugLink: https://bugs.launchpad.net/bugs/1821625
Finally this patch provides the ability for a process to
allocate and free a protection key.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from commit 9499ec1b5e82321829e1c1510bcc37edc20b6f38)
Signed-off-by: Dan Streetman <ddstreet@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/powerpc/include/asm/systbl.h
arch/powerpc/include/asm/unistd.h
arch/powerpc/include/uapi/asm/unistd.h

index 449912f057f6372bf77e228e7cda16cf22b034f9..dea4a952ec53d40a62772184acf084f438cd3d9d 100644 (file)
@@ -389,3 +389,5 @@ COMPAT_SYS_SPU(preadv2)
 COMPAT_SYS_SPU(pwritev2)
 SYSCALL(kexec_file_load)
 SYSCALL(statx)
+SYSCALL(pkey_alloc)
+SYSCALL(pkey_free)
index 9ba11dbcaca98f88c53ee46c3bd009b22f13df01..e0273bc5b09523e8be5d31bcb531a2bf4ab19300 100644 (file)
 #include <uapi/asm/unistd.h>
 
 
-#define NR_syscalls            384
+#define NR_syscalls            386
 
 #define __NR__exit __NR_exit
 
 #define __IGNORE_pkey_mprotect
-#define __IGNORE_pkey_alloc
-#define __IGNORE_pkey_free
 
 #ifndef __ASSEMBLY__
 
index df8684f31919a7a7bda0629f93a9fdb3bca926df..5db438516e61b6868bbc85810e0b0279d81829b0 100644 (file)
 #define __NR_pwritev2          381
 #define __NR_kexec_file_load   382
 #define __NR_statx             383
+#define __NR_pkey_alloc                384
+#define __NR_pkey_free         385
 
 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */