Skip to content

arch: synchronize syscall tables in preparation for y2038

Arnd Bergmann linux-alpha linux-api linux-arm-kernel linux-ia64 linux-mips linux-parisc linux-s390 linux-sh linuxppc-dev lkml sparclinux stable 1 version Applied

Status from this message: Applied to mips-fixes.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 31 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/15ia64: add __NR_umount2 definitionarch/ia64/include/asm/unistd.h arch/ia64/include/uapi/asm/unistd.h arch/ia64/kernel/syscalls/syscall.tbl+3 -150 replies
2/15ia64: add statx and io_pgetevents syscallsarch/ia64/kernel/syscalls/syscall.tbl+2 -00 replies
3/15ia64: assign syscall numbers for perf and seccomparch/ia64/kernel/syscalls/syscall.tbl+2 -00 replies
4/15alpha: wire up io_pgetevents system callarch/alpha/kernel/syscalls/syscall.tbl+1 -00 replies
5/15alpha: update syscall macro definitionsarch/alpha/include/asm/unistd.h arch/alpha/include/uapi/asm/unistd.h arch/alpha/kernel/syscalls/syscall.tbl+7 -80 replies
6/15ARM: add migrate_pages() system callarch/arm/include/asm/unistd.h arch/arm/tools/syscall.tbl arch/arm64/include/asm/unistd.h +1 more+4 -22 replies
7/15ARM: add kexec_file_load system call numberarch/arm/tools/syscall.tbl arch/arm64/include/asm/unistd.h arch/arm64/include/asm/unistd32.h+4 -12 replies
8/15m68k: assign syscall number for seccomparch/m68k/kernel/syscalls/syscall.tbl+1 -00 replies
9/15sh: remove duplicate unistd_32.h filearch/sh/include/uapi/asm/unistd_32.h+0 -4030 replies
10/15sh: add statx system callarch/sh/kernel/syscalls/syscall.tbl+1 -00 replies
11/15mips: fix n32 compat_ipc_parse_versionarch/mips/Kconfig+1 -03 replies
12/15sparc64: fix sparc_ipc type conversionarch/sparc/kernel/sys_sparc_64.c+1 -10 replies
13/15ipc: rename old-style shmctl/semctl/msgctl syscallsarch/alpha/kernel/syscalls/syscall.tbl arch/arm/tools/syscall.tbl arch/arm64/include/asm/unistd32.h +11 more+137 -620 replies
14/15arch: add split IPC system calls where neededarch/m68k/kernel/syscalls/syscall.tbl arch/mips/kernel/syscalls/syscall_o32.tbl arch/powerpc/kernel/syscalls/syscall.tbl +4 more+80 -011 replies
15/15arch: add pkey and rseq syscall numbers everywherearch/alpha/include/asm/unistd.h arch/alpha/kernel/syscalls/syscall.tbl arch/ia64/kernel/syscalls/syscall.tbl +9 more+28 -155 replies

Reviews trailers per patch

1 of 15 patches has a Reviewed-by or Acked-by.

PatchPaul Burton
1/15
2/15
3/15
4/15
5/15
6/15
7/15
8/15
9/15
10/15
11/15A-b
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/15] arch: synchronize syscall tables in preparation for y2038

The system call tables have diverged a bit over the years, and a number of the recent additions never made it into all architectures, for one reason or another.

This is an attempt to clean it up as far as we can without breaking compatibility, doing a number of steps:

- Add system calls that have not yet been integrated into all architectures but that we definitely want there.

- Add the separate ipc syscalls on all architectures that traditionally only had sys_ipc(). This version is done without support for IPC_OLD that is we have in sys_ipc. The new semtimedop_time64 syscall will only be added here, not in sys_ipc

- Add syscall numbers for a couple of syscalls that we probably don't need everywhere, in particular pkey_* and rseq, for the purpose of symmetry: if it's in asm-generic/unistd.h, it makes sense to have it everywhere.

- Prepare for having the same system call numbers for any future calls. In combination with the generated tables, this hopefully makes it easier to add new calls across all architectures together.

Most of the contents of this series are unrelated to the actual y2038 work, but for the moment, that second series is based on this one. If there are any concerns about changes here, I can drop or rewrite any individual patch in this series.

My plan is to merge any patches in this series that are found to be good together with the y2038 patches for linux-5.1, so please review and provide Acks for merging through my tree, or pick them up for 5.0 if they seem urgent enough.

Arnd

Arnd Bergmann (15):
ia64: add __NR_umount2 definition
ia64: add statx and io_pgetevents syscalls
ia64: assign syscall numbers for perf and seccomp
alpha: wire up io_pgetevents system call
alpha: update syscall macro definitions
ARM: add migrate_pages() system call
ARM: add kexec_file_load system call number
m68k: assign syscall number for seccomp
sh: remove duplicate unistd_32.h file
sh: add statx system call
mips: fix n32 compat_ipc_parse_version
sparc64: fix sparc_ipc type conversion
ipc: rename old-style shmctl/semctl/msgctl syscalls
arch: add split IPC system calls where needed
arch: add pkey and rseq syscall numbers everywhere

 arch/alpha/include/asm/unistd.h             |  10 -
 arch/alpha/include/uapi/asm/unistd.h        |   5 +
 arch/alpha/kernel/syscalls/syscall.tbl      |  15 +-
 arch/arm/include/asm/unistd.h               |   1 -
 arch/arm/tools/syscall.tbl                  |   8 +-
 arch/arm64/include/asm/unistd.h             |   2 +-
 arch/arm64/include/asm/unistd32.h           |  10 +-
 arch/ia64/include/asm/unistd.h              |  14 -
 arch/ia64/include/uapi/asm/unistd.h         |   2 +
 arch/ia64/kernel/syscalls/syscall.tbl       |  10 +-
 arch/m68k/kernel/syscalls/syscall.tbl       |  16 +
 arch/microblaze/kernel/syscalls/syscall.tbl |   6 +-
 arch/mips/Kconfig                           |   1 +
 arch/mips/kernel/syscalls/syscall_n32.tbl   |   6 +-
 arch/mips/kernel/syscalls/syscall_n64.tbl   |   6 +-
 arch/mips/kernel/syscalls/syscall_o32.tbl   |  11 +
 arch/parisc/include/asm/unistd.h            |   3 -
 arch/parisc/kernel/syscalls/syscall.tbl     |   4 +
 arch/powerpc/kernel/syscalls/syscall.tbl    |  12 +
 arch/s390/include/asm/unistd.h              |   3 -
 arch/s390/kernel/syscalls/syscall.tbl       |  15 +
 arch/sh/include/uapi/asm/unistd_32.h        | 403 --------------------
 arch/sh/kernel/syscalls/syscall.tbl         |  16 +
 arch/sparc/include/asm/unistd.h             |   5 -
 arch/sparc/kernel/sys_sparc_64.c            |   2 +-
 arch/sparc/kernel/syscalls/syscall.tbl      |  16 +
 arch/x86/entry/syscalls/syscall_32.tbl      |  11 +
 arch/xtensa/kernel/syscalls/syscall.tbl     |   7 +-
 include/linux/syscalls.h                    |   3 +
 ipc/msg.c                                   |  39 +-
 ipc/sem.c                                   |  39 +-
 ipc/shm.c                                   |  40 +-
 ipc/syscall.c                               |  12 +-
 ipc/util.h                                  |  21 +-
 kernel/sys_ni.c                             |   3 +
 35 files changed, 271 insertions(+), 506 deletions(-)
 delete mode 100644 arch/sh/include/uapi/asm/unistd_32.h
Signature · 43 lines
2.20.0
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
CC: [email protected]