All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/pkeys: fix pkeys build breakage for some non-x86 arches
@ 2016-09-12 20:38 ` Dave Hansen
  0 siblings, 0 replies; 3+ messages in thread
From: Dave Hansen @ 2016-09-12 20:38 UTC (permalink / raw)
  To: linux-kernel-u79uwXL29TY76Z2rM5mHXA
  Cc: x86-DgEjT+Ai2ygdnm+yROfE0A, Dave Hansen,
	dave.hansen-ral2JQCrhuEAvxtiuMwx3w, arnd-r2nGTMty4D4,
	tglx-hfZtesqFncYOwBW4kG4KsQ, linux-api-u79uwXL29TY76Z2rM5mHXA,
	linux-arch-u79uwXL29TY76Z2rM5mHXA


From: Dave Hansen <dave.hansen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

Guenter Roeck reported [1] breakage on the h8300 and c6x
architectures (among others) caused by the new memory protection
keys syscalls.  This patch does what Arnd suggested and adds them
to kernel/sys_ni.c.

1. http://marc.info/?l=linux-kernel&m=147369214820072&w=2

Signed-off-by: Dave Hansen <dave.hansen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Tested-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
Acked-by: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
Cc: Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
Cc: "open list:ABI/API" <linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Cc: linux-arch-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
---

 b/kernel/sys_ni.c |    5 +++++
 1 file changed, 5 insertions(+)

diff -puN kernel/sys_ni.c~fix-pkeys-arch-breakage kernel/sys_ni.c
--- a/kernel/sys_ni.c~fix-pkeys-arch-breakage	2016-09-12 13:35:17.449066541 -0700
+++ b/kernel/sys_ni.c	2016-09-12 13:35:17.452066676 -0700
@@ -250,3 +250,8 @@ cond_syscall(sys_execveat);
 
 /* membarrier */
 cond_syscall(sys_membarrier);
+
+/* memory protection keys */
+cond_syscall(sys_pkey_mprotect);
+cond_syscall(sys_pkey_alloc);
+cond_syscall(sys_pkey_free);
_

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] x86/pkeys: fix pkeys build breakage for some non-x86 arches
@ 2016-09-12 20:38 ` Dave Hansen
  0 siblings, 0 replies; 3+ messages in thread
From: Dave Hansen @ 2016-09-12 20:38 UTC (permalink / raw)
  To: linux-kernel
  Cc: x86, Dave Hansen, dave.hansen, arnd, tglx, linux-api, linux-arch


From: Dave Hansen <dave.hansen@intel.com>

Guenter Roeck reported [1] breakage on the h8300 and c6x
architectures (among others) caused by the new memory protection
keys syscalls.  This patch does what Arnd suggested and adds them
to kernel/sys_ni.c.

1. http://marc.info/?l=linux-kernel&m=147369214820072&w=2

Signed-off-by: Dave Hansen <dave.hansen@intel.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "open list:ABI/API" <linux-api@vger.kernel.org>
Cc: linux-arch@vger.kernel.org
---

 b/kernel/sys_ni.c |    5 +++++
 1 file changed, 5 insertions(+)

diff -puN kernel/sys_ni.c~fix-pkeys-arch-breakage kernel/sys_ni.c
--- a/kernel/sys_ni.c~fix-pkeys-arch-breakage	2016-09-12 13:35:17.449066541 -0700
+++ b/kernel/sys_ni.c	2016-09-12 13:35:17.452066676 -0700
@@ -250,3 +250,8 @@ cond_syscall(sys_execveat);
 
 /* membarrier */
 cond_syscall(sys_membarrier);
+
+/* memory protection keys */
+cond_syscall(sys_pkey_mprotect);
+cond_syscall(sys_pkey_alloc);
+cond_syscall(sys_pkey_free);
_

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:mm/pkeys] x86/pkeys: Fix pkeys build breakage for some non-x86 arches
  2016-09-12 20:38 ` Dave Hansen
  (?)
@ 2016-09-13 12:46 ` tip-bot for Dave Hansen
  -1 siblings, 0 replies; 3+ messages in thread
From: tip-bot for Dave Hansen @ 2016-09-13 12:46 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: arnd, hpa, mingo, tglx, dave, linux-kernel, dave.hansen, linux

Commit-ID:  e2753293ac4bce8623650bb2d610b7e657bc869f
Gitweb:     http://git.kernel.org/tip/e2753293ac4bce8623650bb2d610b7e657bc869f
Author:     Dave Hansen <dave.hansen@intel.com>
AuthorDate: Mon, 12 Sep 2016 13:38:42 -0700
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Tue, 13 Sep 2016 14:41:36 +0200

x86/pkeys: Fix pkeys build breakage for some non-x86 arches

Guenter Roeck reported breakage on the h8300 and c6x architectures (among
others) caused by the new memory protection keys syscalls.  This patch does
what Arnd suggested and adds them to kernel/sys_ni.c.

Fixes: a60f7b69d92c ("generic syscalls: Wire up memory protection keys syscalls")
Reported-and-tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dave Hansen <dave.hansen@intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arch@vger.kernel.org
Cc: Dave Hansen <dave@sr71.net>
Cc: linux-api@vger.kernel.org
Link: http://lkml.kernel.org/r/20160912203842.48E7AC50@viggo.jf.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 kernel/sys_ni.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/kernel/sys_ni.c b/kernel/sys_ni.c
index 2c5e3a8..635482e 100644
--- a/kernel/sys_ni.c
+++ b/kernel/sys_ni.c
@@ -250,3 +250,8 @@ cond_syscall(sys_execveat);
 
 /* membarrier */
 cond_syscall(sys_membarrier);
+
+/* memory protection keys */
+cond_syscall(sys_pkey_mprotect);
+cond_syscall(sys_pkey_alloc);
+cond_syscall(sys_pkey_free);

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-13 12:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-12 20:38 [PATCH] x86/pkeys: fix pkeys build breakage for some non-x86 arches Dave Hansen
2016-09-12 20:38 ` Dave Hansen
2016-09-13 12:46 ` [tip:mm/pkeys] x86/pkeys: Fix " tip-bot for Dave Hansen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.