arch: add pkey and rseq syscall numbers everywhere
authorArnd Bergmann <arnd@arndb.de>
Mon, 31 Dec 2018 22:12:32 +0000 (23:12 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 25 Jan 2019 16:22:50 +0000 (17:22 +0100)
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>
12 files changed:
arch/alpha/include/asm/unistd.h
arch/alpha/kernel/syscalls/syscall.tbl
arch/ia64/kernel/syscalls/syscall.tbl
arch/m68k/kernel/syscalls/syscall.tbl
arch/parisc/include/asm/unistd.h
arch/parisc/kernel/syscalls/syscall.tbl
arch/s390/include/asm/unistd.h
arch/s390/kernel/syscalls/syscall.tbl
arch/sh/kernel/syscalls/syscall.tbl
arch/sparc/include/asm/unistd.h
arch/sparc/kernel/syscalls/syscall.tbl
arch/xtensa/kernel/syscalls/syscall.tbl

index 564ba87bdc383209afbea92adcdf5ddcf7ac4015..31ad350b58a09c40dc263997a515669d1a85c8f7 100644 (file)
@@ -29,9 +29,5 @@
 #define __IGNORE_getppid
 #define __IGNORE_getuid
 
-/* Alpha doesn't have protection keys. */
-#define __IGNORE_pkey_mprotect
-#define __IGNORE_pkey_alloc
-#define __IGNORE_pkey_free
 
 #endif /* _ALPHA_UNISTD_H */
index b0e2472879082b637a541547ecab1aa15a744175..ae8824a6cf81697984ed5f31e24e79a43c8b06ba 100644 (file)
 521    common  pwritev2                        sys_pwritev2
 522    common  statx                           sys_statx
 523    common  io_pgetevents                   sys_io_pgetevents
+524    common  pkey_mprotect                   sys_pkey_mprotect
+525    common  pkey_alloc                      sys_pkey_alloc
+526    common  pkey_free                       sys_pkey_free
+527    common  rseq                            sys_rseq
index 2e93dbdcdb803957385c86baf8feffc46bdf0a1d..52319006de0d7e0766fe0e85bdff638beb7cf598 100644 (file)
 327    common  io_pgetevents                   sys_io_pgetevents
 328    common  perf_event_open                 sys_perf_event_open
 329    common  seccomp                         sys_seccomp
+330    common  pkey_mprotect                   sys_pkey_mprotect
+331    common  pkey_alloc                      sys_pkey_alloc
+332    common  pkey_free                       sys_pkey_free
+333    common  rseq                            sys_rseq
index 5354ba02eed2228ef3aeb873f5c09a533c9eaa1d..bffffb202f8af98e60cd8353dbac337f26baa78c 100644 (file)
 378    common  pwritev2                        sys_pwritev2
 379    common  statx                           sys_statx
 380    common  seccomp                         sys_seccomp
+381    common  pkey_mprotect                   sys_pkey_mprotect
+382    common  pkey_alloc                      sys_pkey_alloc
+383    common  pkey_free                       sys_pkey_free
+384    common  rseq                            sys_rseq
 # room for arch specific calls
 393    common  semget                          sys_semget
 394    common  semctl                          sys_semctl
index c2c2afb28941c16eedea2e8dfb67d53c2fad0fdc..9ec1026af8771e03f5411366eb45839866456d0c 100644 (file)
@@ -12,9 +12,6 @@
 
 #define __IGNORE_select                        /* newselect */
 #define __IGNORE_fadvise64             /* fadvise64_64 */
-#define __IGNORE_pkey_mprotect
-#define __IGNORE_pkey_alloc
-#define __IGNORE_pkey_free
 
 #ifndef ASM_LINE_SEP
 # define ASM_LINE_SEP ;
index 9bbd2f9f56c84fdc64d1fe1eb635873736ee3630..71873bb72782c10b24387ba1f600ca5598dd0acb 100644 (file)
 348    common  pwritev2                sys_pwritev2                    compat_sys_pwritev2
 349    common  statx                   sys_statx
 350    common  io_pgetevents           sys_io_pgetevents               compat_sys_io_pgetevents
+351    common  pkey_mprotect           sys_pkey_mprotect
+352    common  pkey_alloc              sys_pkey_alloc
+353    common  pkey_free               sys_pkey_free
+354    common  rseq                    sys_rseq
index a1fbf15d53aa8973082de0738063005a82c7529f..ed08f114ee91536dd9f064543c2be8aa88f6438b 100644 (file)
@@ -11,9 +11,6 @@
 #include <asm/unistd_nr.h>
 
 #define __IGNORE_time
-#define __IGNORE_pkey_mprotect
-#define __IGNORE_pkey_alloc
-#define __IGNORE_pkey_free
 
 #define __ARCH_WANT_NEW_STAT
 #define __ARCH_WANT_OLD_READDIR
index 0bccb01c620280cfe1f15544f889e98b34299f84..620e222003cacbbf6c582d513d24a7ed304715c3 100644 (file)
 381  common    kexec_file_load         sys_kexec_file_load             sys_kexec_file_load
 382  common    io_pgetevents           sys_io_pgetevents               compat_sys_io_pgetevents
 383  common    rseq                    sys_rseq                        sys_rseq
+384  common    pkey_mprotect           sys_pkey_mprotect               sys_pkey_mprotect
+385  common    pkey_alloc              sys_pkey_alloc                  sys_pkey_alloc
+386  common    pkey_free               sys_pkey_free                   sys_pkey_free
 # room for arch specific syscalls
 392    64      semtimedop              sys_semtimedop                  -
 393  common    semget                  sys_semget                      sys_semget
index 6d0b84e3ef2dae79ca6c65fa8a3d0ccf139147ab..cafa63c6a932fe901df7ed8e6b15a36d9e5bef46 100644 (file)
 381    common  preadv2                         sys_preadv2
 382    common  pwritev2                        sys_pwritev2
 383    common  statx                           sys_statx
+384    common  pkey_mprotect                   sys_pkey_mprotect
+385    common  pkey_alloc                      sys_pkey_alloc
+386    common  pkey_free                       sys_pkey_free
+387    common  rseq                            sys_rseq
 # room for arch specific syscalls
 393    common  semget                          sys_semget
 394    common  semctl                          sys_semctl
index 5194d86ef72d91de243bfb7e7bef17f29008dd06..08696ea5dca871a41a0c10d59e78d6297b8e2a4c 100644 (file)
@@ -59,9 +59,4 @@
 #define __IGNORE_getresgid
 #endif
 
-/* Sparc doesn't have protection keys. */
-#define __IGNORE_pkey_mprotect
-#define __IGNORE_pkey_alloc
-#define __IGNORE_pkey_free
-
 #endif /* _SPARC_UNISTD_H */
index 8c95803024222bc9fa64a792861336e69d1fdb73..6992d17cce372ededdfffb4bf04ff5eef6b42ee8 100644 (file)
 359    common  pwritev2                sys_pwritev2                    compat_sys_pwritev2
 360    common  statx                   sys_statx
 361    common  io_pgetevents           sys_io_pgetevents               compat_sys_io_pgetevents
+362    common  pkey_mprotect           sys_pkey_mprotect
+363    common  pkey_alloc              sys_pkey_alloc
+364    common  pkey_free               sys_pkey_free
+365    common  rseq                    sys_rseq
 # room for arch specific syscalls
 392    64      semtimedop                      sys_semtimedop
 393    common  semget                  sys_semget
index f8befa11b0c418eac28a0693ccdd2d3311302093..c699e014e0dd0177af018621698163bbe05f078f 100644 (file)
 349    common  pkey_alloc                      sys_pkey_alloc
 350    common  pkey_free                       sys_pkey_free
 351    common  statx                           sys_statx
+352    common  rseq                            sys_rseq