Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86, pkeys: remove cruft from never-merged syscalls

pkey_set() and pkey_get() were syscalls present in older versions
of the protection keys patches. The syscall number definitions
were inadvertently left in place. This patch removes them.

I did a git grep and verified that these are the last places in
the tree that these appear, save for the protection_keys.c tests
and Documentation. Those spots talk about functions called
pkey_get/set() which are wrappers for the direct PKRU
instructions, not the syscalls.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-arch@vger.kernel.org
Cc: mgorman@techsingularity.net
Cc: arnd@arndb.de
Cc: linux-api@vger.kernel.org
Cc: linux-mm@kvack.org
Cc: luto@kernel.org
Cc: akpm@linux-foundation.org
Fixes: f9afc6197e9bb ("x86: Wire up protection keys system calls")
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Dave Hansen and committed by
Linus Torvalds
eac0ca77 71757904

-4
-2
arch/x86/entry/syscalls/syscall_32.tbl
··· 389 389 380 i386 pkey_mprotect sys_pkey_mprotect 390 390 381 i386 pkey_alloc sys_pkey_alloc 391 391 382 i386 pkey_free sys_pkey_free 392 - #383 i386 pkey_get sys_pkey_get 393 - #384 i386 pkey_set sys_pkey_set
-2
arch/x86/entry/syscalls/syscall_64.tbl
··· 338 338 329 common pkey_mprotect sys_pkey_mprotect 339 339 330 common pkey_alloc sys_pkey_alloc 340 340 331 common pkey_free sys_pkey_free 341 - #332 common pkey_get sys_pkey_get 342 - #333 common pkey_set sys_pkey_set 343 341 344 342 # 345 343 # x32-specific system call numbers start at 512 to avoid cache impact