diff options
author | Joseph Myers <joseph@codesourcery.com> | 2021-11-10 15:21:19 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2021-11-10 15:21:19 +0000 |
commit | 3387c40a8bbad5faf85b1feb56429cb20feaa640 (patch) | |
tree | cac2486e0c1b8662f817ef965f3ad92aa3b72c8c | |
parent | 98966749f2b418825ff2ea496a0ee89fe63d2cc8 (diff) | |
download | glibc-3387c40a8bbad5faf85b1feb56429cb20feaa640.tar glibc-3387c40a8bbad5faf85b1feb56429cb20feaa640.tar.gz glibc-3387c40a8bbad5faf85b1feb56429cb20feaa640.tar.bz2 glibc-3387c40a8bbad5faf85b1feb56429cb20feaa640.zip |
Update syscall lists for Linux 5.15
Linux 5.15 has one new syscall, process_mrelease (and also enables the
clone3 syscall for RV32). It also has a macro __NR_SYSCALL_MASK for
Arm, which is not a syscall but matches the pattern used for syscall
macro names.
Add __NR_SYSCALL_MASK to the names filtered out in the code dealing
with syscall lists, update syscall-names.list for the new syscall and
regenerate the arch-syscall.h headers with build-many-glibcs.py
update-syscalls.
Tested with build-many-glibcs.py.
28 files changed, 31 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h index bedab1abba..74a809561a 100644 --- a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h @@ -180,6 +180,7 @@ #define __NR_preadv2 286 #define __NR_prlimit64 261 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 270 #define __NR_process_vm_writev 271 #define __NR_pselect6 72 diff --git a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h index 91354ed9e2..6fc0a23504 100644 --- a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h @@ -328,6 +328,7 @@ #define __NR_preadv2 520 #define __NR_prlimit64 496 #define __NR_process_madvise 550 +#define __NR_process_mrelease 558 #define __NR_process_vm_readv 504 #define __NR_process_vm_writev 505 #define __NR_pselect6 463 diff --git a/sysdeps/unix/sysv/linux/arc/arch-syscall.h b/sysdeps/unix/sysv/linux/arc/arch-syscall.h index ff5c7eb36d..0c66762bf8 100644 --- a/sysdeps/unix/sysv/linux/arc/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/arc/arch-syscall.h @@ -182,6 +182,7 @@ #define __NR_preadv2 286 #define __NR_prlimit64 261 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 270 #define __NR_process_vm_writev 271 #define __NR_pselect6_time64 413 diff --git a/sysdeps/unix/sysv/linux/arm/arch-syscall.h b/sysdeps/unix/sysv/linux/arm/arch-syscall.h index 5772333cee..c41a864c6d 100644 --- a/sysdeps/unix/sysv/linux/arm/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/arm/arch-syscall.h @@ -235,6 +235,7 @@ #define __NR_preadv2 392 #define __NR_prlimit64 369 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 376 #define __NR_process_vm_writev 377 #define __NR_pselect6 335 diff --git a/sysdeps/unix/sysv/linux/csky/arch-syscall.h b/sysdeps/unix/sysv/linux/csky/arch-syscall.h index 4af6d6202f..863ffa3e0c 100644 --- a/sysdeps/unix/sysv/linux/csky/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/csky/arch-syscall.h @@ -190,6 +190,7 @@ #define __NR_preadv2 286 #define __NR_prlimit64 261 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 270 #define __NR_process_vm_writev 271 #define __NR_pselect6 72 diff --git a/sysdeps/unix/sysv/linux/filter-nr-syscalls.awk b/sysdeps/unix/sysv/linux/filter-nr-syscalls.awk index dddfd51747..85b017918e 100644 --- a/sysdeps/unix/sysv/linux/filter-nr-syscalls.awk +++ b/sysdeps/unix/sysv/linux/filter-nr-syscalls.awk @@ -22,7 +22,7 @@ } # Skip pseudo-system calls which describe ranges. -/^#define __NR_(syscalls|arch_specific_syscall|(OABI_)?SYSCALL_BASE) / { +/^#define __NR_(syscalls|arch_specific_syscall|(OABI_)?SYSCALL_BASE|SYSCALL_MASK) / { next; } /^#define __NR_(|64_|[NO]32_)Linux(_syscalls)? / { diff --git a/sysdeps/unix/sysv/linux/glibcsyscalls.py b/sysdeps/unix/sysv/linux/glibcsyscalls.py index 621a202ed7..fe7896eebe 100644 --- a/sysdeps/unix/sysv/linux/glibcsyscalls.py +++ b/sysdeps/unix/sysv/linux/glibcsyscalls.py @@ -41,7 +41,7 @@ RE_PSEUDO_SYSCALL = re.compile(r"""__NR_( (unused|reserved)[0-9]+ # Pseudo-system call which describes a range. - |(syscalls|arch_specific_syscall|(OABI_)?SYSCALL_BASE) + |(syscalls|arch_specific_syscall|(OABI_)?SYSCALL_BASE|SYSCALL_MASK) |(|64_|[NO]32_)Linux(_syscalls)? )""", re.X) diff --git a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h index b07fc8549d..6cf27cd17c 100644 --- a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h @@ -222,6 +222,7 @@ #define __NR_preadv2 347 #define __NR_prlimit64 321 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 330 #define __NR_process_vm_writev 331 #define __NR_pselect6 273 diff --git a/sysdeps/unix/sysv/linux/i386/arch-syscall.h b/sysdeps/unix/sysv/linux/i386/arch-syscall.h index 6e4264698b..2512508b7d 100644 --- a/sysdeps/unix/sysv/linux/i386/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/i386/arch-syscall.h @@ -254,6 +254,7 @@ #define __NR_preadv2 378 #define __NR_prlimit64 340 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 347 #define __NR_process_vm_writev 348 #define __NR_prof 44 diff --git a/sysdeps/unix/sysv/linux/ia64/arch-syscall.h b/sysdeps/unix/sysv/linux/ia64/arch-syscall.h index 1ca706d721..4a0c737369 100644 --- a/sysdeps/unix/sysv/linux/ia64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/ia64/arch-syscall.h @@ -209,6 +209,7 @@ #define __NR_preadv2 1348 #define __NR_prlimit64 1325 #define __NR_process_madvise 1464 +#define __NR_process_mrelease 1472 #define __NR_process_vm_readv 1332 #define __NR_process_vm_writev 1333 #define __NR_pselect6 1294 diff --git a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h index 2f10f71f90..e310eb5075 100644 --- a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h @@ -243,6 +243,7 @@ #define __NR_preadv2 377 #define __NR_prlimit64 339 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 345 #define __NR_process_vm_writev 346 #define __NR_pselect6 301 diff --git a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h index 0607a4dfa6..b4ecad010c 100644 --- a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h @@ -253,6 +253,7 @@ #define __NR_preadv2 393 #define __NR_prlimit64 370 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 377 #define __NR_process_vm_writev 378 #define __NR_prof 44 diff --git a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h index 0055eec0b1..7e3d138ba9 100644 --- a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h @@ -238,6 +238,7 @@ #define __NR_preadv2 4361 #define __NR_prlimit64 4338 #define __NR_process_madvise 4440 +#define __NR_process_mrelease 4448 #define __NR_process_vm_readv 4345 #define __NR_process_vm_writev 4346 #define __NR_prof 4044 diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h b/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h index 8e8e9f91cc..7e9e232e52 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h @@ -221,6 +221,7 @@ #define __NR_preadv2 6325 #define __NR_prlimit64 6302 #define __NR_process_madvise 6440 +#define __NR_process_mrelease 6448 #define __NR_process_vm_readv 6309 #define __NR_process_vm_writev 6310 #define __NR_pselect6 6264 diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h b/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h index ebd1545f80..f9e7ef72b0 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h @@ -209,6 +209,7 @@ #define __NR_preadv2 5321 #define __NR_prlimit64 5297 #define __NR_process_madvise 5440 +#define __NR_process_mrelease 5448 #define __NR_process_vm_readv 5304 #define __NR_process_vm_writev 5305 #define __NR_pselect6 5260 diff --git a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h index 2b530b1f88..afd73fc1da 100644 --- a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h @@ -189,6 +189,7 @@ #define __NR_preadv2 286 #define __NR_prlimit64 261 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 270 #define __NR_process_vm_writev 271 #define __NR_pselect6 72 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h index a32984a9c1..0ac2992028 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h @@ -247,6 +247,7 @@ #define __NR_preadv2 380 #define __NR_prlimit64 325 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 351 #define __NR_process_vm_writev 352 #define __NR_prof 44 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h index b01e464fb9..c890bc644e 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h @@ -231,6 +231,7 @@ #define __NR_preadv2 380 #define __NR_prlimit64 325 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 351 #define __NR_process_vm_writev 352 #define __NR_prof 44 diff --git a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h index 24d0a2c455..cd336d755a 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h @@ -16,6 +16,7 @@ #define __NR_clock_nanosleep_time64 407 #define __NR_clock_settime64 404 #define __NR_clone 220 +#define __NR_clone3 435 #define __NR_close 57 #define __NR_close_range 436 #define __NR_connect 203 @@ -171,6 +172,7 @@ #define __NR_preadv2 286 #define __NR_prlimit64 261 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 270 #define __NR_process_vm_writev 271 #define __NR_pselect6_time64 413 diff --git a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h index e526c89ae7..8edd21620b 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h @@ -179,6 +179,7 @@ #define __NR_preadv2 286 #define __NR_prlimit64 261 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 270 #define __NR_process_vm_writev 271 #define __NR_pselect6 72 diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h b/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h index d4c7b101b6..1a4873f505 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h @@ -240,6 +240,7 @@ #define __NR_preadv2 376 #define __NR_prlimit64 334 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 340 #define __NR_process_vm_writev 341 #define __NR_pselect6 301 diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h b/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h index bd8c78d705..2af4607c1d 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h @@ -211,6 +211,7 @@ #define __NR_preadv2 376 #define __NR_prlimit64 334 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 340 #define __NR_process_vm_writev 341 #define __NR_pselect6 301 diff --git a/sysdeps/unix/sysv/linux/sh/arch-syscall.h b/sysdeps/unix/sysv/linux/sh/arch-syscall.h index 3b6ac3d084..7b422ce268 100644 --- a/sysdeps/unix/sysv/linux/sh/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/sh/arch-syscall.h @@ -237,6 +237,7 @@ #define __NR_preadv2 381 #define __NR_prlimit64 339 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 365 #define __NR_process_vm_writev 366 #define __NR_pselect6 308 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h index 35221a707e..77c3cc64f9 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h @@ -242,6 +242,7 @@ #define __NR_preadv2 358 #define __NR_prlimit64 331 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 338 #define __NR_process_vm_writev 339 #define __NR_pselect6 297 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h index 5ba2b20509..7ad50bc4ad 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h @@ -222,6 +222,7 @@ #define __NR_preadv2 358 #define __NR_prlimit64 331 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 338 #define __NR_process_vm_writev 339 #define __NR_pselect6 297 diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list index fd98893b0e..1a74d090b7 100644 --- a/sysdeps/unix/sysv/linux/syscall-names.list +++ b/sysdeps/unix/sysv/linux/syscall-names.list @@ -21,8 +21,8 @@ # This file can list all potential system calls. The names are only # used if the installed kernel headers also provide them. -# The list of system calls is current as of Linux 5.14. -kernel 5.14 +# The list of system calls is current as of Linux 5.15. +kernel 5.15 FAST_atomic_update FAST_cmpxchg @@ -440,6 +440,7 @@ preadv preadv2 prlimit64 process_madvise +process_mrelease process_vm_readv process_vm_writev prof diff --git a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h index 26d6ac68a6..3ce2a1fcfc 100644 --- a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h @@ -215,6 +215,7 @@ #define __NR_preadv2 327 #define __NR_prlimit64 302 #define __NR_process_madvise 440 +#define __NR_process_mrelease 448 #define __NR_process_vm_readv 310 #define __NR_process_vm_writev 311 #define __NR_pselect6 270 diff --git a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h index 36847783f6..9e87e89bac 100644 --- a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h @@ -208,6 +208,7 @@ #define __NR_preadv2 1073742370 #define __NR_prlimit64 1073742126 #define __NR_process_madvise 1073742264 +#define __NR_process_mrelease 1073742272 #define __NR_process_vm_readv 1073742363 #define __NR_process_vm_writev 1073742364 #define __NR_pselect6 1073742094 |