diff mbox series

Update syscall lists for Linux 5.12

Message ID alpine.DEB.2.22.394.2104272351540.39318@digraph.polyomino.org.uk
State Committed
Commit 4a7c342605bc653f72d60c36abe698986fb5cb47
Headers show
Series Update syscall lists for Linux 5.12 | expand

Commit Message

Joseph Myers April 27, 2021, 11:52 p.m. UTC
Linux 5.12 has one new syscall, mount_setattr.  Update
syscall-names.list and regenerate the arch-syscall.h headers with
build-many-glibcs.py update-syscalls.

Tested with build-many-glibcs.py.

Comments

Dmitry V. Levin April 28, 2021, 12:07 a.m. UTC | #1
On Tue, Apr 27, 2021 at 11:52:27PM +0000, Joseph Myers wrote:
> Linux 5.12 has one new syscall, mount_setattr.  Update
> syscall-names.list and regenerate the arch-syscall.h headers with
> build-many-glibcs.py update-syscalls.

Yes, this looks correct, mount_setattr syscall was introduced
by Linux kernel commit v5.12-rc1~64^2~6.
Carlos O'Donell May 2, 2021, 7:17 p.m. UTC | #2
On 4/27/21 8:07 PM, Dmitry V. Levin wrote:
> On Tue, Apr 27, 2021 at 11:52:27PM +0000, Joseph Myers wrote:
>> Linux 5.12 has one new syscall, mount_setattr.  Update
>> syscall-names.list and regenerate the arch-syscall.h headers with
>> build-many-glibcs.py update-syscalls.
> 
> Yes, this looks correct, mount_setattr syscall was introduced
> by Linux kernel commit v5.12-rc1~64^2~6.
> 
> 

And a few more were added...

error: kernel syscall 'quotactl_path' (443) not known to glibc
error: kernel syscall 'landlock_create_ruleset' (444) not known to glibc
error: kernel syscall 'landlock_restrict_self' (446) not known to glibc
error: kernel syscall 'landlock_add_rule' (445) not known to glibc
info: glibc tables are based on kernel version 5.12
info: installed kernel headers are version 5.12
Florian Weimer May 2, 2021, 7:42 p.m. UTC | #3
* Carlos O'Donell via Libc-alpha:

> On 4/27/21 8:07 PM, Dmitry V. Levin wrote:
>> On Tue, Apr 27, 2021 at 11:52:27PM +0000, Joseph Myers wrote:
>>> Linux 5.12 has one new syscall, mount_setattr.  Update
>>> syscall-names.list and regenerate the arch-syscall.h headers with
>>> build-many-glibcs.py update-syscalls.
>> 
>> Yes, this looks correct, mount_setattr syscall was introduced
>> by Linux kernel commit v5.12-rc1~64^2~6.
>> 
>> 
>
> And a few more were added...
>
> error: kernel syscall 'quotactl_path' (443) not known to glibc
> error: kernel syscall 'landlock_create_ruleset' (444) not known to glibc
> error: kernel syscall 'landlock_restrict_self' (446) not known to glibc
> error: kernel syscall 'landlock_add_rule' (445) not known to glibc
> info: glibc tables are based on kernel version 5.12
> info: installed kernel headers are version 5.12

It looks like you are using a development kernel that hasn't changed
its version to 5.13 yet.
Carlos O'Donell May 2, 2021, 8:19 p.m. UTC | #4
On 5/2/21 3:42 PM, Florian Weimer wrote:
> * Carlos O'Donell via Libc-alpha:
> 
>> On 4/27/21 8:07 PM, Dmitry V. Levin wrote:
>>> On Tue, Apr 27, 2021 at 11:52:27PM +0000, Joseph Myers wrote:
>>>> Linux 5.12 has one new syscall, mount_setattr.  Update
>>>> syscall-names.list and regenerate the arch-syscall.h headers with
>>>> build-many-glibcs.py update-syscalls.
>>>
>>> Yes, this looks correct, mount_setattr syscall was introduced
>>> by Linux kernel commit v5.12-rc1~64^2~6.
>>>
>>>
>>
>> And a few more were added...
>>
>> error: kernel syscall 'quotactl_path' (443) not known to glibc
>> error: kernel syscall 'landlock_create_ruleset' (444) not known to glibc
>> error: kernel syscall 'landlock_restrict_self' (446) not known to glibc
>> error: kernel syscall 'landlock_add_rule' (445) not known to glibc
>> info: glibc tables are based on kernel version 5.12
>> info: installed kernel headers are version 5.12
> 
> It looks like you are using a development kernel that hasn't changed
> its version to 5.13 yet.
 
It's upstream Linus tree, but I thought I'd pinned it to 5.12... and you
are right it looks like they haven't updated the top-level Makefile:VERSION
yet even though they've started merging in changes for 5.13.
Andreas Schwab May 2, 2021, 9:11 p.m. UTC | #5
On Mai 02 2021, Carlos O'Donell via Libc-alpha wrote:

> are right it looks like they haven't updated the top-level Makefile:VERSION

That won't happen before rc1.

Andreas.
diff mbox series

Patch

diff --git a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h
index 7841e1b..2479c1d 100644
--- a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h
@@ -132,6 +132,7 @@ 
 #define __NR_mlockall 230
 #define __NR_mmap 222
 #define __NR_mount 40
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 239
 #define __NR_mprotect 226
diff --git a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h
index 6d91756..8b06b3f 100644
--- a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h
@@ -164,6 +164,7 @@ 
 #define __NR_mlockall 316
 #define __NR_mmap 71
 #define __NR_mount 302
+#define __NR_mount_setattr 552
 #define __NR_move_mount 539
 #define __NR_move_pages 472
 #define __NR_mprotect 74
diff --git a/sysdeps/unix/sysv/linux/arc/arch-syscall.h b/sysdeps/unix/sysv/linux/arc/arch-syscall.h
index 021c5bc..5777ff2 100644
--- a/sysdeps/unix/sysv/linux/arc/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/arc/arch-syscall.h
@@ -136,6 +136,7 @@ 
 #define __NR_mlockall 230
 #define __NR_mmap2 222
 #define __NR_mount 40
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 239
 #define __NR_mprotect 226
diff --git a/sysdeps/unix/sysv/linux/arm/arch-syscall.h b/sysdeps/unix/sysv/linux/arm/arch-syscall.h
index 9352319..ed953c8 100644
--- a/sysdeps/unix/sysv/linux/arm/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/arm/arch-syscall.h
@@ -178,6 +178,7 @@ 
 #define __NR_mlockall 152
 #define __NR_mmap2 192
 #define __NR_mount 21
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 344
 #define __NR_mprotect 125
diff --git a/sysdeps/unix/sysv/linux/csky/arch-syscall.h b/sysdeps/unix/sysv/linux/csky/arch-syscall.h
index 4b44fac..4e8b603 100644
--- a/sysdeps/unix/sysv/linux/csky/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/csky/arch-syscall.h
@@ -141,6 +141,7 @@ 
 #define __NR_mlockall 230
 #define __NR_mmap2 222
 #define __NR_mount 40
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 239
 #define __NR_mprotect 226
diff --git a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h
index 5960c4e..ac04bf9 100644
--- a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h
@@ -169,6 +169,7 @@ 
 #define __NR_mmap 90
 #define __NR_mmap2 89
 #define __NR_mount 21
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 295
 #define __NR_mprotect 125
diff --git a/sysdeps/unix/sysv/linux/i386/arch-syscall.h b/sysdeps/unix/sysv/linux/i386/arch-syscall.h
index d366e15..ae733bf 100644
--- a/sysdeps/unix/sysv/linux/i386/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/i386/arch-syscall.h
@@ -193,6 +193,7 @@ 
 #define __NR_mmap2 192
 #define __NR_modify_ldt 123
 #define __NR_mount 21
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 317
 #define __NR_mprotect 125
diff --git a/sysdeps/unix/sysv/linux/ia64/arch-syscall.h b/sysdeps/unix/sysv/linux/ia64/arch-syscall.h
index 51133c7..d5a37b5 100644
--- a/sysdeps/unix/sysv/linux/ia64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/ia64/arch-syscall.h
@@ -154,6 +154,7 @@ 
 #define __NR_mmap 1151
 #define __NR_mmap2 1172
 #define __NR_mount 1043
+#define __NR_mount_setattr 1466
 #define __NR_move_mount 1453
 #define __NR_move_pages 1276
 #define __NR_mprotect 1155
diff --git a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h
index 4ef981e..6b4c66d 100644
--- a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h
@@ -186,6 +186,7 @@ 
 #define __NR_mmap 90
 #define __NR_mmap2 192
 #define __NR_mount 21
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 310
 #define __NR_mprotect 125
diff --git a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h
index 40e10d5..bf0b13a 100644
--- a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h
@@ -193,6 +193,7 @@ 
 #define __NR_mmap2 192
 #define __NR_modify_ldt 123
 #define __NR_mount 21
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 317
 #define __NR_mprotect 125
diff --git a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h
index 6110468..7c2af06 100644
--- a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h
@@ -183,6 +183,7 @@ 
 #define __NR_mmap2 4210
 #define __NR_modify_ldt 4123
 #define __NR_mount 4021
+#define __NR_mount_setattr 4442
 #define __NR_move_mount 4429
 #define __NR_move_pages 4308
 #define __NR_mprotect 4125
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 6c580c7..478c3c7 100644
--- a/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h
@@ -167,6 +167,7 @@ 
 #define __NR_mlockall 6148
 #define __NR_mmap 6009
 #define __NR_mount 6160
+#define __NR_mount_setattr 6442
 #define __NR_move_mount 6429
 #define __NR_move_pages 6271
 #define __NR_mprotect 6010
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 96ea97a..6e09423 100644
--- a/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h
@@ -158,6 +158,7 @@ 
 #define __NR_mlockall 5148
 #define __NR_mmap 5009
 #define __NR_mount 5160
+#define __NR_mount_setattr 5442
 #define __NR_move_mount 5429
 #define __NR_move_pages 5267
 #define __NR_mprotect 5010
diff --git a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h
index b3df453..ea919c9 100644
--- a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h
@@ -140,6 +140,7 @@ 
 #define __NR_mlockall 230
 #define __NR_mmap2 222
 #define __NR_mount 40
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 239
 #define __NR_mprotect 226
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h
index 73ac1a9..d67d604 100644
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h
@@ -183,6 +183,7 @@ 
 #define __NR_mmap2 192
 #define __NR_modify_ldt 123
 #define __NR_mount 21
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 301
 #define __NR_mprotect 125
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h
index a0eb956..d6dc812 100644
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h
@@ -169,6 +169,7 @@ 
 #define __NR_mmap 90
 #define __NR_modify_ldt 123
 #define __NR_mount 21
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 301
 #define __NR_mprotect 125
diff --git a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h
index 9d277b6..5d69de3 100644
--- a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h
@@ -126,6 +126,7 @@ 
 #define __NR_mlockall 230
 #define __NR_mmap2 222
 #define __NR_mount 40
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 239
 #define __NR_mprotect 226
diff --git a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h
index fb81726..94b57ee 100644
--- a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h
@@ -132,6 +132,7 @@ 
 #define __NR_mlockall 230
 #define __NR_mmap 222
 #define __NR_mount 40
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 239
 #define __NR_mprotect 226
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 7d26205..f604561 100644
--- a/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h
@@ -186,6 +186,7 @@ 
 #define __NR_mmap 90
 #define __NR_mmap2 192
 #define __NR_mount 21
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 310
 #define __NR_mprotect 125
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 f52b1e3..ad1a561 100644
--- a/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h
@@ -159,6 +159,7 @@ 
 #define __NR_mlockall 152
 #define __NR_mmap 90
 #define __NR_mount 21
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 310
 #define __NR_mprotect 125
diff --git a/sysdeps/unix/sysv/linux/sh/arch-syscall.h b/sysdeps/unix/sysv/linux/sh/arch-syscall.h
index 07037a6..ee2d01e 100644
--- a/sysdeps/unix/sysv/linux/sh/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/sh/arch-syscall.h
@@ -179,6 +179,7 @@ 
 #define __NR_mmap 90
 #define __NR_mmap2 192
 #define __NR_mount 21
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 317
 #define __NR_mprotect 125
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h
index 7701300..bbc9d93 100644
--- a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h
@@ -184,6 +184,7 @@ 
 #define __NR_mmap 71
 #define __NR_mmap2 56
 #define __NR_mount 167
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 307
 #define __NR_mprotect 74
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h
index fb7e315..b337c13 100644
--- a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h
@@ -167,6 +167,7 @@ 
 #define __NR_mlockall 239
 #define __NR_mmap 71
 #define __NR_mount 167
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 307
 #define __NR_mprotect 74
diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list
index f6cb340..8e3cfa0 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.11.
-kernel 5.11
+# The list of system calls is current as of Linux 5.12.
+kernel 5.12
 
 FAST_atomic_update
 FAST_cmpxchg
@@ -258,6 +258,7 @@  mmap
 mmap2
 modify_ldt
 mount
+mount_setattr
 move_mount
 move_pages
 mprotect
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 f7b0e28..5e8261c 100644
--- a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h
@@ -163,6 +163,7 @@ 
 #define __NR_mmap 9
 #define __NR_modify_ldt 154
 #define __NR_mount 165
+#define __NR_mount_setattr 442
 #define __NR_move_mount 429
 #define __NR_move_pages 279
 #define __NR_mprotect 10
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 dd9b2dd..9d26d20 100644
--- a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h
+++ b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h
@@ -157,6 +157,7 @@ 
 #define __NR_mmap 1073741833
 #define __NR_modify_ldt 1073741978
 #define __NR_mount 1073741989
+#define __NR_mount_setattr 1073742266
 #define __NR_move_mount 1073742253
 #define __NR_move_pages 1073742357
 #define __NR_mprotect 1073741834