From patchwork Wed Jun 30 23:05:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 44069 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A07F93893C4E for ; Wed, 30 Jun 2021 23:06:07 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id E3617385781F for ; Wed, 30 Jun 2021 23:05:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E3617385781F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: PUagXlAk+LJDQHca9+C9rd0fADuxfniKNft0YQeJ48wgnsR3e637MqqOL/YG61fNaAUHoGGrKu zarbHO85wBZ/oA3L/J5GU7wEyT2mbrA6qsjFCTZqAI8XMIMPsZPHbUHuMF1CIzhXffTifYwC7E WLWdIG5qWwaDSjgA+lMbMMSXnDNCua6RCI3l4hoqcdBuoNyO8KzHLSqpu0TYKJQikbhQoKOi7m OwWLuNSHfHF0QgVLQrX1UP5iq0wrFZstLlPdbjX/z9iR9wL+llzzz87LXob4xwHcJIQ3qb5K55 mhc= X-IronPort-AV: E=Sophos;i="5.83,312,1616486400"; d="scan'208";a="63031837" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 30 Jun 2021 15:05:52 -0800 IronPort-SDR: RloByfZUu383vzMam0X3MZIRiwxow7N87WfcyK90BMm4vnWxJvX8BH470F9wKld5qgCvYj7Ol6 zzio3wAv64kj1XRbfkSOqxUkkAIjL5+yDc0q5AzyWvxLvndW2n+srNRMmVb39Egz2dG6FaDftg KNKRP2N5aKtg7/1i2ID26p+Kfv034Kups7hyjHAj9JzG424k31i0xbSQk7Lvz17426MHSnk+3y CT2H6A5Tsh/6ZSudZg/t/udSZyrCZ+rQCByTbwAD2wRio4k4gGKKpsMQ/X57o3EJC8VGVSytzO Gm4= Date: Wed, 30 Jun 2021 23:05:47 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Subject: Update syscall lists for Linux 5.13 Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-09.mgc.mentorg.com (139.181.222.9) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3126.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" Linux 5.13 has three new syscalls (landlock_create_ruleset, landlock_add_rule, landlock_restrict_self). Update syscall-names.list and regenerate the arch-syscall.h headers with build-many-glibcs.py update-syscalls. Tested with build-many-glibcs.py. diff --git a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h index 2479c1d..e9eb707 100644 --- a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h @@ -110,6 +110,9 @@ #define __NR_kexec_load 104 #define __NR_keyctl 219 #define __NR_kill 129 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lgetxattr 9 #define __NR_linkat 37 #define __NR_listen 201 diff --git a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h index 8b06b3f..bd6b7d4 100644 --- a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h @@ -136,6 +136,9 @@ #define __NR_kexec_load 448 #define __NR_keyctl 441 #define __NR_kill 37 +#define __NR_landlock_add_rule 555 +#define __NR_landlock_create_ruleset 554 +#define __NR_landlock_restrict_self 556 #define __NR_lchown 208 #define __NR_lgetxattr 386 #define __NR_link 9 diff --git a/sysdeps/unix/sysv/linux/arc/arch-syscall.h b/sysdeps/unix/sysv/linux/arc/arch-syscall.h index 5777ff2..1065054 100644 --- a/sysdeps/unix/sysv/linux/arc/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/arc/arch-syscall.h @@ -114,6 +114,9 @@ #define __NR_kexec_load 104 #define __NR_keyctl 219 #define __NR_kill 129 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lgetxattr 9 #define __NR_linkat 37 #define __NR_listen 201 diff --git a/sysdeps/unix/sysv/linux/arm/arch-syscall.h b/sysdeps/unix/sysv/linux/arm/arch-syscall.h index ed953c8..85c9b23 100644 --- a/sysdeps/unix/sysv/linux/arm/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/arm/arch-syscall.h @@ -149,6 +149,9 @@ #define __NR_kexec_load 347 #define __NR_keyctl 311 #define __NR_kill 37 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lchown 16 #define __NR_lchown32 198 #define __NR_lgetxattr 230 diff --git a/sysdeps/unix/sysv/linux/csky/arch-syscall.h b/sysdeps/unix/sysv/linux/csky/arch-syscall.h index 4e8b603..24b0d1f 100644 --- a/sysdeps/unix/sysv/linux/csky/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/csky/arch-syscall.h @@ -119,6 +119,9 @@ #define __NR_kexec_load 104 #define __NR_keyctl 219 #define __NR_kill 129 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lgetxattr 9 #define __NR_linkat 37 #define __NR_listen 201 diff --git a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h index ac04bf9..feb70ab 100644 --- a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h @@ -140,6 +140,9 @@ #define __NR_kexec_load 300 #define __NR_keyctl 266 #define __NR_kill 37 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lchown 16 #define __NR_lgetxattr 242 #define __NR_link 9 diff --git a/sysdeps/unix/sysv/linux/i386/arch-syscall.h b/sysdeps/unix/sysv/linux/i386/arch-syscall.h index ae733bf..3b1894a 100644 --- a/sysdeps/unix/sysv/linux/i386/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/i386/arch-syscall.h @@ -161,6 +161,9 @@ #define __NR_kexec_load 283 #define __NR_keyctl 288 #define __NR_kill 37 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lchown 16 #define __NR_lchown32 198 #define __NR_lgetxattr 230 diff --git a/sysdeps/unix/sysv/linux/ia64/arch-syscall.h b/sysdeps/unix/sysv/linux/ia64/arch-syscall.h index d5a37b5..fb388a5 100644 --- a/sysdeps/unix/sysv/linux/ia64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/ia64/arch-syscall.h @@ -126,6 +126,9 @@ #define __NR_kexec_load 1268 #define __NR_keyctl 1273 #define __NR_kill 1053 +#define __NR_landlock_add_rule 1469 +#define __NR_landlock_create_ruleset 1468 +#define __NR_landlock_restrict_self 1470 #define __NR_lchown 1124 #define __NR_lgetxattr 1221 #define __NR_link 1031 diff --git a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h index 6b4c66d..7bc8c4a 100644 --- a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h @@ -156,6 +156,9 @@ #define __NR_kexec_load 313 #define __NR_keyctl 281 #define __NR_kill 37 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lchown 182 #define __NR_lchown32 212 #define __NR_lgetxattr 227 diff --git a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h index bf0b13a..cf560d3 100644 --- a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h @@ -161,6 +161,9 @@ #define __NR_kexec_load 283 #define __NR_keyctl 288 #define __NR_kill 37 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lchown 16 #define __NR_lchown32 198 #define __NR_lgetxattr 230 diff --git a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h index 7c2af06..f346460 100644 --- a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h @@ -152,6 +152,9 @@ #define __NR_kexec_load 4311 #define __NR_keyctl 4282 #define __NR_kill 4037 +#define __NR_landlock_add_rule 4445 +#define __NR_landlock_create_ruleset 4444 +#define __NR_landlock_restrict_self 4446 #define __NR_lchown 4016 #define __NR_lgetxattr 4228 #define __NR_link 4009 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 478c3c7..38ed849 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h @@ -140,6 +140,9 @@ #define __NR_kexec_load 6274 #define __NR_keyctl 6245 #define __NR_kill 6060 +#define __NR_landlock_add_rule 6445 +#define __NR_landlock_create_ruleset 6444 +#define __NR_landlock_restrict_self 6446 #define __NR_lchown 6092 #define __NR_lgetxattr 6184 #define __NR_link 6084 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 6e09423..e6a10c8 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h @@ -131,6 +131,9 @@ #define __NR_kexec_load 5270 #define __NR_keyctl 5241 #define __NR_kill 5060 +#define __NR_landlock_add_rule 5445 +#define __NR_landlock_create_ruleset 5444 +#define __NR_landlock_restrict_self 5446 #define __NR_lchown 5092 #define __NR_lgetxattr 5184 #define __NR_link 5084 diff --git a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h index ea919c9..5314890 100644 --- a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h @@ -118,6 +118,9 @@ #define __NR_kexec_load 104 #define __NR_keyctl 219 #define __NR_kill 129 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lgetxattr 9 #define __NR_linkat 37 #define __NR_listen 201 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h index d67d604..b5b0758 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h @@ -152,6 +152,9 @@ #define __NR_kexec_load 268 #define __NR_keyctl 271 #define __NR_kill 37 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lchown 16 #define __NR_lgetxattr 213 #define __NR_link 9 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h index d6dc812..c77435c 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h @@ -140,6 +140,9 @@ #define __NR_kexec_load 268 #define __NR_keyctl 271 #define __NR_kill 37 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lchown 16 #define __NR_lgetxattr 213 #define __NR_link 9 diff --git a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h index 5d69de3..70854bb 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h @@ -104,6 +104,9 @@ #define __NR_kexec_load 104 #define __NR_keyctl 219 #define __NR_kill 129 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lgetxattr 9 #define __NR_linkat 37 #define __NR_listen 201 diff --git a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h index 94b57ee..83b9f31 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h @@ -110,6 +110,9 @@ #define __NR_kexec_load 104 #define __NR_keyctl 219 #define __NR_kill 129 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lgetxattr 9 #define __NR_linkat 37 #define __NR_listen 201 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 f604561..b224c4a 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h @@ -156,6 +156,9 @@ #define __NR_kexec_load 277 #define __NR_keyctl 280 #define __NR_kill 37 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lchown 16 #define __NR_lchown32 198 #define __NR_lgetxattr 228 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 ad1a561..59864af 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h @@ -132,6 +132,9 @@ #define __NR_kexec_load 277 #define __NR_keyctl 280 #define __NR_kill 37 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lchown 198 #define __NR_lgetxattr 228 #define __NR_link 9 diff --git a/sysdeps/unix/sysv/linux/sh/arch-syscall.h b/sysdeps/unix/sysv/linux/sh/arch-syscall.h index ee2d01e..23612c9 100644 --- a/sysdeps/unix/sysv/linux/sh/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/sh/arch-syscall.h @@ -149,6 +149,9 @@ #define __NR_kexec_load 283 #define __NR_keyctl 287 #define __NR_kill 37 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lchown 16 #define __NR_lchown32 198 #define __NR_lgetxattr 230 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h index bbc9d93..380cddb 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h @@ -154,6 +154,9 @@ #define __NR_kexec_load 306 #define __NR_keyctl 283 #define __NR_kill 37 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lchown 16 #define __NR_lchown32 31 #define __NR_lgetxattr 173 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h index b337c13..2175eeb 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h @@ -138,6 +138,9 @@ #define __NR_kexec_load 306 #define __NR_keyctl 283 #define __NR_kill 37 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lchown 16 #define __NR_lgetxattr 173 #define __NR_link 9 diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list index 8e3cfa0..89c5895 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.12. -kernel 5.12 +# The list of system calls is current as of Linux 5.13. +kernel 5.13 FAST_atomic_update FAST_cmpxchg @@ -224,6 +224,9 @@ kexec_file_load kexec_load keyctl kill +landlock_add_rule +landlock_create_ruleset +landlock_restrict_self lchown lchown32 lgetxattr 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 5e8261c..8e028eb6 100644 --- a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h @@ -135,6 +135,9 @@ #define __NR_kexec_load 246 #define __NR_keyctl 250 #define __NR_kill 62 +#define __NR_landlock_add_rule 445 +#define __NR_landlock_create_ruleset 444 +#define __NR_landlock_restrict_self 446 #define __NR_lchown 94 #define __NR_lgetxattr 192 #define __NR_link 86 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 9d26d20..004feb5 100644 --- a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h @@ -129,6 +129,9 @@ #define __NR_kexec_load 1073742352 #define __NR_keyctl 1073742074 #define __NR_kill 1073741886 +#define __NR_landlock_add_rule 1073742269 +#define __NR_landlock_create_ruleset 1073742268 +#define __NR_landlock_restrict_self 1073742270 #define __NR_lchown 1073741918 #define __NR_lgetxattr 1073742016 #define __NR_link 1073741910