From patchwork Tue Oct 31 16:32:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 78834 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 CB14B38555A0 for ; Tue, 31 Oct 2023 16:33:24 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by sourceware.org (Postfix) with ESMTPS id 0A0023858C35 for ; Tue, 31 Oct 2023 16:32:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0A0023858C35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0A0023858C35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1129 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769969; cv=none; b=n/MtNtOooKPhJCIN+rx88kbVui8Djbh06wjELkz5TyobOqXSbKjHe3kjNRwYl3irmV83WzK5qpG6pIZ2VNToSblAPJ/JENNN9x0Ls/GVIf/urpWqBELa7DPpF//4nwHTknE1aosAwN8+i1RiHwkp846dlllQ3Vo8ttdRoWvmwr8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769969; c=relaxed/simple; bh=dHNF3dAndccH3pi39FjM9buRer2cuxCPEcDDBFeOjK0=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=tEZJW/eQc83VDIcoguw++tTm/AqDnj6qusO8dnoMBMY2DodyVrl6NE9DkfBjVz2wL92EkCBjVPjRV89ZvQpF4YfXEWexyln50dVfBtcg3hmu6zelcdryttzFPNKc9jegxzBWSOnNSN8bNExEGzfwL3FDXi83TPq2wHJQbAJpDio= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-5afbdbf3a19so45437197b3.2 for ; Tue, 31 Oct 2023 09:32:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698769965; x=1699374765; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=PZxKKVpIV/HppKmQ4lGUn/0Ods25CMe1npGBIGub9Ko=; b=leRSoK3WQxGbCQOXZNXPtjLAA+jlhc7+qV/IZUq20Y2RVses+5NRfoiDudhN+ctmnZ l0wydtonY5H/xb5lJk0alvGOUVGUgBxRpGjP3yhn6tw2iFyhgHA0bHH90Tqo8QwWucsu dLqTyu+IVEohuVO/eRlj3s4X6liStTrDa5hFO24wSG2KooU77eo9oeR3kH+GQahNRBOO 3/qX9y30bx0gD4hZqV9+BoYjDbNFBDB3jIUrQJk9/n05XiCTpNUSHA+L1t8LtockSG4F GKKff4ABEn4FGP6oFIvxuplg7okv33Nias2WRs6YyFLmDc0cYlsch3DET3Vib+KQKz5S ma0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698769965; x=1699374765; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PZxKKVpIV/HppKmQ4lGUn/0Ods25CMe1npGBIGub9Ko=; b=xFefk1Fb2k1uNqUmwVyHePEOn/mOid3kHiZYCTARlDNX4L+ECIIrnLwzDB7ttiNnrY UYRC4VPd68eEAGwMCtGwr+qyDeCq29WeIuP28S9sgPMt7ueWiSWcgP0zJotLMrHhVGZs SXpvwVnkmPKaODhN5U6+1D2kBgGaEOp8Sz/QYU8kJJEhKrMr/E6l7h0oRVIdQc8swqSE kNwOli1oSMiHto8ksm8/NQc2HFaLU0OvQ8JFxTIVbd3o6X6494rYeW55yQqwbWOjjo7x 2k3dO4oKMp5Vj2t+jYog9hiehAEAwl9gU1qfewd5NLxT3oE6xmDITwtlFexZqdOFsC1l njcQ== X-Gm-Message-State: AOJu0YxQKkx6kl/cq3Mw4VJU7+5yCsjv8BpCyt4C0aIp+3Uat1QrW8/M CQ7ygv/er9HpAbGx/4RYhjip9l3TRFwCbPuhPmt3DQ== X-Google-Smtp-Source: AGHT+IEMJKmokXVunlLE7N8s/zt7hOE146yPNSsKMRe0Z5OfvsemOri5dYjnpRNhTY7yFT1/eooKPw== X-Received: by 2002:a81:ac23:0:b0:5a7:dbd1:4889 with SMTP id k35-20020a81ac23000000b005a7dbd14889mr13677463ywh.2.1698769965452; Tue, 31 Oct 2023 09:32:45 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:3d3c:6c87:9be3:8cfc:976d]) by smtp.gmail.com with ESMTPSA id z76-20020a814c4f000000b0059f650f46b2sm1003638ywa.7.2023.10.31.09.32.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:32:44 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH v2 1/7] Update syscall lists for Linux 6.6 Date: Tue, 31 Oct 2023 13:32:33 -0300 Message-Id: <20231031163239.4020952-2-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231031163239.4020952-1-adhemerval.zanella@linaro.org> References: <20231031163239.4020952-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 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 Linux 6.6 has one new syscall for all architectures, fchmodat2, and the map_shadow_stack on x86_64. --- sysdeps/unix/sysv/linux/aarch64/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/alpha/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/arc/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/arm/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/csky/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/hppa/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/i386/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/ia64/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/loongarch/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/m68k/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/microblaze/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/nios2/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/or1k/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/sh/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/syscall-names.list | 6 ++++-- sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h | 1 + 28 files changed, 32 insertions(+), 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h index 8f21ee66a0..746991aa2f 100644 --- a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h @@ -44,6 +44,7 @@ #define __NR_fchdir 50 #define __NR_fchmod 52 #define __NR_fchmodat 53 +#define __NR_fchmodat2 452 #define __NR_fchown 55 #define __NR_fchownat 54 #define __NR_fcntl 25 diff --git a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h index c5802a5fec..32efe51267 100644 --- a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h @@ -56,6 +56,7 @@ #define __NR_fchdir 13 #define __NR_fchmod 124 #define __NR_fchmodat 461 +#define __NR_fchmodat2 562 #define __NR_fchown 123 #define __NR_fchownat 453 #define __NR_fcntl 92 diff --git a/sysdeps/unix/sysv/linux/arc/arch-syscall.h b/sysdeps/unix/sysv/linux/arc/arch-syscall.h index f23f9e1154..1d2879e877 100644 --- a/sysdeps/unix/sysv/linux/arc/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/arc/arch-syscall.h @@ -48,6 +48,7 @@ #define __NR_fchdir 50 #define __NR_fchmod 52 #define __NR_fchmodat 53 +#define __NR_fchmodat2 452 #define __NR_fchown 55 #define __NR_fchownat 54 #define __NR_fcntl64 25 diff --git a/sysdeps/unix/sysv/linux/arm/arch-syscall.h b/sysdeps/unix/sysv/linux/arm/arch-syscall.h index 7edf574899..6711981e78 100644 --- a/sysdeps/unix/sysv/linux/arm/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/arm/arch-syscall.h @@ -64,6 +64,7 @@ #define __NR_fchdir 133 #define __NR_fchmod 94 #define __NR_fchmodat 333 +#define __NR_fchmodat2 452 #define __NR_fchown 95 #define __NR_fchown32 207 #define __NR_fchownat 325 diff --git a/sysdeps/unix/sysv/linux/csky/arch-syscall.h b/sysdeps/unix/sysv/linux/csky/arch-syscall.h index d74a06e063..92d9a703ea 100644 --- a/sysdeps/unix/sysv/linux/csky/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/csky/arch-syscall.h @@ -50,6 +50,7 @@ #define __NR_fchdir 50 #define __NR_fchmod 52 #define __NR_fchmodat 53 +#define __NR_fchmodat2 452 #define __NR_fchown 55 #define __NR_fchownat 54 #define __NR_fcntl64 25 diff --git a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h index 5568b94cd3..fbac124b70 100644 --- a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h @@ -63,6 +63,7 @@ #define __NR_fchdir 133 #define __NR_fchmod 94 #define __NR_fchmodat 286 +#define __NR_fchmodat2 452 #define __NR_fchown 95 #define __NR_fchownat 278 #define __NR_fcntl 55 diff --git a/sysdeps/unix/sysv/linux/i386/arch-syscall.h b/sysdeps/unix/sysv/linux/i386/arch-syscall.h index 3af21a15cb..8961788a96 100644 --- a/sysdeps/unix/sysv/linux/i386/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/i386/arch-syscall.h @@ -67,6 +67,7 @@ #define __NR_fchdir 133 #define __NR_fchmod 94 #define __NR_fchmodat 306 +#define __NR_fchmodat2 452 #define __NR_fchown 95 #define __NR_fchown32 207 #define __NR_fchownat 298 diff --git a/sysdeps/unix/sysv/linux/ia64/arch-syscall.h b/sysdeps/unix/sysv/linux/ia64/arch-syscall.h index 39b270e642..1ef762d693 100644 --- a/sysdeps/unix/sysv/linux/ia64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/ia64/arch-syscall.h @@ -55,6 +55,7 @@ #define __NR_fchdir 1035 #define __NR_fchmod 1099 #define __NR_fchmodat 1292 +#define __NR_fchmodat2 1476 #define __NR_fchown 1100 #define __NR_fchownat 1284 #define __NR_fcntl 1066 diff --git a/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h b/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h index fdefe8bb6f..3664e6f7c8 100644 --- a/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h @@ -44,6 +44,7 @@ #define __NR_fchdir 50 #define __NR_fchmod 52 #define __NR_fchmodat 53 +#define __NR_fchmodat2 452 #define __NR_fchown 55 #define __NR_fchownat 54 #define __NR_fcntl 25 diff --git a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h index 315e49cd33..2053d5d392 100644 --- a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h @@ -67,6 +67,7 @@ #define __NR_fchdir 133 #define __NR_fchmod 94 #define __NR_fchmodat 299 +#define __NR_fchmodat2 452 #define __NR_fchown 95 #define __NR_fchown32 207 #define __NR_fchownat 291 diff --git a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h index 54af12780c..6865b1693c 100644 --- a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h @@ -67,6 +67,7 @@ #define __NR_fchdir 133 #define __NR_fchmod 94 #define __NR_fchmodat 306 +#define __NR_fchmodat2 452 #define __NR_fchown 95 #define __NR_fchown32 207 #define __NR_fchownat 298 diff --git a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h index a2aa1ffa1b..b13ace8e1c 100644 --- a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h @@ -67,6 +67,7 @@ #define __NR_fchdir 4133 #define __NR_fchmod 4094 #define __NR_fchmodat 4299 +#define __NR_fchmodat2 4452 #define __NR_fchown 4095 #define __NR_fchownat 4291 #define __NR_fcntl 4055 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 5bec858040..b7a7c0dfa7 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h @@ -64,6 +64,7 @@ #define __NR_fchdir 6079 #define __NR_fchmod 6089 #define __NR_fchmodat 6262 +#define __NR_fchmodat2 6452 #define __NR_fchown 6091 #define __NR_fchownat 6254 #define __NR_fcntl 6070 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 0166371ee2..e5d7f91f48 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h @@ -59,6 +59,7 @@ #define __NR_fchdir 5079 #define __NR_fchmod 5089 #define __NR_fchmodat 5258 +#define __NR_fchmodat2 5452 #define __NR_fchown 5091 #define __NR_fchownat 5250 #define __NR_fcntl 5070 diff --git a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h index 29a4cfa988..89950cc33a 100644 --- a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h @@ -49,6 +49,7 @@ #define __NR_fchdir 50 #define __NR_fchmod 52 #define __NR_fchmodat 53 +#define __NR_fchmodat2 452 #define __NR_fchown 55 #define __NR_fchownat 54 #define __NR_fcntl64 25 diff --git a/sysdeps/unix/sysv/linux/or1k/arch-syscall.h b/sysdeps/unix/sysv/linux/or1k/arch-syscall.h index f5a3729663..4c07d9c204 100644 --- a/sysdeps/unix/sysv/linux/or1k/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/or1k/arch-syscall.h @@ -49,6 +49,7 @@ #define __NR_fchdir 50 #define __NR_fchmod 52 #define __NR_fchmodat 53 +#define __NR_fchmodat2 452 #define __NR_fchown 55 #define __NR_fchownat 54 #define __NR_fcntl64 25 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h index 3a212a0269..64683bcb76 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h @@ -66,6 +66,7 @@ #define __NR_fchdir 133 #define __NR_fchmod 94 #define __NR_fchmodat 297 +#define __NR_fchmodat2 452 #define __NR_fchown 95 #define __NR_fchownat 289 #define __NR_fcntl 55 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h index 1038ead227..af1bbf32e8 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h @@ -60,6 +60,7 @@ #define __NR_fchdir 133 #define __NR_fchmod 94 #define __NR_fchmodat 297 +#define __NR_fchmodat2 452 #define __NR_fchown 95 #define __NR_fchownat 289 #define __NR_fcntl 55 diff --git a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h index 57b043ffb5..56e3088cbf 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h @@ -43,6 +43,7 @@ #define __NR_fchdir 50 #define __NR_fchmod 52 #define __NR_fchmodat 53 +#define __NR_fchmodat2 452 #define __NR_fchown 55 #define __NR_fchownat 54 #define __NR_fcntl64 25 diff --git a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h index 1041a0f8c9..508161b47a 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h @@ -44,6 +44,7 @@ #define __NR_fchdir 50 #define __NR_fchmod 52 #define __NR_fchmodat 53 +#define __NR_fchmodat2 452 #define __NR_fchown 55 #define __NR_fchownat 54 #define __NR_fcntl 25 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 70d4c6782e..1498ebf42e 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h @@ -65,6 +65,7 @@ #define __NR_fchdir 133 #define __NR_fchmod 94 #define __NR_fchmodat 299 +#define __NR_fchmodat2 452 #define __NR_fchown 95 #define __NR_fchown32 207 #define __NR_fchownat 291 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 65a8a9e316..624d71b56d 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h @@ -56,6 +56,7 @@ #define __NR_fchdir 133 #define __NR_fchmod 94 #define __NR_fchmodat 299 +#define __NR_fchmodat2 452 #define __NR_fchown 207 #define __NR_fchownat 291 #define __NR_fcntl 55 diff --git a/sysdeps/unix/sysv/linux/sh/arch-syscall.h b/sysdeps/unix/sysv/linux/sh/arch-syscall.h index 94aad0f119..37211f5f8c 100644 --- a/sysdeps/unix/sysv/linux/sh/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/sh/arch-syscall.h @@ -64,6 +64,7 @@ #define __NR_fchdir 133 #define __NR_fchmod 94 #define __NR_fchmodat 306 +#define __NR_fchmodat2 452 #define __NR_fchown 95 #define __NR_fchown32 207 #define __NR_fchownat 298 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h index d630306c75..8093abcc9c 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h @@ -66,6 +66,7 @@ #define __NR_fchdir 176 #define __NR_fchmod 124 #define __NR_fchmodat 295 +#define __NR_fchmodat2 452 #define __NR_fchown 123 #define __NR_fchown32 32 #define __NR_fchownat 287 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h index 930f29b4d2..d25ccfb571 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h @@ -60,6 +60,7 @@ #define __NR_fchdir 176 #define __NR_fchmod 124 #define __NR_fchmodat 295 +#define __NR_fchmodat2 452 #define __NR_fchown 123 #define __NR_fchownat 287 #define __NR_fcntl 92 diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list index cf6f70ecd9..c3627fcd7f 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.5. -kernel 6.5 +# The list of system calls is current as of Linux 6.6. +kernel 6.6 FAST_atomic_update FAST_cmpxchg @@ -117,6 +117,7 @@ fanotify_mark fchdir fchmod fchmodat +fchmodat2 fchown fchown32 fchownat @@ -246,6 +247,7 @@ lsetxattr lstat lstat64 madvise +map_shadow_stack mbind membarrier memfd_create 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 58646cf0bd..5e4c9e901c 100644 --- a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h @@ -59,6 +59,7 @@ #define __NR_fchdir 81 #define __NR_fchmod 91 #define __NR_fchmodat 268 +#define __NR_fchmodat2 452 #define __NR_fchown 93 #define __NR_fchownat 260 #define __NR_fcntl 72 @@ -153,6 +154,7 @@ #define __NR_lsetxattr 189 #define __NR_lstat 6 #define __NR_madvise 28 +#define __NR_map_shadow_stack 453 #define __NR_mbind 237 #define __NR_membarrier 324 #define __NR_memfd_create 319 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 604bcdfa5b..dd5e196272 100644 --- a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h @@ -55,6 +55,7 @@ #define __NR_fchdir 1073741905 #define __NR_fchmod 1073741915 #define __NR_fchmodat 1073742092 +#define __NR_fchmodat2 1073742276 #define __NR_fchown 1073741917 #define __NR_fchownat 1073742084 #define __NR_fcntl 1073741896 From patchwork Tue Oct 31 16:32:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 78832 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 8D3E13857354 for ; Tue, 31 Oct 2023 16:33:03 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) by sourceware.org (Postfix) with ESMTPS id 9E70A38582BC for ; Tue, 31 Oct 2023 16:32:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9E70A38582BC Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9E70A38582BC Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::112d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769970; cv=none; b=PSjyZEFUxkcD4zWh08eEp+bFCHzm4AuP5vDEDZoWDwiclAOiIy4opNxe0aFp+W+rfRGs80JVDLWqpjUYMIP1soAbc80tGvM2EaQh00tA6LqfhHDwOXmORKUXoL6rFFHdpQtVHhmZao7xQEy4hilaSfSlEYH+QEBKoCFqHtqPnRE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769970; c=relaxed/simple; bh=tUPEEWBSgLWz2/rnwwkDnfCUlL5vsuJxk+u2928ZOG0=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=q75DWX6ZBPawyQW5aoXcE6itXobCrCmT3L9syQFTgmfs4T7MhbWoe/HsDlugxmA0i5eCD8JlUS4FxAG6Lk6f9c5iT3Rjp4hwpddxEWgbReRBT5RLkH+9lEVTsGPNdv8eZoAtFJConhwCTjOLtNDNX2+aQS97Jm9giePR1qEk2lQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-5af6c445e9eso50857257b3.0 for ; Tue, 31 Oct 2023 09:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698769967; x=1699374767; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=siZLaPZewgiKDUVQnqh4g+5qaYJrP3jM+oGuaNFShkg=; b=mWr+dU+HBSZ7q5kiBxSFwwF4GvEWZ4BnZQx9yHvuf3Mqjmb0UkuKy8yj719X6b3Kw7 WrM00BAn5SuM4tDvQdHllWQb/BA4rqIEyqJxyzbTWrZFQIdy3ijIcgK/LIOabZYOxE7u lqRrJvRBVV0xCffcq4QHhKRyVqN9Z1H4RX5RfrlVBtX6s2NVQdCOlnOZDjyhUdUce+I8 EOBNxwmFZA8i7qM2maPAekKusS1eASTgnFSaKnPA8t2Rf4TTnFzml6RKjd7PAhp5ATEz 4KQUmPNpCABgioRjvej+48kqxzdrOlcxbReXFvmrKntUs/LiAqK9FqsRnHrFkycXBi/R ak1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698769967; x=1699374767; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=siZLaPZewgiKDUVQnqh4g+5qaYJrP3jM+oGuaNFShkg=; b=nfYDiiQf6imFOMDH0Yq1O4XvndSVq1qkL+xGHM9rJLC73fri0b1BIS6n1yXDp7ZvuA wuDa1MfoxBSaD84/VsxkziGKZGFSmz3vQwKVFWHhzHyafGsYKq/wcKlRpgF7lTM4CM37 eS05Tc7UPhcoZ8dz81d1O8Ng4J2YHfUEmwcQEq679J7u/djHIIC+f9aE0+HKEIFOZUla 7IJ1XPOwOfgXXNmBWZjZtv8+3dDhVt/ExvaT3TBPFO6uiffgaa7ZMUNZ4QjI+gpA9Qzk TzMnfxRXb6inE99vSQgi73Amu9PlXrHiihtUoij99RuXGMFnF8WDv8wa0Q/GF5ERxt5x zhWQ== X-Gm-Message-State: AOJu0YytGMLRyiN1V4gk8IuP5MZNAUmtbpA8nC2nyb7XRAuiF9J3TYDa 3LSjFNqDSJerwkQMsLhfbsotwOXSlQdxZheqZlZEzg== X-Google-Smtp-Source: AGHT+IGvKdJEjKezzHGgoxS87LOEL1D9p2ijFD1b0fswKsEICMiT/Q/1LBrN5ocMEu35QIw7t6DMOw== X-Received: by 2002:a81:e547:0:b0:5a8:207b:48d with SMTP id c7-20020a81e547000000b005a8207b048dmr11852017ywm.11.1698769967416; Tue, 31 Oct 2023 09:32:47 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:3d3c:6c87:9be3:8cfc:976d]) by smtp.gmail.com with ESMTPSA id z76-20020a814c4f000000b0059f650f46b2sm1003638ywa.7.2023.10.31.09.32.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:32:46 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH v2 2/7] Update kernel version to 6.6 in header constant tests Date: Tue, 31 Oct 2023 13:32:34 -0300 Message-Id: <20231031163239.4020952-3-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231031163239.4020952-1-adhemerval.zanella@linaro.org> References: <20231031163239.4020952-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 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 There are no new constants covered, the tst-mman-consts.py is updated separately along with a header constant addition. --- sysdeps/unix/sysv/linux/tst-mount-consts.py | 4 ++-- sysdeps/unix/sysv/linux/tst-pidfd-consts.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdeps/unix/sysv/linux/tst-mount-consts.py b/sysdeps/unix/sysv/linux/tst-mount-consts.py index b5c52a4bb2..ba1c373fc4 100755 --- a/sysdeps/unix/sysv/linux/tst-mount-consts.py +++ b/sysdeps/unix/sysv/linux/tst-mount-consts.py @@ -39,10 +39,10 @@ def main(): sys.exit (77) linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc) - # Constants in glibc were updated to match Linux v6.5. When glibc + # Constants in glibc were updated to match Linux v6.6. When glibc # constants are updated this value should be updated to match the # released kernel version from which the constants were taken. - linux_version_glibc = (6, 5) + linux_version_glibc = (6, 6) def check(cte, exclude=None): return glibcextract.compare_macro_consts( '#include \n', diff --git a/sysdeps/unix/sysv/linux/tst-pidfd-consts.py b/sysdeps/unix/sysv/linux/tst-pidfd-consts.py index 1ef14889a8..4a0f757a21 100644 --- a/sysdeps/unix/sysv/linux/tst-pidfd-consts.py +++ b/sysdeps/unix/sysv/linux/tst-pidfd-consts.py @@ -39,7 +39,7 @@ def main(): sys.exit (77) linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc) - linux_version_glibc = (6, 5) + linux_version_glibc = (6, 6) sys.exit(glibcextract.compare_macro_consts( '#include \n', '#include \n' From patchwork Tue Oct 31 16:32:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 78833 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 56307385771C for ; Tue, 31 Oct 2023 16:33:11 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by sourceware.org (Postfix) with ESMTPS id 55E07385770B for ; Tue, 31 Oct 2023 16:32:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 55E07385770B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 55E07385770B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1134 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769971; cv=none; b=gbl7XXI0yTcYdXt0IMnQJul4xX+g2csHjQxVIYs679njdYzcRC2hfp2ZwktslbQRSjzkZbG+CzvL5NjJ17KCeG/87Yl5ZrljvzZZW7t3NQtRaRh4lbXpbWZ5wwTpx4Tb32woo/gBMw7o5QaRBEUmlkan3AO1d1RFg0RuGnC4K5U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769971; c=relaxed/simple; bh=djASid44KlMAhF9A3RfgywpJnw+iDgMN8hZafjjuiBk=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=GWjkfNiTnihxhpOiaiT36xQjgM1QWHgf/LnTpdThol46s+PcSTkypaIlqrJVNevZR5W/6TBBpYSP+8smhNcwm6PvgMBoEPlpWpYjsL3VDmAD11oHfkhGAgiWJHQJN/XBoOXcrnvylvMS1NsFAJFbA6vb3g5v1RAxX/hrUXm38GU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-5b31c5143a0so11799227b3.3 for ; Tue, 31 Oct 2023 09:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698769969; x=1699374769; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ftaBgK/wmDDfARZNpeo+ZL9B0c9+yoaQG3X0kTKooAs=; b=zivmEABP1xD+I0TuhJpGTYwzc5VpBFaBIIdEX9EEx+9zJogC1KCjfzoPMQqZr1Z1Se 0I2wcAQ9XNDTJcnDW9qNV3qkULsbQqz6eAmynKxtsDv0nJyVPwTk3KezlG9Ad5Mn5PTh ptNSiCEi8JwZpSoE4qtM3gAjYFI8VtEh/xZ+3VOzE0x5P3CU0u5Vu0sSkjqRDneqjwCf /G0lXGEj0nAiMQZcInleD0BTxuPnit/skCXAxHtz/oKHSCQgDabPCpZ6ZKhHM6kFBNz8 gusA8N0rBGiZ9pb1nqaoBtvqX3goNbjmTh+/Kkv0EbAaqSvGg8nsoyWUwEECGtU6xM6a 2jMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698769969; x=1699374769; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ftaBgK/wmDDfARZNpeo+ZL9B0c9+yoaQG3X0kTKooAs=; b=bcPuA4j9QZnDo96T+UUIUChN8sLdtRNvpZXmE0y4OxtJ9rEfGzRXapu/XrHQ96hX0e le3BrbbbsbJHXHLyB+R5CFTSXBoBQDN5cMPUYqoEFspuQdpT1yRDUrRNY4WrNiFikJ94 YxToUd9Dsbhd/LLI11qQ1l5b3ZXo67QTjwpgVFcSwvk6V5WXLh0KhV8FJoTb4296KI9j YGCUilcThiWZA9yqV/Lbr7Sp7u2ScIOOrDk+wieH1KiLWL2DlhcOK+fkfdSS6MccGzlw Zs8nMbMiBWCjOOEtPSr8OHl93/nCXLoIht41c6MKP73n1YYS74nMURe4tfqCejHqu4Lj MyMQ== X-Gm-Message-State: AOJu0YwyQ/kdAl3Nw/hiwAVd8Lh+EYbaMbXuyUkHOnc/7EBNgqEAXC12 6oANcwF4FQ464mwhfjcsl+CtaDlGFRM+efDzE58TLA== X-Google-Smtp-Source: AGHT+IFidzVgCtvdkuntQAUDKDm0NnTCcZQEQYE6IZzl6HON1t+ITcojSeXzHGEnrGggrz/TG8Yjtg== X-Received: by 2002:a81:4895:0:b0:589:fad6:c17c with SMTP id v143-20020a814895000000b00589fad6c17cmr13310492ywa.45.1698769968992; Tue, 31 Oct 2023 09:32:48 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:3d3c:6c87:9be3:8cfc:976d]) by smtp.gmail.com with ESMTPSA id z76-20020a814c4f000000b0059f650f46b2sm1003638ywa.7.2023.10.31.09.32.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:32:48 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH v2 3/7] linux: Add MMAP_ABOVE4G from Linux 6.6 to sys/mman.h Date: Tue, 31 Oct 2023 13:32:35 -0300 Message-Id: <20231031163239.4020952-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231031163239.4020952-1-adhemerval.zanella@linaro.org> References: <20231031163239.4020952-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 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 x86 added the flag (29f890d1050fc099f) for CET enabled. Also update tst-mman-consts.py test. --- sysdeps/unix/sysv/linux/tst-mman-consts.py | 2 +- sysdeps/unix/sysv/linux/x86/bits/mman.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/tst-mman-consts.py b/sysdeps/unix/sysv/linux/tst-mman-consts.py index e85ea41ee4..8186d7e178 100644 --- a/sysdeps/unix/sysv/linux/tst-mman-consts.py +++ b/sysdeps/unix/sysv/linux/tst-mman-consts.py @@ -33,7 +33,7 @@ def main(): help='C compiler (including options) to use') args = parser.parse_args() linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc) - linux_version_glibc = (6, 5) + linux_version_glibc = (6, 6) sys.exit(glibcextract.compare_macro_consts( '#define _GNU_SOURCE 1\n' '#include \n', diff --git a/sysdeps/unix/sysv/linux/x86/bits/mman.h b/sysdeps/unix/sysv/linux/x86/bits/mman.h index b335ceff43..3d356e86a0 100644 --- a/sysdeps/unix/sysv/linux/x86/bits/mman.h +++ b/sysdeps/unix/sysv/linux/x86/bits/mman.h @@ -25,6 +25,7 @@ /* Other flags. */ #define MAP_32BIT 0x40 /* Only give out 32-bit addresses. */ +#define MAP_ABOVE4G 0x80 /* Only map above 4GB. */ #include From patchwork Tue Oct 31 16:32:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 78836 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 067563853D02 for ; Tue, 31 Oct 2023 16:33:28 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by sourceware.org (Postfix) with ESMTPS id 025F3385842E for ; Tue, 31 Oct 2023 16:32:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 025F3385842E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 025F3385842E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::112c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769973; cv=none; b=XJjxypbT4IYaHGnaWMtFXJfSbeh1EjorlCKhj17+MO+Zn0ed/8/w0gVlmHKqCrkismTKxRJdWY01pyeyhnHxkbjznf3aYbV+9YZzqlS0kC0orV0vDzdEts7vOt4cFv8Pe1D6R9qOge7n8ZKbBWPZZTB8yvFmNXQAMxQy8LwQ4Us= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769973; c=relaxed/simple; bh=W2JeisRiDunqTh6UGWwDNcmqiHXNFDUbR5o8JSelvi0=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=ScwO5ZI8Vx+FBbQ64mgWnqcVvAdz3Fe4tvtX6BICvwpRlsMvIEeItxHLLgalrhP9kmZCG5DhLnNC2igdfE5SGILwvCGuOPn/etW/Y9mg2vNe4yE+Jm0v6F4M5cNVyNx0bm5WYe87V618shpr7AaxfCN9PkatLcohqVC0Wi5DEyw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-5a8ada42c2aso58165017b3.3 for ; Tue, 31 Oct 2023 09:32:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698769971; x=1699374771; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=8uTrA61A+usaiYz+Y9VvvbYq1hEP5GMnt1gHxoYDtJI=; b=BAohqTc3d4ujU/C8g4V6b3TvKtaXJAnxD3MqbJY1jZhpqXnMg9RRoO0cWC2IHNktNn Y5fJfxeuI+o2dS4HUzDa6vyMLDoNQgwbjrN+iKYwCZMTNR+2CmePZfLEVxYqji0rMFxm 6XXJEhkEBteLzsle9j0hGLAPapqSGdoEMDXKfHxRji5B/d8vQ4EBPNDAMEaYqaqpFs59 qD2NniBS6QvSNKruhvy8CLv2DPRipKgkKQ+aGt2opXaodMv6Ibj93MT0KASMSyP1X4/W nq+WP4soBDqimZynu5md2zJpIRiF5X1X5gGDyshIdj9CU0lsrpulVyVJrERyIES7+Y+q Nyvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698769971; x=1699374771; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8uTrA61A+usaiYz+Y9VvvbYq1hEP5GMnt1gHxoYDtJI=; b=C6AiSeFOykHOmdwYwwOyI11dNuxu2liRwKX5AsLE2ButXzXwCOTAGhGGW99enpgE+X lVSq/6qPH35n8toT4QHRrnSpLQTtopuib8hf5BVhZGtIUty2o32zGRSOmnSFLd3PTh6P +jtUVemvkalCUMXwcPPVhPRl+VEx7WMv/ry1HAtZ4Wt0lyuSiz7NXdc78+D5QnM5jqbq XIg+HEf9uxUDYa/trpSy4cC5lKWizryXsqLBY4HYx6B9o6S4l4L6IBSbgfkapi4CRsMQ rKrOshg/HXpr8GxKa0tY54ABgn2ewf4s/XzNXOkIDfx2HdiIPDlvR36cdYWejs/fsX81 a0hw== X-Gm-Message-State: AOJu0YwimwONTvDdnYqq0vg6VwNjQcUoOEPygdmmyPVpboF2yNHW5q/D C7kRx52Z4vm263msLiPHutPgN1pNVau+BaIsuFGQHw== X-Google-Smtp-Source: AGHT+IEttc5vZ0VW7EyxI7lBQ98T5jqfI5LrzIxK7E0+Fphi6Z/Upa1DuFir81ZvpZcYXh8lMF+qUw== X-Received: by 2002:a81:a749:0:b0:595:be7:a38 with SMTP id e70-20020a81a749000000b005950be70a38mr12694768ywh.49.1698769970681; Tue, 31 Oct 2023 09:32:50 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:3d3c:6c87:9be3:8cfc:976d]) by smtp.gmail.com with ESMTPSA id z76-20020a814c4f000000b0059f650f46b2sm1003638ywa.7.2023.10.31.09.32.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:32:49 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH v2 4/7] linux: Add FSCONFIG_CMD_CREATE_EXCL from Linux 6.6 to sys/mount.h Date: Tue, 31 Oct 2023 13:32:36 -0300 Message-Id: <20231031163239.4020952-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231031163239.4020952-1-adhemerval.zanella@linaro.org> References: <20231031163239.4020952-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 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 The tst-mount-consts.py does not need to be updated because kernel exports it as an enum (compare_macro_consts can not parse it). --- sysdeps/unix/sysv/linux/sys/mount.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/unix/sysv/linux/sys/mount.h b/sysdeps/unix/sysv/linux/sys/mount.h index a692c0e092..db0ac7a8a4 100644 --- a/sysdeps/unix/sysv/linux/sys/mount.h +++ b/sysdeps/unix/sysv/linux/sys/mount.h @@ -256,6 +256,8 @@ enum fsconfig_command # define FSCONFIG_CMD_CREATE FSCONFIG_CMD_CREATE FSCONFIG_CMD_RECONFIGURE = 7, /* Invoke superblock reconfiguration */ # define FSCONFIG_CMD_RECONFIGURE FSCONFIG_CMD_RECONFIGURE + FSCONFIG_CMD_CREATE_EXCL = 8, /* Create new superblock, fail if reusing existing superblock */ +# define FSCONFIG_CMD_CREATE_EXCL FSCONFIG_CMD_CREATE_EXCL }; #endif From patchwork Tue Oct 31 16:32:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 78837 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 F36463857714 for ; Tue, 31 Oct 2023 16:33:47 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by sourceware.org (Postfix) with ESMTPS id 02B743857721 for ; Tue, 31 Oct 2023 16:32:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 02B743857721 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 02B743857721 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1129 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769975; cv=none; b=qX83EL+SGufBhE5fCf50AyiTMdVfidWveRGtc1RdG0b/gQcNd6yLw4HqvlduXhB392abrYnQPVbOXp8APrhxpuyF34cpiW5eRL0YKtI1WUi2rsSZRfgia73j8Hbv5DbgXeZku3fbEIcfzyK0Nny15eeLMfixYQDZ5cbOg+1qaJU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769975; c=relaxed/simple; bh=wcz3fCz8vQd93f60xCy8Pa8YSIjA69DS8iz4kmncER8=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=YYfqTKrYd710cKD2geQPZ2K96ckd3rSUs0yB9KQT/rHm8cKxQArjkTllOwSIkDA2cmaDL5TWi19EkZEba6EMRqaw4dblMFrDMXerYZ2AkgB6Ti7Z1TTmy9rcSNvdhLATay3Ouumwvr3Y7vE7G5In4HaPvp3TTes+wWJRjJCpa4Y= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-5a7b3d33663so60653307b3.3 for ; Tue, 31 Oct 2023 09:32:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698769972; x=1699374772; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=UwW6nD3wLYyXnIQsffBZPiXlHxa+n09Pt9AmaeKFiqg=; b=gKvJ11JUPe5TSUe3wrFfApR+uU+opKejBNhtu4pJufNfBzFVsfSQLClhNkbGu2orQv /5s5ngX3xuN7ojLCBcror2wPZzDkSXYEamHM3Fp810ZgPjftnlkUty06JNNKHuRFwomJ wi9LUvi+Zcvh6+CKw2eXsJch0YoBs2hWwwc7OI1qR+lw+74pdqdydz1/xZl0h6+9VFmD HQjZ4glQ+7kqQ57DDy/HCrX2XgWL8IGI83vQyJ2ptdhGDCfZbTa84iQwlz/Z8keDdXNn 70KzoWmAILX+HeNZ0ewpAnHNem65RECVkY74M/UhSMqFZ7xdT92olkeHc/uQeM4TEYux zpCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698769972; x=1699374772; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UwW6nD3wLYyXnIQsffBZPiXlHxa+n09Pt9AmaeKFiqg=; b=l+p9ecfqi5UKydzKzUhkbCJoWTuDcJII+EDA2VKJLwh10Lv4xXBE5yyB9l12wjgTww ETYRLZrOtEr/CeIMkeaRenpJxDWMNK0YkfMtMXyMISfzj4skWUA9UNjSQa4n+cSWJ6lz CuY7VvPnGja22A8MI/6mFVCADeaGBK79kBL5Daf15nG4882eQ1J2ScUDoAaG/idsk2Fq COllDoQNbVcqBxSmbEDksAWg6HNwfGd12zEIWHzzc/AjTBAfjI6VS8TNXhswTY0OEYQb 0cqNXaO2nOGuOUcLLNuXmuucPLIuly2kYEXZqoYgrE3Nxez8iibJabN3FwTX3ScgCP/u jFgg== X-Gm-Message-State: AOJu0Yzdso2pMzMhpuESnYfMT5zatU/IzEE4ydcHRkiMaYAfoFyONdeF VtDFLuAFmKqVXLOurxftV+US5NaFOKDoAYId7SrCKA== X-Google-Smtp-Source: AGHT+IFWBsHLpVOmG4Wrmm3eLamFIlsDM7FizdKOkqHNtWOaZuUJj8+znKKLj5DCxtz4snx0lHxbXQ== X-Received: by 2002:a05:690c:ec9:b0:5ae:a8ac:ed6a with SMTP id cs9-20020a05690c0ec900b005aea8aced6amr16959635ywb.2.1698769972362; Tue, 31 Oct 2023 09:32:52 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:3d3c:6c87:9be3:8cfc:976d]) by smtp.gmail.com with ESMTPSA id z76-20020a814c4f000000b0059f650f46b2sm1003638ywa.7.2023.10.31.09.32.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:32:51 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH v2 5/7] linux: Add HWCAP2_HBC from Linux 6.6 to AArch64 bits/hwcap.h Date: Tue, 31 Oct 2023 13:32:37 -0300 Message-Id: <20231031163239.4020952-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231031163239.4020952-1-adhemerval.zanella@linaro.org> References: <20231031163239.4020952-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 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 --- sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h index b251c2d417..8cfac79749 100644 --- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h +++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h @@ -99,3 +99,4 @@ #define HWCAP2_SME_B16B16 (1UL << 41) #define HWCAP2_SME_F16F16 (1UL << 42) #define HWCAP2_MOPS (1UL << 43) +#define HWCAP2_HBC (1UL << 44) From patchwork Tue Oct 31 16:32:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 78838 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 A4F123858291 for ; Tue, 31 Oct 2023 16:34:09 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by sourceware.org (Postfix) with ESMTPS id C4DAD385772D for ; Tue, 31 Oct 2023 16:32:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C4DAD385772D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C4DAD385772D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::333 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769977; cv=none; b=pAx2tmDp6SKYexJps5375tbsDYDXULn10QAA2XCZcO4GIYsTonO++8SzhCjAg/uW9VymAm/4NEI9fGqYORQfFswmG/q3YKZnpk3KXEFZT/URV1NnreUlybliQVdpx3X/HDyrCpyzJdH8zgS/g2v98s3q1z4FINvpfUPJGBfIZH0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769977; c=relaxed/simple; bh=YPfKarYTaHa5VRxAK1c5LQoAOn0ijCcB3dobSKW/NRc=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=PtTAkycFMAlPF/Bx4L8DsoGo+z0aUP4iUM/vT7M1DUM3AGCFE+Cu5509GGfGCX96FOVzORjEhvkqKvSKVzzcQIB5Iie5NUjx72MM/UdVKl31iyG64a4EQbhd0T8J0jMjpZGEWr6MXgZVW4SZwzovDTy2AWA00KWZSkvbwbNakIo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ot1-x333.google.com with SMTP id 46e09a7af769-6d2fedd836fso1248113a34.1 for ; Tue, 31 Oct 2023 09:32:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698769974; x=1699374774; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=KLScK4i9AeptKNlgIPYmJAH8KOhNq1n1jugepCUjAsk=; b=WAWRoSOFdRSVMNA+GJ+MIwKZz/TCzbHMm1zlFsbYeIMdh/qJ3Zxb89fSDPRWqs8Tiu ktam4/yC14Q0bRF8gbAnhyemlLeDb+qWrM68Ukqgvy2rnUyc7xMXsi5NyE7sqw0O2O8P S0KP/Y9gYWaCfE10WmGGOS68FM4E1R7l/WXOLE6KzIdLaJh0CuNPPol9QrrHAo87P9Gw LeoTe4jbAOR+l59dQKiWPUjghJv7ndF7XxdzFDp353paYNgo2En4scWj97cpydXRj66I VfZ99/77XNLpeB+JHem3pL3ng9VI62dsVk/ptR4/LYzLvlK2xeBb3OyxPp0lKuwah2IB O7dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698769974; x=1699374774; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KLScK4i9AeptKNlgIPYmJAH8KOhNq1n1jugepCUjAsk=; b=VNXuGzlfSWmk6oSU9tB+DW+OrYCfkNkAiDS1G2CCGWiy4YzJ2Qfd+pTBkNUybvjnR4 me9usKSEVB5WqaQ6oufqafy0YSDnNypU39TTN7PKre9nFviTbqOSzWppDtHeoK8brv+G OeUA3n8iwBYuExurvdVojLQgK4DnfxW8YZ8XwDS1365jN05g6WwZhn75gu6xXs27f/DI YO7fsDFnW23jdY9hQfZtLD72Y6k7JZw4S+4atDYm++hlLWvNezzCXzbLqk2TGjDw03b7 bt0TIPnvNsgFmK2opNrOVH3Hs9N39nVA58zphnKplq/JZdCdPt47PgLDWjoqjiDg/Y+n wgpA== X-Gm-Message-State: AOJu0Yy62hXuQ1m+wL1UF4oeaOwMF4+KwzVKYKSPk19MwXDs5i/wgZQg Hkj+YSLpDCpgY8cowgIqg2VbcIul2Zlt/dfdjJtH2A== X-Google-Smtp-Source: AGHT+IFFvF2Xd81tLCpUqSoXqTYPP7Zlcw7O0Mn62RF/lVIXKWT77/HqLvWhKYd1z4ftaE6dnykGYQ== X-Received: by 2002:a05:6871:8f83:b0:1ef:bebf:80e6 with SMTP id aa3-20020a0568718f8300b001efbebf80e6mr7706664oac.34.1698769974454; Tue, 31 Oct 2023 09:32:54 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:3d3c:6c87:9be3:8cfc:976d]) by smtp.gmail.com with ESMTPSA id z76-20020a814c4f000000b0059f650f46b2sm1003638ywa.7.2023.10.31.09.32.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:32:53 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH v2 6/7] linux: Sync Linux 6.6 elf.h Date: Tue, 31 Oct 2023 13:32:38 -0300 Message-Id: <20231031163239.4020952-7-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231031163239.4020952-1-adhemerval.zanella@linaro.org> References: <20231031163239.4020952-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 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 It adds NT_X86_SHST (2fab02b25ae7cf5), NT_RISCV_CSR/NT_RISCV_VECTOR (9300f00439743c4), and NT_LOONGARCH_HW_BREAK/NT_LOONGARCH_HW_WATCH (1a69f7a161a78ae). --- elf/elf.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/elf/elf.h b/elf/elf.h index 73a64baa79..daac2f79f4 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -796,6 +796,7 @@ typedef struct #define NT_386_TLS 0x200 /* i386 TLS slots (struct user_desc) */ #define NT_386_IOPERM 0x201 /* x86 io permission bitmap (1=deny) */ #define NT_X86_XSTATE 0x202 /* x86 extended state using xsave */ +#define NT_X86_SHST 0x204 /* x86 SHSTK state */ #define NT_S390_HIGH_GPRS 0x300 /* s390 upper register halves */ #define NT_S390_TIMER 0x301 /* s390 timer register */ #define NT_S390_TODCMP 0x302 /* s390 TOD clock comparator register */ @@ -834,6 +835,8 @@ typedef struct #define NT_MIPS_DSP 0x800 /* MIPS DSP ASE registers. */ #define NT_MIPS_FP_MODE 0x801 /* MIPS floating-point mode. */ #define NT_MIPS_MSA 0x802 /* MIPS SIMD registers. */ +#define NT_RISCV_CSR 0x900 /* RISC-V Control and Status Registers */ +#define NT_RISCV_VECTOR 0x901 /* RISC-V vector registers */ #define NT_LOONGARCH_CPUCFG 0xa00 /* LoongArch CPU config registers. */ #define NT_LOONGARCH_CSR 0xa01 /* LoongArch control and status registers. */ @@ -843,6 +846,8 @@ typedef struct SIMD Extension registers. */ #define NT_LOONGARCH_LBT 0xa04 /* LoongArch Loongson Binary Translation registers. */ +#define NT_LOONGARCH_HW_BREAK 0xa05 /* LoongArch hardware breakpoint registers */ +#define NT_LOONGARCH_HW_WATCH 0xa06 /* LoongArch hardware watchpoint registers */ /* Legal values for the note segment descriptor types for object files. */ From patchwork Tue Oct 31 16:32:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 78835 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 05E5E3856DDF for ; Tue, 31 Oct 2023 16:33:26 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by sourceware.org (Postfix) with ESMTPS id 6B1813857731 for ; Tue, 31 Oct 2023 16:32:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6B1813857731 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6B1813857731 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1133 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769979; cv=none; b=yF45Rm0CCu/VHv4sZjvO6PtGr+rSsswIPfkF26D7levymrAp6wNLp+Dy6/yr8Qlo7x5hX2uyYOOv8yTJKQpn6FY9yifILy9yb8dq+DoPjPvQ5g9oU8C3w2r4EkhdFJ/Vz+K9tJQFIme5WEU2UBqva6slIVn1ye1hP3kXH0fluzQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769979; c=relaxed/simple; bh=uTUUjt8dMQvY5p2oLM84YddUcUsc8oPh+mDe0s03l9w=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=QxmeBby7YBkRC34Ao8WTPdJYZDPwQrnU9REVwF2dOrQbFFWXo9KCN+FOlP1pEz6T2r+P1X3vyz9MGKr8nY+pXgzQzkSNh3ZDOwnJpIphvPLfxBfKnUTafyETXeI2KQIEIoPDp2I6V6RPPZrYIsjgsm82tbOqtx8mQ+INa+LC2Xg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-5afbdbf3a19so45438467b3.2 for ; Tue, 31 Oct 2023 09:32:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698769976; x=1699374776; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=l4KwHDLJ+TqgHxRwSnz+ubCiUC36qba9OJRc7mzQE0s=; b=abqTJkwGr7ixo3s5ylCWa5URQ/YIz4Ak2gh573w6Pn+Tw1ZJM/4DV9MIZ0+rbrvwSs AQUdleYT51ROChWXO+iQuvxSTDpHORau2p+yFdJrqH/58tBQ1nnZQytUY699u+AT+a4G 9CL9DrX2mCs7er0mYXx6ASgpGEg11LH7m3Y/eKLCvt0LYCVdfyjrmR6wDsEUeaz3Kq2u PkrvS5bNZFwbz0+cNKkGJYZlNRPok232rI/7LEiHN4JzZ4HUN/8XfqT64fR+z6SSyBk8 7o/GYuops0sM6S7ubfB2l1A2ghJNqBr3fYER24Pqh/6tGAo8HgCoLDRE+WvUlWwTO1Uv ihow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698769976; x=1699374776; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l4KwHDLJ+TqgHxRwSnz+ubCiUC36qba9OJRc7mzQE0s=; b=SRmiAI5GMmA96OiQbTSVLFW0vLLVjV1gu2+0X8AESpxb/br8dFnqcXRCKcZ4oTn7Sj am8ll7DNpfybG2NX0/Ui55lQf8UL2FNBXhec+xJ5qi72JGzmg+wZy1zUBr24TNC0qqW2 o7iHpSmt/PTVAiV5OvbZKaJPhu0ZdyddlRnZNS5S2A2eqVTXWvP5kE1i7g2MU3ie+Hp9 VuRrdNHhek7ThXDI4agkVCwgfOdm94ZVnO90Rc2eG6IxTSOxIIHEYgZi7yrFKIdyRdvQ g3xGnphAv4KV2nhzdeung4NhuIeGYIBH6937fDWZJpWS2RDEY8WrOu0ajRdgOt7PRjst RFyQ== X-Gm-Message-State: AOJu0YyZmJ7Ou+PjIdE0o2K2opNksiC6NjoTzPi/cZR9P5KexeUnHr82 BNb/+nRP+lrjLYxh6JOPrg3Vu28VdfnPpxtzEkSNHQ== X-Google-Smtp-Source: AGHT+IEEY0+mDbuopXFLLJnOUnTN66PWh+l2UFcy4q3ySyBeBhSjvjDQlOx6LFS9xTCBeAyqpBxwKw== X-Received: by 2002:a81:b725:0:b0:5a7:af72:ad6a with SMTP id v37-20020a81b725000000b005a7af72ad6amr12381735ywh.43.1698769976101; Tue, 31 Oct 2023 09:32:56 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:3d3c:6c87:9be3:8cfc:976d]) by smtp.gmail.com with ESMTPSA id z76-20020a814c4f000000b0059f650f46b2sm1003638ywa.7.2023.10.31.09.32.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:32:55 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH v2 7/7] linux: Use fchmodat2 on fchmod for flags different than 0 (BZ 26401) Date: Tue, 31 Oct 2023 13:32:39 -0300 Message-Id: <20231031163239.4020952-8-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231031163239.4020952-1-adhemerval.zanella@linaro.org> References: <20231031163239.4020952-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 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 Linux 6.6 (09da082b07bbae1c) added support for fchmodat2, which is has similar semantic of fchmodat with an extra flag argument. This allow fchmodat to implement AT_SYMLINK_NOFOLLOW and AT_EMPTY_PATH without the need to procfs. The syscall is registered on all architectures (with value of 452 except on alpha which is 562, commit 78252deb023cf087). Checked on x86_64-linux-gnu on a 6.6 kernel. Reviewed-by: Florian Weimer --- io/tst-lchmod.c | 4 +- sysdeps/unix/sysv/linux/fchmodat.c | 120 ++++++++++++---------- sysdeps/unix/sysv/linux/kernel-features.h | 8 ++ 3 files changed, 77 insertions(+), 55 deletions(-) diff --git a/io/tst-lchmod.c b/io/tst-lchmod.c index 2bf4835b05..6496dc61e0 100644 --- a/io/tst-lchmod.c +++ b/io/tst-lchmod.c @@ -219,9 +219,9 @@ test_1 (bool do_relative_path, int (*chmod_func) (int fd, const char *, mode_t, /* The error code from the openat fallback leaks out. */ if (errno != ENFILE && errno != EMFILE) TEST_COMPARE (errno, EOPNOTSUPP); + xstat (path_file, &st); + TEST_COMPARE (st.st_mode & 0777, 3); } - xstat (path_file, &st); - TEST_COMPARE (st.st_mode & 0777, 3); /* Close the descriptors. */ for (int *pfd = fd_list_begin (&fd_list); pfd < fd_list_end (&fd_list); diff --git a/sysdeps/unix/sysv/linux/fchmodat.c b/sysdeps/unix/sysv/linux/fchmodat.c index 99527a3727..99d3df6440 100644 --- a/sysdeps/unix/sysv/linux/fchmodat.c +++ b/sysdeps/unix/sysv/linux/fchmodat.c @@ -26,66 +26,80 @@ #include #include -int -fchmodat (int fd, const char *file, mode_t mode, int flag) +#if !__ASSUME_FCHMODAT2 +static int +fchmodat_fallback (int fd, const char *file, mode_t mode, int flag) { - if (flag == 0) - return INLINE_SYSCALL (fchmodat, 3, fd, file, mode); - else if (flag != AT_SYMLINK_NOFOLLOW) + if (flag != AT_SYMLINK_NOFOLLOW) return INLINE_SYSCALL_ERROR_RETURN_VALUE (EINVAL); - else - { - /* The kernel system call does not have a mode argument. - However, we can create an O_PATH descriptor and change that - via /proc (which does not resolve symbolic links). */ - int pathfd = __openat_nocancel (fd, file, - O_PATH | O_NOFOLLOW | O_CLOEXEC); - if (pathfd < 0) - /* This may report errors such as ENFILE and EMFILE. The - caller can treat them as temporary if necessary. */ - return pathfd; + /* The kernel system call does not have a mode argument. + However, we can create an O_PATH descriptor and change that + via /proc (which does not resolve symbolic links). */ - /* Use fstatat because fstat does not work on O_PATH descriptors - before Linux 3.6. */ - struct __stat64_t64 st; - if (__fstatat64_time64 (pathfd, "", &st, AT_EMPTY_PATH) != 0) - { - __close_nocancel (pathfd); - return -1; - } + int pathfd = __openat_nocancel (fd, file, + O_PATH | O_NOFOLLOW | O_CLOEXEC); + if (pathfd < 0) + /* This may report errors such as ENFILE and EMFILE. The + caller can treat them as temporary if necessary. */ + return pathfd; - /* Some Linux versions with some file systems can actually - change symbolic link permissions via /proc, but this is not - intentional, and it gives inconsistent results (e.g., error - return despite mode change). The expected behavior is that - symbolic link modes cannot be changed at all, and this check - enforces that. */ - if (S_ISLNK (st.st_mode)) - { - __close_nocancel (pathfd); - __set_errno (EOPNOTSUPP); - return -1; - } + /* Use fstatat because fstat does not work on O_PATH descriptors + before Linux 3.6. */ + struct __stat64_t64 st; + if (__fstatat64_time64 (pathfd, "", &st, AT_EMPTY_PATH) != 0) + { + __close_nocancel (pathfd); + return -1; + } - /* For most file systems, fchmod does not operate on O_PATH - descriptors, so go through /proc. */ - struct fd_to_filename filename; - int ret = __chmod (__fd_to_filename (pathfd, &filename), mode); - if (ret != 0) - { - if (errno == ENOENT) - /* /proc has not been mounted. Without /proc, there is no - way to upgrade the O_PATH descriptor to a full - descriptor. It is also not possible to re-open the - file without O_PATH because the file name may refer to - another file, and opening that without O_PATH may have - side effects (such as blocking, device rewinding, or - releasing POSIX locks). */ - __set_errno (EOPNOTSUPP); - } + /* Some Linux versions with some file systems can actually + change symbolic link permissions via /proc, but this is not + intentional, and it gives inconsistent results (e.g., error + return despite mode change). The expected behavior is that + symbolic link modes cannot be changed at all, and this check + enforces that. */ + if (S_ISLNK (st.st_mode)) + { __close_nocancel (pathfd); - return ret; + __set_errno (EOPNOTSUPP); + return -1; + } + + /* For most file systems, fchmod does not operate on O_PATH + descriptors, so go through /proc. */ + struct fd_to_filename filename; + int ret = __chmod (__fd_to_filename (pathfd, &filename), mode); + if (ret != 0) + { + if (errno == ENOENT) + /* /proc has not been mounted. Without /proc, there is no + way to upgrade the O_PATH descriptor to a full + descriptor. It is also not possible to re-open the + file without O_PATH because the file name may refer to + another file, and opening that without O_PATH may have + side effects (such as blocking, device rewinding, or + releasing POSIX locks). */ + __set_errno (EOPNOTSUPP); } + __close_nocancel (pathfd); + return ret; +} +#endif + +int +fchmodat (int fd, const char *file, mode_t mode, int flag) +{ +#if __ASSUME_FCHMODAT2 + return INLINE_SYSCALL_CALL (fchmodat2, fd, file, mode, flag); +#else + if (flag == 0) + return INLINE_SYSCALL_CALL (fchmodat, fd, file, mode); + + int r = INLINE_SYSCALL_CALL (fchmodat2, fd, file, mode, flag); + if (r != 0 && errno == ENOSYS) + return fchmodat_fallback (fd, file, mode, flag); + return r; +#endif } libc_hidden_def (fchmodat) diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h index 07b440f4ee..670d2604d2 100644 --- a/sysdeps/unix/sysv/linux/kernel-features.h +++ b/sysdeps/unix/sysv/linux/kernel-features.h @@ -252,4 +252,12 @@ # define __ASSUME_CLONE3 0 #endif +/* The fchmodat2 system call was introduced across all architectures + in Linux 6.6. */ +#if __LINUX_KERNEL_VERSION >= 0x060600 +# define __ASSUME_FCHMODAT2 1 +#else +# define __ASSUME_FCHMODAT2 0 +#endif + #endif /* kernel-features.h */