Skip to content

Commit b41c51c

Browse files
committed
arch: add pkey and rseq syscall numbers everywhere
Most architectures define system call numbers for the rseq and pkey system calls, even when they don't support the features, and perhaps never will. Only a few architectures are missing these, so just define them anyway for consistency. If we decide to add them later to one of these, the system call numbers won't get out of sync then. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
1 parent 0d6040d commit b41c51c

12 files changed

Lines changed: 28 additions & 15 deletions

File tree

‎arch/alpha/include/asm/unistd.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,5 @@
2929
#define __IGNORE_getppid
3030
#define __IGNORE_getuid
3131

32-
/* Alpha doesn't have protection keys. */
33-
#define __IGNORE_pkey_mprotect
34-
#define __IGNORE_pkey_alloc
35-
#define __IGNORE_pkey_free
3632

3733
#endif /* _ALPHA_UNISTD_H */

‎arch/alpha/kernel/syscalls/syscall.tbl‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,3 +452,7 @@
452452
521 common pwritev2 sys_pwritev2
453453
522 common statx sys_statx
454454
523 common io_pgetevents sys_io_pgetevents
455+
524 common pkey_mprotect sys_pkey_mprotect
456+
525 common pkey_alloc sys_pkey_alloc
457+
526 common pkey_free sys_pkey_free
458+
527 common rseq sys_rseq

‎arch/ia64/kernel/syscalls/syscall.tbl‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,3 +339,7 @@
339339
327 common io_pgetevents sys_io_pgetevents
340340
328 common perf_event_open sys_perf_event_open
341341
329 common seccomp sys_seccomp
342+
330 common pkey_mprotect sys_pkey_mprotect
343+
331 common pkey_alloc sys_pkey_alloc
344+
332 common pkey_free sys_pkey_free
345+
333 common rseq sys_rseq

‎arch/m68k/kernel/syscalls/syscall.tbl‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,10 @@
388388
378 common pwritev2 sys_pwritev2
389389
379 common statx sys_statx
390390
380 common seccomp sys_seccomp
391+
381 common pkey_mprotect sys_pkey_mprotect
392+
382 common pkey_alloc sys_pkey_alloc
393+
383 common pkey_free sys_pkey_free
394+
384 common rseq sys_rseq
391395
# room for arch specific calls
392396
393 common semget sys_semget
393397
394 common semctl sys_semctl

‎arch/parisc/include/asm/unistd.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212

1313
#define __IGNORE_select /* newselect */
1414
#define __IGNORE_fadvise64 /* fadvise64_64 */
15-
#define __IGNORE_pkey_mprotect
16-
#define __IGNORE_pkey_alloc
17-
#define __IGNORE_pkey_free
1815

1916
#ifndef ASM_LINE_SEP
2017
# define ASM_LINE_SEP ;

‎arch/parisc/kernel/syscalls/syscall.tbl‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,3 +367,7 @@
367367
348 common pwritev2 sys_pwritev2 compat_sys_pwritev2
368368
349 common statx sys_statx
369369
350 common io_pgetevents sys_io_pgetevents compat_sys_io_pgetevents
370+
351 common pkey_mprotect sys_pkey_mprotect
371+
352 common pkey_alloc sys_pkey_alloc
372+
353 common pkey_free sys_pkey_free
373+
354 common rseq sys_rseq

‎arch/s390/include/asm/unistd.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
#include <asm/unistd_nr.h>
1212

1313
#define __IGNORE_time
14-
#define __IGNORE_pkey_mprotect
15-
#define __IGNORE_pkey_alloc
16-
#define __IGNORE_pkey_free
1714

1815
#define __ARCH_WANT_NEW_STAT
1916
#define __ARCH_WANT_OLD_READDIR

‎arch/s390/kernel/syscalls/syscall.tbl‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@
391391
381 common kexec_file_load sys_kexec_file_load sys_kexec_file_load
392392
382 common io_pgetevents sys_io_pgetevents compat_sys_io_pgetevents
393393
383 common rseq sys_rseq sys_rseq
394+
384 common pkey_mprotect sys_pkey_mprotect sys_pkey_mprotect
395+
385 common pkey_alloc sys_pkey_alloc sys_pkey_alloc
396+
386 common pkey_free sys_pkey_free sys_pkey_free
394397
# room for arch specific syscalls
395398
392 64 semtimedop sys_semtimedop -
396399
393 common semget sys_semget sys_semget

‎arch/sh/kernel/syscalls/syscall.tbl‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,10 @@
391391
381 common preadv2 sys_preadv2
392392
382 common pwritev2 sys_pwritev2
393393
383 common statx sys_statx
394+
384 common pkey_mprotect sys_pkey_mprotect
395+
385 common pkey_alloc sys_pkey_alloc
396+
386 common pkey_free sys_pkey_free
397+
387 common rseq sys_rseq
394398
# room for arch specific syscalls
395399
393 common semget sys_semget
396400
394 common semctl sys_semctl

‎arch/sparc/include/asm/unistd.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,4 @@
5959
#define __IGNORE_getresgid
6060
#endif
6161

62-
/* Sparc doesn't have protection keys. */
63-
#define __IGNORE_pkey_mprotect
64-
#define __IGNORE_pkey_alloc
65-
#define __IGNORE_pkey_free
66-
6762
#endif /* _SPARC_UNISTD_H */

0 commit comments

Comments
 (0)