Skip to content

Commit f9afc61

Browse files
hansendcKAGA-KOKO
authored andcommitted
x86: Wire up protection keys system calls
This is all that we need to get the new system calls themselves working on x86. Signed-off-by: Dave Hansen <[email protected]> Cc: [email protected] Cc: Dave Hansen <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
1 parent e8c24d3 commit f9afc61

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

arch/x86/entry/syscalls/syscall_32.tbl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,3 +386,8 @@
386386
377 i386 copy_file_range sys_copy_file_range
387387
378 i386 preadv2 sys_preadv2 compat_sys_preadv2
388388
379 i386 pwritev2 sys_pwritev2 compat_sys_pwritev2
389+
380 i386 pkey_mprotect sys_pkey_mprotect
390+
381 i386 pkey_alloc sys_pkey_alloc
391+
382 i386 pkey_free sys_pkey_free
392+
#383 i386 pkey_get sys_pkey_get
393+
#384 i386 pkey_set sys_pkey_set

arch/x86/entry/syscalls/syscall_64.tbl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,11 @@
335335
326 common copy_file_range sys_copy_file_range
336336
327 64 preadv2 sys_preadv2
337337
328 64 pwritev2 sys_pwritev2
338+
329 common pkey_mprotect sys_pkey_mprotect
339+
330 common pkey_alloc sys_pkey_alloc
340+
331 common pkey_free sys_pkey_free
341+
#332 common pkey_get sys_pkey_get
342+
#333 common pkey_set sys_pkey_set
338343

339344
#
340345
# x32-specific system call numbers start at 512 to avoid cache impact

0 commit comments

Comments
 (0)