diff mbox series

[v2,2/8] Update syscall lists for Linux 6.11

Message ID 20241008184634.245607-3-adhemerval.zanella@linaro.org
State New
Headers show
Series Updates for Linux 6.11 | expand

Commit Message

Adhemerval Zanella Netto Oct. 8, 2024, 6:45 p.m. UTC
Linux 6.11 changes for syscall are:

  * fstat/newfstatat for loongarch (it should be safe to add since
    255dc1e4ed8 that undefine them).
  * clone3 for nios2, which only adds the entry point but defined
    __ARCH_BROKEN_SYS_CLONE3 (the syscall will always return ENOSYS).
  * uretprobe for x86_64 and x32.

Update syscall-names.list and regenerate the arch-syscall.h headers
with build-many-glibcs.py update-syscalls.

Tested with build-many-glibcs.py.
---
 sysdeps/unix/sysv/linux/loongarch/arch-syscall.h  | 2 ++
 sysdeps/unix/sysv/linux/nios2/arch-syscall.h      | 1 +
 sysdeps/unix/sysv/linux/syscall-names.list        | 5 +++--
 sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h  | 1 +
 sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h | 1 +
 5 files changed, 8 insertions(+), 2 deletions(-)

Comments

H.J. Lu Oct. 8, 2024, 9:04 p.m. UTC | #1
On Wed, Oct 9, 2024 at 2:48 AM Adhemerval Zanella
<adhemerval.zanella@linaro.org> wrote:
>
> Linux 6.11 changes for syscall are:
>
>   * fstat/newfstatat for loongarch (it should be safe to add since
>     255dc1e4ed8 that undefine them).
>   * clone3 for nios2, which only adds the entry point but defined
>     __ARCH_BROKEN_SYS_CLONE3 (the syscall will always return ENOSYS).
>   * uretprobe for x86_64 and x32.
>
> Update syscall-names.list and regenerate the arch-syscall.h headers
> with build-many-glibcs.py update-syscalls.
>
> Tested with build-many-glibcs.py.
> ---
>  sysdeps/unix/sysv/linux/loongarch/arch-syscall.h  | 2 ++
>  sysdeps/unix/sysv/linux/nios2/arch-syscall.h      | 1 +
>  sysdeps/unix/sysv/linux/syscall-names.list        | 5 +++--
>  sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h  | 1 +
>  sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h | 1 +
>  5 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h b/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h
> index 8bb82448a7..7e732256fd 100644
> --- a/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h
> +++ b/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h
> @@ -59,6 +59,7 @@
>  #define __NR_fsmount 432
>  #define __NR_fsopen 430
>  #define __NR_fspick 433
> +#define __NR_fstat 80
>  #define __NR_fstatfs 44
>  #define __NR_fsync 82
>  #define __NR_ftruncate 46
> @@ -166,6 +167,7 @@
>  #define __NR_munmap 215
>  #define __NR_name_to_handle_at 264
>  #define __NR_nanosleep 101
> +#define __NR_newfstatat 79
>  #define __NR_nfsservctl 42
>  #define __NR_open_by_handle_at 265
>  #define __NR_open_tree 428
> diff --git a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h
> index f94e212995..b1d0fb6f6e 100644
> --- a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h
> +++ b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h
> @@ -24,6 +24,7 @@
>  #define __NR_clock_settime 112
>  #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
> diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list
> index 7871f93b94..aa5b479e2a 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 6.10.
> -kernel 6.10
> +# The list of system calls is current as of Linux 6.11.
> +kernel 6.11
>
>  FAST_atomic_update
>  FAST_cmpxchg
> @@ -653,6 +653,7 @@ uname
>  unlink
>  unlinkat
>  unshare
> +uretprobe
>  uselib
>  userfaultfd
>  usr26
> 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 5d86e75dd5..dfc10d0c7e 100644
> --- a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h
> +++ b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h
> @@ -359,6 +359,7 @@
>  #define __NR_unlink 87
>  #define __NR_unlinkat 263
>  #define __NR_unshare 272
> +#define __NR_uretprobe 335
>  #define __NR_uselib 134
>  #define __NR_userfaultfd 323
>  #define __NR_ustat 136
> 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 6c35068d8e..9340daa967 100644
> --- a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h
> +++ b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h
> @@ -351,6 +351,7 @@
>  #define __NR_unlink 1073741911
>  #define __NR_unlinkat 1073742087
>  #define __NR_unshare 1073742096
> +#define __NR_uretprobe 1073742159
>  #define __NR_userfaultfd 1073742147
>  #define __NR_ustat 1073741960
>  #define __NR_utime 1073741956
> --
> 2.43.0
>

LGTM.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>

Thanks.
diff mbox series

Patch

diff --git a/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h b/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h
index 8bb82448a7..7e732256fd 100644
--- a/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h
@@ -59,6 +59,7 @@ 
 #define __NR_fsmount 432
 #define __NR_fsopen 430
 #define __NR_fspick 433
+#define __NR_fstat 80
 #define __NR_fstatfs 44
 #define __NR_fsync 82
 #define __NR_ftruncate 46
@@ -166,6 +167,7 @@ 
 #define __NR_munmap 215
 #define __NR_name_to_handle_at 264
 #define __NR_nanosleep 101
+#define __NR_newfstatat 79
 #define __NR_nfsservctl 42
 #define __NR_open_by_handle_at 265
 #define __NR_open_tree 428
diff --git a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h
index f94e212995..b1d0fb6f6e 100644
--- a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h
@@ -24,6 +24,7 @@ 
 #define __NR_clock_settime 112
 #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
diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list
index 7871f93b94..aa5b479e2a 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 6.10.
-kernel 6.10
+# The list of system calls is current as of Linux 6.11.
+kernel 6.11
 
 FAST_atomic_update
 FAST_cmpxchg
@@ -653,6 +653,7 @@  uname
 unlink
 unlinkat
 unshare
+uretprobe
 uselib
 userfaultfd
 usr26
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 5d86e75dd5..dfc10d0c7e 100644
--- a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h
@@ -359,6 +359,7 @@ 
 #define __NR_unlink 87
 #define __NR_unlinkat 263
 #define __NR_unshare 272
+#define __NR_uretprobe 335
 #define __NR_uselib 134
 #define __NR_userfaultfd 323
 #define __NR_ustat 136
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 6c35068d8e..9340daa967 100644
--- a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h
@@ -351,6 +351,7 @@ 
 #define __NR_unlink 1073741911
 #define __NR_unlinkat 1073742087
 #define __NR_unshare 1073742096
+#define __NR_uretprobe 1073742159
 #define __NR_userfaultfd 1073742147
 #define __NR_ustat 1073741960
 #define __NR_utime 1073741956