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: 739589 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1744860wrt; Tue, 31 Oct 2023 09:33:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJHQ+IR60NI4k98bzTplKWXdQCpk3poQ7tzdJ1h759rqTVh9hTlgM6r/Zg53zy4QFOQyay X-Received: by 2002:a05:620a:1c:b0:779:efb4:73bb with SMTP id j28-20020a05620a001c00b00779efb473bbmr12197896qki.41.1698769999976; Tue, 31 Oct 2023 09:33:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698769999; cv=pass; d=google.com; s=arc-20160816; b=Q/ju/HcLkLdCHtUC0H/QL48v3gl9Ls6ksE9yhMQ3h3qCqMBblN4ujnVlCAc3EZkLxL ZijRs9r2b/ObwrzlvrvyEo+aqJufEmPWpGHqGnY+a51DefvdRGQWsNJ/Lq/Nz5TO8NG8 foYXSbkYCq7j/laoAcvRJUf9+MddMwfOoLGExEVjltcSUk3asSS4gc6/6BT3ZoMmI8D1 djkEZX/sAXQDnC1vTtfa+SyTVq2eLNXqc+so6NcTgydvJT50kNmi/nPec1pBDT+0ErYd H4zKL7WivEVpUjpYT8zCnY3HOo+GMBYy8QbGYLL2VQ/FLm6376bg4KluDstDbgxbvSZx WvjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=PZxKKVpIV/HppKmQ4lGUn/0Ods25CMe1npGBIGub9Ko=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=gqu+kcuzVTkAxosk90bc90SDJBhemnvF0nLr4lQmuV4Q8t9H6LhNSHa27XBxTI4xol 50hhJK7AWfpTouqUb8uuL4cZPop/ZB1/EhodzZXskeI5WfWW09P/VX4226lH4hOrWlHP uUctI+eQJHVDY1FOQ5aXRatdk12C0ckoOD0Ffx8mNuDJqAvLLlxoxbjnSSM7+Zddnbm6 hODWiASbJx/pIpfq7K56kQU0FcXQssV6YAzfleyEZ5ihcV3gABPUcp1hGtYWH10CjO+f hu4lwcNX1965Q8leZP+Yhk83HOzcpqDI9IFvp4dH8236ZT4poUqwHZh3dly64VnuAEwV J0dQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=leRSoK3W; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id w18-20020a05620a0e9200b0076d99ab8814si1337244qkm.37.2023.10.31.09.33.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:33:19 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=leRSoK3W; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1F561385E036 for ; Tue, 31 Oct 2023 16:33:16 +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-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+patch=linaro.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: 739587 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1744658wrt; Tue, 31 Oct 2023 09:32:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHbCctUXk6GDarqfzTAD8//jN37jYM6NSv2uBJqpt/BFpcXeUU8znXuFanDPidte1XxE+Av X-Received: by 2002:a05:620a:29cb:b0:775:446b:85fa with SMTP id s11-20020a05620a29cb00b00775446b85famr15453991qkp.3.1698769976600; Tue, 31 Oct 2023 09:32:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698769976; cv=pass; d=google.com; s=arc-20160816; b=U8MG7nU6ypj7tyjUUxQ03zSEvhgSjAxBBLaZSn5EMX4R5E96QhIyNTc3Ri15d2iQff 2BBNvwgOojV5CYIkb3Ws50/993/zeDHnzPOcZ3F6bHIPg5AIJSKVoG1LumZ8PHGFLSrv uhPXkamdd18CGm538/cikJxfnJ9gGCQ7WpsWzMjNhpUC8bELdNum6N/ihzWVcJemZQ7D Zvy5z48mk7LwrKMZ4QJ3dl5rj4hWVsuShHCIQE2z+ZJz0StlxtUvFVu6bvYOG8NUZgqJ tuaMyDqbsO/nfPw+r4wj8NI2Qm0U+YzbMT2a6gjnU7PazQGO4tUherttUUVtwV/UBj7i eyzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=siZLaPZewgiKDUVQnqh4g+5qaYJrP3jM+oGuaNFShkg=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=PS54lRKb0AMHe+xZu9TE1QEICs1B7T3cZewDsjaof/pBbCsf8H4d/lI3fXTCtD+cRw p3mJwcXJxlmVHePD6BU0AiAe4tjZ0uAC+J9VWwlTWH76ZsiiO+ILm9O7D1zMYUmK/vg/ FUOOfHECB5rgxG983A2DIWbIITqEEYSIFFML8NcBSJqRybNGic5jqZo+iGsYL9lIpHS5 Ck0qIv0LE+ebMoyLu5lAB5tPlFzAZ/N8Lp3Y+wAjXmFeJQRF9CzU5IWKDKsZLHJtrvt8 LsmJxVDyYX/908u+Zcxmm1lQJdJBNFGJz5iniwt3HjMD3M3Bk2YsuBBooINOCOkKuJAo X5ng== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mWr+dU+H; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id uc8-20020a05620a6a0800b0077431227b58si1279515qkn.27.2023.10.31.09.32.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:32:56 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mWr+dU+H; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 431B638582A9 for ; Tue, 31 Oct 2023 16:32:56 +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-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+patch=linaro.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: 739588 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1744708wrt; Tue, 31 Oct 2023 09:33:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENiqpkiLTl7XL2Rl6mgMVIoACUDBZCnAM2yTVGGQT91wl6io0ib3ZVLWo4bWFR4ItVCASC X-Received: by 2002:ac8:5d06:0:b0:41b:7759:2a9a with SMTP id f6-20020ac85d06000000b0041b77592a9amr18317318qtx.13.1698769983361; Tue, 31 Oct 2023 09:33:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698769983; cv=pass; d=google.com; s=arc-20160816; b=hCQ0iw/ok72c6vVW7JV5egiNMWkBryod4cVcWxAU41Ap6J55Xz9XYV1IFxGIt6Rbjf d31fn3FrMGy07Ud1RG/THZvC2VkApq2OQhr5Purr2/0ZhZIweYpuXNHT+wYfheGiyD6Z gBhXq6z/tHy50MNjrI4uwlAtRycGfDoSydM5n3Zgy7UyKdReuhBrpyzWNsoX4wEuYL2L QLG8BffuA/3sXBnGCdV0CndJmuDmUDh10+xequtSk9OgIKA8wufq44gjFaIJ8/nKwpgF JDzIAfTZbUrPvB/zuvxHJvAcKQOnbF9ZXe/6jsTZLEfoK/LcymdjD7dRHfZpUor6eZ6g JNFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=ftaBgK/wmDDfARZNpeo+ZL9B0c9+yoaQG3X0kTKooAs=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=dJHusFTMxyWyX4qiPdSUtTQl6PfbGQvyZoLbsvRo3jqj0MRXWkszcbrzIqYQuI0TMB 2cnl0pdOuYAWWqmNjxnN8I8m/+txEtxKAi8+PDkGHgddXp90v5BeCWGEabem972paSBY mLcm0MjbI/qSptHMCMnbqZ9A0oEN4PG3RsCdIjCX45uHtF8h/CLKoIPSg3bUgBptyb1h pyy6KfRpCfw4CP867yZmOqyal0mwM9Ql4oqQ/vucwiAIlnDyurqGT8wVE5//su8Qcz4q tLoazmKQyBbozQGm53jkMp0nCRzCX0qzlJIxPdd+3EKpiUsYITDVZA+SvbjYsJUMjAWe CRWg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zivmEABP; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id i19-20020ac85c13000000b00403b84a6bbasi1419095qti.385.2023.10.31.09.33.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:33:03 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zivmEABP; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0A9393856DDF 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-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-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+patch=linaro.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: 739591 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1744892wrt; Tue, 31 Oct 2023 09:33:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG8vacNtLd65HagUCkPg0aFhezi+ngA/lsOuWGxY1zhM7PMhK6DI0Vrq9la5LpAecr7wSVI X-Received: by 2002:ad4:5961:0:b0:656:51b9:990e with SMTP id eq1-20020ad45961000000b0065651b9990emr16070627qvb.57.1698770004862; Tue, 31 Oct 2023 09:33:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698770004; cv=pass; d=google.com; s=arc-20160816; b=glrSvtYwmHMj9aLWHHZ09/d/Mi/iq2Q8pwBLMQan7EPOvXb0T9ffR1f0gmbKRLs8Wo HFpp950ei3ZxJ2l0hgkk79BowhEH4NeGNXN29qvtWw8OFGyS5utsbnxHoSJEdbXImrpl gWjdf9t5WeGkp+ybrYiQzc1rD50NaSAWilziEIMDNe0I05/SeN/iAsLeY6lXb3XgUp4U qjnco6he5LfQjdCYSZzmneIIbNeFhbvmlESVZFxLGhGyQTEQdy8RiyTZugQWpK7a0scf +y/NMzqfwgKFcXqsNuLcnDXyatFu/+ANHfS9FKOK32IWsbbGKamoY52Z6KzcwX4XoAx/ aoXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=8uTrA61A+usaiYz+Y9VvvbYq1hEP5GMnt1gHxoYDtJI=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=VJfjgeWpc7Z5+7jh1Lolo/V8manrZdCelgWiKe4ynWIbTeKgfQ52j3p+AoJcxAVdDR 9bPsRICxFUOZBZhdLyBNDa9F4mORrohKR3qaIY4Y9GXC8nUnvBpUuiqML5EZm4N8TOfS aHDpo+3C/eSWT3Kpr3S4CI+bSJJ6ZjZ7GYgXx7GKZF0nW2EX8rCSy6aCAp9k0kGpzP9Y bnEANWZiBecHAfAaIw/nOpEDVdaGvxDgXniwnA2HfS+zsEOpRwwAM1WDVqVFhl1DouA2 sypBE5W8rdLZ5kt3fqvcxm3a8kGEnbZcJgdaPFWDMeTTat3gGqiSRcyZSXRHVmeXpofi m8dA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BAohqTc3; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id s4-20020a05620a29c400b0076d763ffd49si1455584qkp.66.2023.10.31.09.33.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:33:24 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BAohqTc3; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7EC04385B53C for ; Tue, 31 Oct 2023 16:33:20 +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-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+patch=linaro.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: 739592 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1745092wrt; Tue, 31 Oct 2023 09:33:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE4Q3mYhS9vcMA4YfuKbIk8AIPGJGq+DNfEMafQKGrYjBK0ujpC9uu+9jYj9+viwNT1hE97 X-Received: by 2002:a05:622a:1b8e:b0:41e:2948:21f with SMTP id bp14-20020a05622a1b8e00b0041e2948021fmr16102492qtb.53.1698770026622; Tue, 31 Oct 2023 09:33:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698770026; cv=pass; d=google.com; s=arc-20160816; b=EfZFzsPWn5o7u6aOPtiE30GYysR8ahbV8rhzGNV64P5LYXX7WGcz8tfG7fLfgC8aEk 08SF6CGwm0IFXsL93sUhOxjcE9YiS5QoLJQo2ivAX/yItZ1GS6uKRP5G0HX3QOnikMkZ kAKPPaXMO/ozIp/yWVsjkTAMR8pW7lk81/PnQR5Flke/zCHNTI7Ocmn6o3VWJ3v+FaW0 /TvAi/9HKOKLU6vVP9Lk2kHoaP8qGCeFZGZquIO2VZmLgMBDkYONu60BeoFonRud8JS3 I6QDrMLkyYdzNDpBTvk0qmaHzSExP5ydKEufjYNkkeEC71YxHDp5m9DPSPdAV+V2sJhI UKPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=UwW6nD3wLYyXnIQsffBZPiXlHxa+n09Pt9AmaeKFiqg=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=Lo+yc7I6idYVqCnq1KGAq6P2hy9ZINPFwAP5QVEGeIQRcUCLpir8oAgBaf7YkoKfJD 8LLZXhcOowDOUioDGelHlrZrtNMjIqBhb7tKkf9mC9GXzoBSHd3yFNP+i8z2kn9p2cJa IU/AwYkeANlPJcH+7/QKDiTNUtSz62M64xwR8t5m8IQLwELd85GrK3mBJc4ydU1QZ+Pe 3S4l78vRkCB7QlgacMkW95Mi8kFSuyapyqPWNlnIyw0pMmziJGh84wkm68QTDGhGblGz kmTdnRhFhxW1EJfpwIAplASkB8aV4e2i97nKgu9A0GAcSfWyx7VLsFAGniPxc/lCVC3K nlLg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gKvJ11JU; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id s17-20020ac85cd1000000b00403a7a5820fsi1377744qta.142.2023.10.31.09.33.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:33:46 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gKvJ11JU; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3A73438560A7 for ; Tue, 31 Oct 2023 16:33:41 +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-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+patch=linaro.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: 739593 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1745247wrt; Tue, 31 Oct 2023 09:34:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwwDgAmvyUBGYACzXiVX7p094CGDgqyr6Q+/xduNa/hPOBISrfqb6BlJ21j/f8ek3jzevl X-Received: by 2002:a05:6808:a1b:b0:3a8:7f65:a94 with SMTP id n27-20020a0568080a1b00b003a87f650a94mr13603730oij.42.1698770043168; Tue, 31 Oct 2023 09:34:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698770043; cv=pass; d=google.com; s=arc-20160816; b=YnPFLbhavSInVbQluqoT1FFWJ2Rpbl3gjwudmu3QqdTwLiOiY3RXj3vlRrnUi/wJB7 qNofY0algblbhnCH6wnxnPn7cwMW0e0qUtryThR8RvSNM+thvOC64IZZuBtHXtX9CQXZ Yk3ac+oFOM+vS277VMWnW8bR1nV999X+/5no/NPc0iUpdewnBJmM1YtiEcJdGb1Vr7Jp W/NqRQGg4oqFqkc8YIQW+YNmDLzTA2OWRE9Z+SYv4UrdU5Q7msG6hi9zXlSf5sSqVNBZ Zo6XG97DASBSXCs0gVpKsu/bQ/gIaLgUKiWCx6Iv7n+bUJa6hT55KVWL0F4Rm9HbMQvt pjgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=KLScK4i9AeptKNlgIPYmJAH8KOhNq1n1jugepCUjAsk=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=uHzUNc+liu1A9F9ncK5CagNUwr+6Z1FRZPtfSVAIR8xIweT4Nk6eflUFrXhOK0eL8v 76NxW4rhZFZ0Uh5EfAVQixi6/pnv8bteNi/ZO7Cff7j4s06A9fVvB5Jw48YdLh0GEGUr O8Yah/RogMLp64s9OnWof7cDTFReoJnOjgrfCASpJKY+osjc5m7RemgLlkZpG5JWxkBh J3jm5SE5NeNt1WCPcH3/JLwGZXHEU7ISWJbWYFT5Y6el+yPo1xkFZx6CwrqYhQmt52JH Z6f1CaLNcjqSFuT8ORIuARYr8DrKe4reyQnVkvSJ450OM4QvzWnFErjpoIlOfVoSe/cj P3kw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WAWRoSOF; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id bm7-20020a05620a198700b0076cdf0d3eefsi1430125qkb.245.2023.10.31.09.34.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:34:03 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WAWRoSOF; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CFC0F3857027 for ; Tue, 31 Oct 2023 16:34:02 +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-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+patch=linaro.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: 739590 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1744872wrt; Tue, 31 Oct 2023 09:33:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvPHadqITMMJmV+qA+VvrISDzNv8MMZtHmwVokTOspdyYHjbKEUeR30Z7vBXoxkCdLTvHh X-Received: by 2002:a05:6358:6f09:b0:168:e2d5:ddcc with SMTP id r9-20020a0563586f0900b00168e2d5ddccmr17220270rwn.7.1698770001237; Tue, 31 Oct 2023 09:33:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698770001; cv=pass; d=google.com; s=arc-20160816; b=oi7HDJ+RJ2ti9U8GtChZtQ/Z/dREw84n4/oRNljEonnH/gHmbXSECaBU8luAoPCLIP 4K8umtRcY5zHTqSaPNZkkFTQis1Pr2QZTzMPTwrXZQCvvFHOAU8vCZGWuYUH+bP4Rh1i umkiKajYOx4qpLuDGiKahb0vg3la+ORNllu5C2ZN+SiuG27ewqMOvNLuRI/DzmVg68qc MZ5MzASQLafya+gIp1NgnAt9NlhHbtmk/2UWXbvfaB6fxXFott9kpmDEZLmVz+y/LKf7 Lg/9iyqrIcwFchguW8cobXGnjPOxYelQ10JcGF6xTW2pKFiQX3LE5nFG9Z08rPYSWFGd RO0g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=l4KwHDLJ+TqgHxRwSnz+ubCiUC36qba9OJRc7mzQE0s=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=eq7EedLRhP/uVddL60SCRn12WsxEapZLu57F5qrdpESC6wqXGxRDKwVmvlmA5nLZqz Ar75UXe1JyytRqfjcu+mzE0c88xvYZr9OdNY7wUsVM6soTH0YVX0TblglqFMo2cXKYU3 fl8acFRJB70WK5hlYESOTPF5yci6NKJgZRQ8m/B5Z3UwstWPejxSknfLZckGiuzQt3V0 BnSzZgpvB9dNd/0z7sUgXjaU57wQThqGCTfTKgeB8ZRH3KFXKCO2VqBZmKH1byaxcYgv THDJ6VgQLaziDPAO0kT3RaP/pcasGs09JvSBlVL+mjNDRUun4GtBj317zOALVnqcYO7F 3EWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=abqTJkwG; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id d18-20020a0cfe92000000b00651861e9275si1312221qvs.437.2023.10.31.09.33.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:33:21 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=abqTJkwG; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 00E4A385C6DA for ; Tue, 31 Oct 2023 16:33:17 +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-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+patch=linaro.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 */