* [PATCH] generic syscalls: kill cruft from removed pkey syscalls
@ 2016-10-17 15:18 Dave Hansen
[not found] ` <20161017151814.1CE8B6C3-LXbPSdftPKxrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Dave Hansen @ 2016-10-17 15:18 UTC (permalink / raw)
To: linux-kernel
Cc: Dave Hansen, dave.hansen, tglx, x86, arnd, linux-arch, mgorman,
linux-api, linux-mm, luto, akpm, torvalds
From: Dave Hansen <dave.hansen@intel.com>
pkey_set() and pkey_get() were syscalls present in older versions
of the protection keys patches. They were fully excised from the
x86 code, but some cruft was left in the generic syscall code. The
C++ comments were intended to help to make it more glaring to me to
fix them before actually submitting them. That technique worked,
but later than I would have liked.
I test-compiled this for arm64.
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: x86@kernel.org
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arch@vger.kernel.org
Cc: mgorman@techsingularity.net
Cc: linux-api@vger.kernel.org
Cc: linux-mm@kvack.org
Cc: luto@kernel.org
Cc: akpm@linux-foundation.org
Cc: torvalds@linux-foundation.org
Fixes: a60f7b69d92c0 ("generic syscalls: Wire up memory protection keys syscalls")
---
b/include/linux/syscalls.h | 3 ---
b/include/uapi/asm-generic/unistd.h | 4 ----
2 files changed, 7 deletions(-)
diff -puN include/uapi/asm-generic/unistd.h~kill-kpkey-syscall-nr-cruft include/uapi/asm-generic/unistd.h
--- a/include/uapi/asm-generic/unistd.h~kill-kpkey-syscall-nr-cruft 2016-10-17 08:05:47.587207124 -0700
+++ b/include/uapi/asm-generic/unistd.h 2016-10-17 08:06:01.759844119 -0700
@@ -730,10 +730,6 @@ __SYSCALL(__NR_pkey_mprotect, sys_pkey_m
__SYSCALL(__NR_pkey_alloc, sys_pkey_alloc)
#define __NR_pkey_free 290
__SYSCALL(__NR_pkey_free, sys_pkey_free)
-#define __NR_pkey_get 291
-//__SYSCALL(__NR_pkey_get, sys_pkey_get)
-#define __NR_pkey_set 292
-//__SYSCALL(__NR_pkey_set, sys_pkey_set)
#undef __NR_syscalls
#define __NR_syscalls 291
diff -puN include/linux/syscalls.h~kill-kpkey-syscall-nr-cruft include/linux/syscalls.h
--- a/include/linux/syscalls.h~kill-kpkey-syscall-nr-cruft 2016-10-17 08:06:42.364669174 -0700
+++ b/include/linux/syscalls.h 2016-10-17 08:07:03.688627647 -0700
@@ -902,8 +902,5 @@ asmlinkage long sys_pkey_mprotect(unsign
unsigned long prot, int pkey);
asmlinkage long sys_pkey_alloc(unsigned long flags, unsigned long init_val);
asmlinkage long sys_pkey_free(int pkey);
-//asmlinkage long sys_pkey_get(int pkey, unsigned long flags);
-//asmlinkage long sys_pkey_set(int pkey, unsigned long access_rights,
-// unsigned long flags);
#endif
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] generic syscalls: kill cruft from removed pkey syscalls
[not found] ` <20161017151814.1CE8B6C3-LXbPSdftPKxrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
@ 2016-10-17 15:37 ` Arnd Bergmann
0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2016-10-17 15:37 UTC (permalink / raw)
To: Dave Hansen
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
dave.hansen-VuQAYsv1563Yd54FQh9/CA, tglx-hfZtesqFncYOwBW4kG4KsQ,
x86-DgEjT+Ai2ygdnm+yROfE0A, linux-arch-u79uwXL29TY76Z2rM5mHXA,
mgorman-3eNAlZScCAx27rWaFMvyedHuzzzSOjJt,
linux-api-u79uwXL29TY76Z2rM5mHXA, linux-mm-Bw31MaZKKs3YtjvyW6yDsg,
luto-DgEjT+Ai2ygdnm+yROfE0A,
akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b,
torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b
On Monday, October 17, 2016 8:18:15 AM CEST Dave Hansen wrote:
>
> pkey_set() and pkey_get() were syscalls present in older versions
> of the protection keys patches. They were fully excised from the
> x86 code, but some cruft was left in the generic syscall code. The
> C++ comments were intended to help to make it more glaring to me to
> fix them before actually submitting them. That technique worked,
> but later than I would have liked.
>
> I test-compiled this for arm64.
>
> Signed-off-by: Dave Hansen <dave.hansen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
> Cc: Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
> Cc: x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
> Cc: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
> Cc: linux-arch-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> Cc: mgorman-3eNAlZScCAx27rWaFMvyedHuzzzSOjJt@public.gmane.org
> Cc: linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> Cc: linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org
> Cc: luto-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
> Cc: akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org
> Cc: torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org
> Fixes: a60f7b69d92c0 ("generic syscalls: Wire up memory protection keys syscalls")
Acked-by: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-17 15:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-17 15:18 [PATCH] generic syscalls: kill cruft from removed pkey syscalls Dave Hansen
[not found] ` <20161017151814.1CE8B6C3-LXbPSdftPKxrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2016-10-17 15:37 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox