]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
powerpc: sys_pkey_mprotect() system call
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
Patch provides the ability for a process to
associate a pkey with a address range.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from commit 3350eb2ea127978319ced883523d828046af4045)
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 dea4a952ec53d40a62772184acf084f438cd3d9d..d61f9c96d91634c2a1cda3412fe6802671a22d2c 100644 (file)
@@ -391,3 +391,4 @@ SYSCALL(kexec_file_load)
 SYSCALL(statx)
 SYSCALL(pkey_alloc)
 SYSCALL(pkey_free)
+SYSCALL(pkey_mprotect)
index e0273bc5b09523e8be5d31bcb531a2bf4ab19300..daf1ba97a00cdaf920e3806b955c3d4b129fe0ce 100644 (file)
 #include <uapi/asm/unistd.h>
 
 
-#define NR_syscalls            386
+#define NR_syscalls            387
 
 #define __NR__exit __NR_exit
 
-#define __IGNORE_pkey_mprotect
-
 #ifndef __ASSEMBLY__
 
 #include <linux/types.h>
index 5db438516e61b6868bbc85810e0b0279d81829b0..389c36fd82990f3f6b390342f56375ac0067054a 100644 (file)
 #define __NR_statx             383
 #define __NR_pkey_alloc                384
 #define __NR_pkey_free         385
+#define __NR_pkey_mprotect     386
 
 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */