From patchwork Mon Oct 30 21:32:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 739295 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1341442wrt; Mon, 30 Oct 2023 14:33:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHLj+sK81mPD/9lDj8TuCktRV7/jRmJ7jAWaQDqUWp/QY8TdBUwl2QUWXtOrzUDGPTX3tVI X-Received: by 2002:aca:1b07:0:b0:3ab:84f0:b491 with SMTP id b7-20020aca1b07000000b003ab84f0b491mr12130478oib.19.1698701586917; Mon, 30 Oct 2023 14:33:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698701586; cv=pass; d=google.com; s=arc-20160816; b=uNcfePwZ+wWc40SQYZgJPCqbnpCfCO/FH3G7EWKHy/slp83tWfLrjTQjTjrdvJrLYY lhY9B48zSK+vI24bueFQxMDUqjZvSFa98nluYm/jysy+2F7N6z/G6GES7g3PIM7POpe2 f1flPU84KT2jooBxuO9lb95LFcWug1GPhTIA/esGtLlyX541EA5i+bqTG9/Awl9KINT4 vKurDwLY8DoYmzHrdFxUC1+40rpoOB5ebHnfDK6zgl5h/5rn17RS1jmqGQbIqVj5JGGi BFSydsObAg/OJiB+/10NhO5ICadGqZvvg+B0yFtJmlFjuLHojXw9v0A4ZBxBZAFPCejd Z0+A== 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=9mxGNjbjuThfHVmEfLwSiG+dcAXH6EbK0c4exW5YsXU=; fh=x+/sfya+TES1qlBiDsEdYFy6khw7IV+tu17R0mskoJ0=; b=spjtnkBnQsLNbWxBwmTw2GYmRA+eNHf639MXqJdIu497/dQChQaxeh0m9HUiWCJOYe hkf6wznmJfHjEc5lhswMihuCV5tutaCf0xXFyLAui71SmuK7E/d8G0TLTF20wygmUSZM QfJ+ObDdo1tdsVdKGfu+5CcAz/2u/mFGkKULxOphhrY/JJTN0OrUGrNN9Qt97puiGMKD ldeJNiXmj5CYLchaBEZ9xW0BryrMZ8dINxOQROyNLfp9kX8nogzYRC0lf/4/uNeyarA3 pZ0CerBTJ1oWFWFxKUMf+wVizIZ4IStNEK/xMV8LnC8BKhVd/yIytiJQc1OuPV1vLipC ynZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AeUKjCNB; 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 q10-20020a05620a0d8a00b00778b2ed7e06si6539026qkl.84.2023.10.30.14.33.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:33:06 -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=AeUKjCNB; 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 8F568385841B for ; Mon, 30 Oct 2023 21:33:06 +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 A3A9B3858D28 for ; Mon, 30 Oct 2023 21:32:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A3A9B3858D28 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 A3A9B3858D28 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=1698701579; cv=none; b=lIRv8L5eXq8jIFHLqxpjFHCf8uysEEXQk4bE5vgmqMYH4SMIVnnwoWvDD49ceUxAHJbGE3HkN+s8mhoOHriMpltczTGS6yZ8JGdKSi1dFj6n1wPzQ2ldg1jzSo5KS4Fy39vsqTa8YBdC+6ieHTou3y9RHcI8s+EeQyzjS3jKcXo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698701579; c=relaxed/simple; bh=6l1OIpBwqsnwlBZ82v3j+TIMU1gmR4HBopHHetsp1ac=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=H8oPJXXNX54+aD7fNVD6gFWLXDcztcT0LX+Uuw+6vbbpeajWgSJuWQPRtGstPlmIFRKNwG9WCnrbGoY9BhE8ILDWSwc49rcBkwtcHTDJwSRTPsuktaqSp3+8EcJB6K1JvN7lXOEy3YHrtyoJhrqlmq8OR8/6DLj1n3q7mrbKgkk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-5a87ac9d245so47616567b3.3 for ; Mon, 30 Oct 2023 14:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698701571; x=1699306371; 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=9mxGNjbjuThfHVmEfLwSiG+dcAXH6EbK0c4exW5YsXU=; b=AeUKjCNBlkxUZUrzRuuTyl2OtOQkiE51hmPv86PJDm0pw3cNlIDP6Wdeoc9OyZ+m9W Soi1uz/Gdf/mqJ3d5UqJeFmEyOV15GhhYHNGUBXaRv2IUTfMyLGBcOaNnTPje7nrtDej T3EHQzocXn7IwJhorMDmixyG2kyVIMqfypWHWzqMoGcjVEv6vXAJL9bRGeJvofwi5vST nqAJe7Q2pEQl4pRtb6PnUJrKXGhQRGc6hXjyLC8+XjNYKID5eTHWBz0CJEzzvxEK0iz9 clgbhUW1H/XuyMcUgaMeCVkbAH7znHrUAyLxlYfKBAEmCFCJ/eePbHo8abCeNTmpZrn7 vCEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698701571; x=1699306371; 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=9mxGNjbjuThfHVmEfLwSiG+dcAXH6EbK0c4exW5YsXU=; b=HSQtvxVTK/iizf+tJHDW7GDJcdZVR53bUxZlQVuF5oUjCJPx92Bu+Fsjz7ihy6XhK0 /uap6IJn9Yo2+uNXnHQaLOCtnsfJP/2izv7T8yExVX8l66VwbvrJpCN+5UZPPz6P5szf zgeo4Auts9R6UPbPGStgedeOtrmsYl/F+hxUDJlCqidCm+TxptpPyJQXGQuhcq1g7wOd i16Y+Oztb9KZIRCDQz3GYF5qz+yNrCIDjvvhU7kMax0oAzhZwTqg8kBxGTDwn46o5U3b PtHAcqtxkwiqqfc4TTlaFvfUzZYfWrHpxpTLHculbzIKbSbObcF2MnJKFvLMpyVzzGUN HOdA== X-Gm-Message-State: AOJu0Yy8zXI9/FAHHB7SVs2GjNZj1IE6t4ysQHLbFpigBz76XNlJxIyx eFDLpe1M7kdcWvxgoEHmBiqvXFSMZub+ikblhyfbjA== X-Received: by 2002:a81:af4d:0:b0:5a8:7cb2:15d0 with SMTP id x13-20020a81af4d000000b005a87cb215d0mr9473344ywj.11.1698701571064; Mon, 30 Oct 2023 14:32:51 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:3d3c:883c:5760:462b:b60b]) by smtp.gmail.com with ESMTPSA id x11-20020a817c0b000000b005a0f9718a5fsm178739ywc.78.2023.10.30.14.32.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:32:50 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Joseph Myers Subject: [PATCH 1/6] Update syscall lists for Linux 6.6 Date: Mon, 30 Oct 2023 18:32:40 -0300 Message-Id: <20231030213245.2626895-2-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231030213245.2626895-1-adhemerval.zanella@linaro.org> References: <20231030213245.2626895-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, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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.5 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 | 2 ++ 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, 30 insertions(+) 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..52d5948d84 100644 --- a/sysdeps/unix/sysv/linux/syscall-names.list +++ b/sysdeps/unix/sysv/linux/syscall-names.list @@ -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 Mon Oct 30 21:32:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 739298 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1341629wrt; Mon, 30 Oct 2023 14:33:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFfnEXdN+gTBOt8UXyGEqILE5zY88rudGIKJSbI1uKcb0VUkHuxVuGl+tz3vPyYgwHQ9EBL X-Received: by 2002:a05:6214:d88:b0:66d:3a0f:97a with SMTP id e8-20020a0562140d8800b0066d3a0f097amr12173257qve.6.1698701618261; Mon, 30 Oct 2023 14:33:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698701618; cv=pass; d=google.com; s=arc-20160816; b=Vdn2yNc1rk9tx2VNyQ14JbpJgdnioAnbZvPKm7PmO0Fm6MEXZ5DIhXITZyoAl+2mm6 rOIHVZE4V0BUbn0c6hTpfjJJ+No/QJhW/0q4Dx8OzFJaq8UCy3IWOts4Pi3fdWn0XLjs Z/MByQKtXaoBSHyBH655DYzPxqiKJf04lUPccbXsRkGlH2ZBcpbMzjpbHaNT05CT975m kbeRGoLeCj8oZnMh4O0GbFLpTQwtdVNmjZPSbslO8uLUlmG8qMtd+LYTu9oJiYg+Qd3a v4/bw4WT8Au0LAg/+Y59wH0QEg1eCbFOs/uLa1nKU1EG8kZ9U3OFLnGdQKpwGsJy3PFt 1Sag== 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=7mKkSORd1tGi3u8b7td+TWnNxlHJlhJHisLLlpJ+J8k=; fh=x+/sfya+TES1qlBiDsEdYFy6khw7IV+tu17R0mskoJ0=; b=mFIQ8zqv1rCpjNFXAdMWhpoXR4XyO1jC1fLicuO8w5QT3VyZOwabeYoA0o6T5yP/r7 ZPXRHCgPK3eiJ2XP1GHxjtuzkMl/J06BTrFrXiwLdOCQ2s1pm2/ANVzgpFb3SZE7Mvy+ OKmSFGp6t2nUJGrIXG8fZ8BCC7E7IF6wowFTffpJqe6CJikoXKSjoRXAzHP8dhvcRbJU u9ysWP2HyR77bCdNc6EZgFAH0KqFv4BfE1DzcP1POE5MUsua7lE30YyT4qen8K76FwO0 LpA5cQghlijd/CKOiOIuVxW82wi5DUEEPTpRRh1jj7M7QQLOJq7jDPjpj+eIC3eRY1TL Gmdg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uKvq823+; 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 bt5-20020ad455c5000000b0066d1b4ce85bsi6519558qvb.532.2023.10.30.14.33.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:33:38 -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=uKvq823+; 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 DCBF53858025 for ; Mon, 30 Oct 2023 21:33:37 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) by sourceware.org (Postfix) with ESMTPS id 246C83858D32 for ; Mon, 30 Oct 2023 21:32:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 246C83858D32 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 246C83858D32 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1136 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698701583; cv=none; b=BjbYs1Ueye0zwPCrnz2d8bncGkxLife0JPT8/JEUQi0a11Un1cbWVytrnP8G933gwtBFPJYxGTzs7lQRRa6Jzz44j19bk7gD90HQqVn2SpZh/3DktVmTGLVtvkcKugzX5tdpwIvc/CjjcSl6TsLihKgyD1h8CWaRIFh74GRp6f8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698701583; c=relaxed/simple; bh=SmM5Apv/PoWVs2eW4QX9Avgc+w0M1kC4fDjMQda4eEg=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=k3iH5xmAl/KAcB8OgUjzmT9WjL7+8Bmrg6grmmnUT97zizaK6RAedTDFLLn5BBonCrTjScSP/ve1wIFIvX/mE6ZVpXcCf52DiOXJP2BPHC3eCtvyI50tOCwznKv7jnWQH63bqAXFxl/fTFPHE8V+C8nk5GROztz9lhTiFUc7Bxk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-5a7c7262d5eso47622197b3.1 for ; Mon, 30 Oct 2023 14:32:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698701573; x=1699306373; 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=7mKkSORd1tGi3u8b7td+TWnNxlHJlhJHisLLlpJ+J8k=; b=uKvq823+f6qcfZkKJeZaNXKcUCncPTX7avug2CxXrnc+BMNtGTlKDuHjYxvPFe/Ujx 1wzfCwNThWNDXAEnqZHL2EGb5ncg2UrjCUc6uWwC9C501E/82BQ+JHL5JZaMITmZKMSC 2idOVnAh7Ze/XRXdE9BMEKDhLJo6hj8WBaUTJBDDvrJXlaIppwfmpqr3+hwHt4pauAQU bUqnw6d4a3LYxx/MOP9fEiq32eRHwQtq4W+f/ouHikdt4LIx6Ar5XEHhH66+1zG8rP+U gWue1bxsdWiMiEiGeCr0IQQnmqNdWe6/EZiJQHmNEuMljvnQ8eEyrkx3wzcfXY4i6V0k gK8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698701573; x=1699306373; 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=7mKkSORd1tGi3u8b7td+TWnNxlHJlhJHisLLlpJ+J8k=; b=VmX3wuEHi3ACIunWwX8dOzzr9GewUcYRmeB73ysAk1S2ZixWYlcPgsaAj6dPockdzt 79NQJRml/+tulGxv3w2dMXbjW4BkYKOfbNqyjneTkdQPhtxOR0rdTngY6uWJPlTWNG93 oo2c2QvQwUwzITEOm9hZHwvLM924WjR8ejK9HGj0qaZbtYLMhB7lRP8AGCuoOaqUq1zh KL6IUFZFe6gDle8lu3/Fm0jnChhft31N/AeKg4zugcAMw6FIm9/w0/BOQCKxPDvSQ3J7 GXJXQOAJLR1eLTOO9nwSHD1euMopwlIm4HkiBoHsHdCHbz6wLEBvS3H3U05LjBpaN4Zf ftHA== X-Gm-Message-State: AOJu0Yzb0I8q5IWw7ABmGuMMEOkO3+FODQe1YyCzESLa4o+N5BDvYPU2 idjXWS49TxGmBkC5Z3XleDmU+Flj6PoBMpwarCXlDw== X-Received: by 2002:a0d:e68f:0:b0:5a8:78b0:a9fd with SMTP id p137-20020a0de68f000000b005a878b0a9fdmr11527003ywe.29.1698701572765; Mon, 30 Oct 2023 14:32:52 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:3d3c:883c:5760:462b:b60b]) by smtp.gmail.com with ESMTPSA id x11-20020a817c0b000000b005a0f9718a5fsm178739ywc.78.2023.10.30.14.32.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:32:52 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Joseph Myers Subject: [PATCH 2/6] Update kernel version to 6.5 in header constant tests Date: Mon, 30 Oct 2023 18:32:41 -0300 Message-Id: <20231030213245.2626895-3-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231030213245.2626895-1-adhemerval.zanella@linaro.org> References: <20231030213245.2626895-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 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 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/tst-mman-consts.py | 2 +- sysdeps/unix/sysv/linux/tst-mount-consts.py | 4 ++-- sysdeps/unix/sysv/linux/tst-pidfd-consts.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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/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 Mon Oct 30 21:32:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 739296 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1341483wrt; Mon, 30 Oct 2023 14:33:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEKNQ7XGzfCyJVtT0dayfGiMhwLGLOdzQoiXIJTEmfMDDO1ouiPswPY+laOwVQoyQ/TDTEG X-Received: by 2002:a05:6808:14d0:b0:3b2:f363:bbc9 with SMTP id f16-20020a05680814d000b003b2f363bbc9mr13232781oiw.53.1698701594827; Mon, 30 Oct 2023 14:33:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698701594; cv=pass; d=google.com; s=arc-20160816; b=UY36Dsm9/KvSQSlDX1hCDhKNdyojdTmDdVME4eXNGLkaxMykiwS8Zk05ooK+LTHLby bNVnDEA1N0e2hmr7NctbwgXG7EDgEQMZZptNe6fMAsVLPCu5usKMHvevB1Dq0A8D3RVJ xZopqUhjBFK5FuMrT/LpfYYUlUWHthJQSOLLbXI6FjcxlFejnmh56cItIiCCrsMcsy2r dnfb6c2NpBQSoOMkeSGGQUdE5I17pkt7c0Pgi/+KsUTWgMtnavJek1SplZTjPG7xamT0 g2jtx40DUxbFveyU1Jmw6ovYwAer59rScn5URG82jqnki8cYtUP7+RKqerNbSRW+YKc7 XI/w== 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=x+/sfya+TES1qlBiDsEdYFy6khw7IV+tu17R0mskoJ0=; b=0ZT0bibcgnzUzswVDkaUCmj31mxiYJvjYJYmMC9zHbNQuuFTVtbMARbGLNHHFWEbXF 9DRey7S6DuiR2L/p/+lq6+4H2mbtu5YPD+aWFRPY3YNo88L1BMywsMS0vmUW3TJoSLi3 ZURzHFeL4Zv+2mPKTPWFfI4QFILWckry2E7Vl8S0NCnpwO8RQQ6LJ59JfkCnWnlIIe6O ex1NP0oUanlSv6SJPvqCL0c55gsCBFRPLbu0fpPx5HO1TxrEWcrNpsaw/HhlNZcImmo3 GUQCP38xMjJmeTQcajOm04qvYK354DkG3wEYPBvsrpE2YK98THyvWUnIwXaUi8f2u7dX tAbA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ajtpeL90; 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 j25-20020a37ef19000000b00767b3a5d245si6335214qkk.125.2023.10.30.14.33.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:33:14 -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=ajtpeL90; 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 7ACA2385840D for ; Mon, 30 Oct 2023 21:33:14 +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 89AE73858D33 for ; Mon, 30 Oct 2023 21:32:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 89AE73858D33 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 89AE73858D33 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=1698701579; cv=none; b=B06qHTiXGn1RdUeex8aDewWHwn34yXRlFtlVtseZgMRSrkNsxbuSpSAsjkClYfo6ByI30820XRXGqdDG++/UlpfF4UxuBB9TFfCSDpsW4ymXg+/COgPsLOJA9za6FTDAdPGmcg8KTH2E1fXwR5PoTSNhbgw9ewtYCxn8/lHZn68= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698701579; c=relaxed/simple; bh=W2JeisRiDunqTh6UGWwDNcmqiHXNFDUbR5o8JSelvi0=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=GzzOU6YY/sViBN/KII6r89kNxcRIbyNv4WfnFNalv0RK8Q3kkAPS6RllfKwIsW6jQf7JNfasKIxvQygi/i2WKYMGCB7+6F4BKiWzbH8n3fQ5YJQSAjmxo9ejr72xq1Hgq0LawqTk2S9S5mIO/0rGZwF5tp1xEavfnNyWCLnmFO8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-5afbdbf3a19so35149327b3.2 for ; Mon, 30 Oct 2023 14:32:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698701574; x=1699306374; 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=ajtpeL90MMY8uqcV+wUviGoDugJ8hhgB+xG+nDtVJO1e+ENsuMeRnQMUOnua2GvNNG c9bneOHK9yhWMrR8kuJtL8f3Uq/EMqawWN0yi9CNJ/YakfuV1fyKaDmrgGcvXEh8B7bs 5ztcTUxUL+N2D4wIOW0s2bdPy6dQ5WVBotgAZU6fbQQr3yClkWGonknxOEm5ir0pm/8S HZAq9SlYV5W/md8kghrNzO61z2z4CKY8KNgcSP+NJ9XQ3FwShP5394bM1Y4HyhHKpCjn hlKFFLZSpNiLp1cjj7MAZPYA2/JVTcNsIdEo4FTNM40f2lmAyQIayS5Gd6rHWtbDHXPi h6Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698701574; x=1699306374; 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=obsjH1tqhA9aWTOGax5yPc3FdGygAdoiQG/+8h7RglFIBkVqKRwEFBtQpbDfw4kZYy ScWR65lQ2/2AO3Fqenclp8d0+KTZKve1dwzWXLKnmifMjNLeivjcgI8/7sBwiKQYS7xy W7hB0ql3A9kgvbwxnJ24UheyHs+LW/VBxW8a3uxAuxRReoMjE3xyO8aA3koBYVlDNDbz irzJGJsLpg+DqdBKGH/RuRt5o17jlP4gS8N8q2IwV+QXakyqC9NY9kcZw9U1zSOKLwMF h9qGEKCnI0BvwDOpx9WqRROCxgBgk+9CKiHUtn+IMRx8PGbfLXDm3hISnCcbdJdW5N3B AvPQ== X-Gm-Message-State: AOJu0YxbPFMZsV+egvwFR5x1c2abzqyxBVwKdl1yv2/nXsbJ8ymMiz32 cwmZep7xo6+gceDSilSR+ZBdwQSuVrGileAxUVARNw== X-Received: by 2002:a81:9ad2:0:b0:5a7:f002:4fe4 with SMTP id r201-20020a819ad2000000b005a7f0024fe4mr11153293ywg.23.1698701574459; Mon, 30 Oct 2023 14:32:54 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:3d3c:883c:5760:462b:b60b]) by smtp.gmail.com with ESMTPSA id x11-20020a817c0b000000b005a0f9718a5fsm178739ywc.78.2023.10.30.14.32.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:32:53 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Joseph Myers Subject: [PATCH 3/6] linux: Add FSCONFIG_CMD_CREATE_EXCL from Linux 6.6 to sys/mount.h Date: Mon, 30 Oct 2023 18:32:42 -0300 Message-Id: <20231030213245.2626895-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231030213245.2626895-1-adhemerval.zanella@linaro.org> References: <20231030213245.2626895-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 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 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 Mon Oct 30 21:32:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 739297 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1341503wrt; Mon, 30 Oct 2023 14:33:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE7T55mQ1fGj6zi4E7/Do9da3cSFziJBU6iX87tX5s2UuNeqpzFGdigddKr6MURvxYX9LUD X-Received: by 2002:a05:622a:315:b0:412:288f:3853 with SMTP id q21-20020a05622a031500b00412288f3853mr13634559qtw.28.1698701598097; Mon, 30 Oct 2023 14:33:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698701598; cv=pass; d=google.com; s=arc-20160816; b=gw2y0/2gTROkzXGJoitunkylwX7VOHR8qIu3K2jQ0G870CZcJEjD0u7nTQuTcGw8R0 8nsyX8lCGvDHFoE7dGeeWmgygfJ1mZnw32vhLgZ1qy88rTRJzQvvzOouKx/cX6gXVomG yzU0/2AUAS8TFLaDDzdUvpIVqTmz5Nb5ORlidZpnxI5bFm1L3sDI0Jnd3SR8ZpjLCdZP HjPlZra0tgL039gM7DXpPtRpM00zJK8FC75zkA9VBsbD03UNwtGrTIavL8YWBLGQqhct tX/eYAJEOubOY3VwbGoWmTxUKjZjAlqecvUW1qRMP84afYpwGe4RxWQdg2jVeaenIm4J iC2g== 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=x+/sfya+TES1qlBiDsEdYFy6khw7IV+tu17R0mskoJ0=; b=dMgwzb3JLzEfZiU8U93EGTgbbVCTRJ5Mh+bFykWVvWCqWD7wi4u8wSn9IIjDbvcLjh 0QJRYc5++U8M3HIdq3hWxmM1pp5nLrysy3CwT8lGMieC2TJQLA4YQM2LnFGv5bHIklu7 045KqzAL3FFqsqCOuf/CTSFqsFIn14/siMAFfBmP5JoaxerDubU18y3X7+olOZpxtG7q f37qFdXyC+IJl1t3XfaSwRw532AQbAWhJRX6K/mJI6r26AFYWBwUdvykUn5joL/iSgyu Wym5uaemt9hkP0koHvbS0ZARPRXPGqvkWXQsLiqKxQlaxsFGFkUHyjntrWY+XBIVGhKQ K9Tw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NehugiJT; 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 g6-20020ac85806000000b004180ac7c98bsi6349726qtg.20.2023.10.30.14.33.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:33:18 -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=NehugiJT; 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 C11023857707 for ; Mon, 30 Oct 2023 21:33:17 +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 6A9233858D38 for ; Mon, 30 Oct 2023 21:32:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6A9233858D38 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 6A9233858D38 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=1698701579; cv=none; b=dt/4Tjcgnfi7LOI2ld6KFr094hdhQrGoFRGv5v5UkWU4qo6l7LVp/4VcAM197Dc3jycU0jzGdFvP4cNUeVKI0GpqYh2bBIryrdJI1w9e/jK6zEhNm2mo8m0gcnw/zw7GZ+516sxPri5KqwGRQuMXo/xoSVJOf4qvyCoSkaDOTlg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698701579; c=relaxed/simple; bh=wcz3fCz8vQd93f60xCy8Pa8YSIjA69DS8iz4kmncER8=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=GMJ2SjaMJGmU75wZu7CLU1ZsOmEpaJ8Kdo5ZEJVeYH0kGa1wy9d5tOOY3dRhfYyETGd9F1SLKZHlUYf4lq52GAvB3Vtp/+RBOImfd3nf33w0AeJZ/dqeqRyJ1x2d9P0zuFJjnuShV9j/PJf1c2Qg/nn72QHP5YNzcYZfembSTjs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-5ac376d311aso47842337b3.1 for ; Mon, 30 Oct 2023 14:32:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698701576; x=1699306376; 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=NehugiJTnFXl3GNECmB1XzeL23PTnaw2Q3XF8FiiMezGe+Tobh2r7OIxN3TRcDoFyE QYEIyPpdnoUpR92vrXQ0fYK8EncTL1DKgeYlYXxAV9dEFB0nxv2arDoBOqe1rSov0wiw uljZSFCd0h2/HiTHwSIf7ssH4ktpuWoJRDQAf/srD3wog/j57/eTqo4VcG8CxT7lIJ1P bCR3/LTroexRBblw7814E/Q/MuHXq+aFJFASRJQ4kfTEtEKW/y5TPkrluA6CRw5jCgA0 iwN0J2x8gmkPSFGJdJLyqNlqLVJMSuhAvPO7r2AW0OsUNRn27liEIt18E2v3pUf5wkVP 0y8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698701576; x=1699306376; 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=wAe+2+6UccrYChozcoTednEHFtSrGTCSuhDaI9do6D49GSgzNz1aHxHv/gT6DRpezP PYmvgMRR6eoZZAe+VyHRoIckdCXGh4HxtMo5k7TlY/YSEKGW4dFaSwQ4ZFWXbsOlnJDS efJJXJyRSoKYTFGfrSarb0ctWNWy8dAhLcjY/M6oXLctrXxqtuTgW9Tfz2AsW0v8LThl bchRrG0bnMtVJ+BZZs7lvxORXAPqsrecVO5IQNU+Wok0zpzeAswSisTWTWJfSFCTCWLV Y5920KZ+lVCHzlxrbZ9nEQVrDOOBI8DdN5Sz3Dh5JaVhFe0SxYh9PmhDg1E00R5xIkkU Jz3w== X-Gm-Message-State: AOJu0YwhRhgN+lvyEyG2pVmIfLNc411AElNBwV6+7C3Bzye6o3go8h55 Y6gRBN7UuuU9g+p9x1R3LFZ3HeokdQoiRqKBjYYEJg== X-Received: by 2002:a81:c40d:0:b0:59f:4dcd:227e with SMTP id j13-20020a81c40d000000b0059f4dcd227emr9912299ywi.37.1698701576107; Mon, 30 Oct 2023 14:32:56 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:3d3c:883c:5760:462b:b60b]) by smtp.gmail.com with ESMTPSA id x11-20020a817c0b000000b005a0f9718a5fsm178739ywc.78.2023.10.30.14.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:32:55 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Joseph Myers Subject: [PATCH 4/6] linux: Add HWCAP2_HBC from Linux 6.6 to AArch64 bits/hwcap.h Date: Mon, 30 Oct 2023 18:32:43 -0300 Message-Id: <20231030213245.2626895-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231030213245.2626895-1-adhemerval.zanella@linaro.org> References: <20231030213245.2626895-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 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 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 Mon Oct 30 21:32:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 739299 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1341650wrt; Mon, 30 Oct 2023 14:33:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFBscync5+2nMAR8HDx4sJF+IVUWD6rZslxwxslJZUDYULS4hnTpbqHH+vNe2UEQR7X4R/T X-Received: by 2002:a05:622a:612:b0:41e:415c:728f with SMTP id z18-20020a05622a061200b0041e415c728fmr13282199qta.38.1698701621160; Mon, 30 Oct 2023 14:33:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698701621; cv=pass; d=google.com; s=arc-20160816; b=cM0QTY77BCWAgAWizN26fNS8PrdDuzJb0vCDte05NONf+pCpKPhfSpA4b54pSra0P6 neqkotCDtu9kQAbnIvJ05ZbkB1tcCpBY30sT80zih8iq05vLET9x/yABe/7ysBsUWOdm JpU79WdhhGGOiojQBFnQeKn6OOmVBVEkw2LhvuXpceKGaDdXsO9X1Bu+Vo8fsuq1CM85 eVol6hVGhIXdnyflW0u+N8rRkWvqY9iSeZPdvCWKSpjMEOGvoTex5x2D3tylBuhsPXTB MFCRw0tCfxtMwhyvLT91ee9wpXpP4A5oREfsRmnWuxn4dTJ34uDOBOtJ+FLVD/GtFQQk KV5g== 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=c/Lv1axQKe1gISlY+FVXmEL+buN9Vh20pV0vRBIyMJE=; fh=x+/sfya+TES1qlBiDsEdYFy6khw7IV+tu17R0mskoJ0=; b=ZJ8FEulBqczIdVWPl57Kwhx9vBxaw5emy/v7yH1mC+j7lOY8bklEhQuTA9Pnj/c0AK 3uU2aWWhGvzLK0GFSgyki8mR0UP1k1VglSFhQh0k0tn7CjhbJ1ygMAtPTz8tT7R1of8b LQxz0g8vneUMfwqOEioGRNcDsA1QfTe1A8wjEdm4thzGBWbScnnPsa8mhmnHD0IKhEIT CGZjA+e6pVkqM3CyGS9fhtwO7I+PdaE5gqdkAXNREym3PuNTSNgGGQCkB5Tx5p2TBoBn 8h4D1SSWmYqA9BDK2KjWNAHcoXly4cruBSv0Ci02bVYfbxo7UD62rJGsXm//lKzA5uIE u4gA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ao1CjJjm; 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 n16-20020ac85a10000000b0041814373040si6690663qta.49.2023.10.30.14.33.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:33:41 -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=ao1CjJjm; 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 D183E3858D39 for ; Mon, 30 Oct 2023 21:33:40 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) by sourceware.org (Postfix) with ESMTPS id 09B8E3858D39 for ; Mon, 30 Oct 2023 21:32:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 09B8E3858D39 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 09B8E3858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1136 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698701583; cv=none; b=DcgA9j5BusxsckUWxM6qD9GuxJOdM9i98L8jPAPDtBe0YA77FvpAchiJXZe6Qx9lrkNl9LN2Pf15xksK4McxwaAYoDrE/ab4cAjzbE76waIUQN6tr6pD5g5ew5gu2H7VlCxvQzhSbG3BTMJRlSCDdffDvQdhjqpkUnuOPSedUjM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698701583; c=relaxed/simple; bh=FVT0n64b4MlQ6nSkW/uFO9q85MzqR+We+bLF0uFmSOI=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=FgUG7Gumv6q3ou9m5GLI5YLAQjISiEYo/yd1w/Q+HI2mZ265W8WqD74PXjDxeors68zgEqBhNPHo2SdrhMXsiPuoZn7pCSIk2iLJS+I4xIYgzmj3mYqPIGhDPc637w3yFYC0S6g0ZqEKhUWV+fJ+Y1ryQlJiSLXXRH1T99iyjjc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-5a7c08b7744so46831437b3.3 for ; Mon, 30 Oct 2023 14:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698701578; x=1699306378; 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=c/Lv1axQKe1gISlY+FVXmEL+buN9Vh20pV0vRBIyMJE=; b=ao1CjJjm7XnJJZkS57ZrD8HccRMg2w0tP91XN8Yg7RN8UVDqegK0enXA4SNzpv4j0e UWO/ZJUqufeotMgFkdWbYrQauv9rabt1NDpHd2sbnELyMNl0Ax06/5tn5YLPoJQ0xCiX RIzF/GLZKDVvf6a+LVzNv4dzEpFLBvGTxrPHG39CINTeFIMFD+pDrurl+Ypq3mIRYvbB 98EpsA0/4NK97sEyH6rMR2xwNqHyC4GOHsJ+N8UDVDpHBLvYk9WuwlO5DSsNdsvSsE2F irO7UMvAPKdxfxcbWGX8n6vz6tm0lMBUuIWy/KhgLouNKRg2nZGoLEbCRhqun82joOGA sa/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698701578; x=1699306378; 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=c/Lv1axQKe1gISlY+FVXmEL+buN9Vh20pV0vRBIyMJE=; b=sZzv3U7yYtxDrFV8RCxJc6B4+BMnGJZaiOwPPTq97lbmfOxSBFGRIuW11k38flkftV AVhqLR2U082FPqWJeRWna6cVKQ3MRa2xOqWhzmuqNC917mT6Dzv2ZNMYIZiAuwxV63o3 cpC+dA9QGGLwevdmZAPTjgbrJZjeTknpNqgTU5trJyX9rcmu0qLQmMdSBT7kwMNxbhvi +nI2SryHcmm3535tyWILE51sfLDLdN6OcmQiJvdHnrWgGg22lEjUoZQvjcz7H4kpgg2a JJ+d3OdztmvUbhllMu/dXrGS9b//urUsrqjXZa/t++j2cQA5pBC1ZSwEFKE/pz3XlRPw tUlw== X-Gm-Message-State: AOJu0Yww5Rvl4d5uoCsrjZM4LYLzBPoKnrqd+FuIDR/Rh1qlQI00LOiI WpXJkPMmsb48fdwW9n0oaUZ/l8MpONWx8Q2vaex61Q== X-Received: by 2002:a81:7991:0:b0:57a:8456:3401 with SMTP id u139-20020a817991000000b0057a84563401mr10484959ywc.29.1698701577795; Mon, 30 Oct 2023 14:32:57 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:3d3c:883c:5760:462b:b60b]) by smtp.gmail.com with ESMTPSA id x11-20020a817c0b000000b005a0f9718a5fsm178739ywc.78.2023.10.30.14.32.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:32:57 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Joseph Myers Subject: [PATCH 5/6] linux: Sync Linux 6.6 elf.h Date: Mon, 30 Oct 2023 18:32:44 -0300 Message-Id: <20231030213245.2626895-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231030213245.2626895-1-adhemerval.zanella@linaro.org> References: <20231030213245.2626895-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 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 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/elf/elf.h b/elf/elf.h index 73a64baa79..50b73fa329 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -796,6 +796,8 @@ 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 */ +/* Old binutils treats 0x203 as a CET state */ +#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 +836,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 +847,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 Mon Oct 30 21:32:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 739300 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1341750wrt; Mon, 30 Oct 2023 14:34:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZGxKF/yqrclacAU5PmDpcZydGTBfJGlxvr/SmYA/esdXh8P9OSLCYsD0zR5KyJLbodnCe X-Received: by 2002:a05:620a:2886:b0:774:2470:6797 with SMTP id j6-20020a05620a288600b0077424706797mr1524959qkp.21.1698701639993; Mon, 30 Oct 2023 14:33:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698701639; cv=pass; d=google.com; s=arc-20160816; b=IM/OfRybcqO45ObXXXd6DI6FafT5owbZgLj2rlD1G17sZT8mMegQB/ROlq0Vz0KOOw IDV6hblEc2rfxpYa7rgNgdlUaCHSlv7HGAOE8A/CeoAWZUk6cSyuSy2+yeNLVPKb/2Ok OtTMl+FlZa+UHf1yau8EnMmYh8DdW7IRNGCrO+QvRDs8oyxYuHYnPmp2KeIQX7Oshfc9 RoSSlWH/UDFDU3T/4rJ0LpxKnWoGE12X3gJ3I8aHcIsFX7AHtihuoVYvIVgThu0EoRf2 KG+o02RLV/qBumVy8IapeCeXpwL2K5gQ2CDh6Mx5yW8QP/VcL5mBaPmLtEIjVox4DV9Z nguQ== 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=b4YVPJTrB8luKqYTJ6F8FHHBi3HA/0MWDUxg/HLMbXs=; fh=x+/sfya+TES1qlBiDsEdYFy6khw7IV+tu17R0mskoJ0=; b=FG2tmxGGyQUpoEUtu3yf4JBDI27eSndPHz8H9F/hlb8SscmVwYpKuBAP1jAQwLuWxD tXQgTMRNP7xexcJq5pAMRiFKsxX6J8guZ/sX4sTON1urds/BYZlBzV5MuJZiQfLvI811 UOTVuzwy7996eRC46hKyz12wpnl5WALE7p8JxOXzWqD6GRfOQ2XlqsKe84/u/ye2eQ2P BGiTErpfxrLzvqeG0BWFYve9HRf2XIOrMWOKfRS9+M1FUYJwLDcmzNAXeGpnLPWB8zWY 5OrYOuOtGRKmz+r8MZ2pGGOUC+ai5VwuaikPZxyZed20Qx493M836UgpzTDU18/W8Fzc lNdg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A2Ox84DM; 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 o12-20020a05620a22cc00b00779d0155329si6122076qki.702.2023.10.30.14.33.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:33:59 -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=A2Ox84DM; 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 A70E73858433 for ; Mon, 30 Oct 2023 21:33:59 +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 9E5EE3858CDB for ; Mon, 30 Oct 2023 21:33:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9E5EE3858CDB 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 9E5EE3858CDB 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=1698701583; cv=none; b=FPXZvjL2kUTj3VS1JjZbYRaUk8NhUvGrq29xm0bFWY/fgE6r2LhjvckpynBTDEbpoqdawxZWwXqN+wdvLzc/rNN9j+Ag+VRkISKoMjRhjTTyX/xhe7ktPxSOesAY2hNzlSz+aTUVIlb9tpC1jGJNQp4sZ7DT16SGwVeiu4YnGqk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698701583; c=relaxed/simple; bh=N7sKRZK8RJETe+Yo4ejNJ5EfCrwwFxHl4dRhTRQ2cGw=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=X7dD7JSr4o3PEHyWe3Ri/FlmwTVpx/IVr7AnPLhH8iD8gLP6nK/Jo/K9++jAn3bdJkgSkRlXVeey9lWtb2Y5O0L0DTB9mOOfYz9jVS5uu/Pgfm2yHv4NTADjyxyyEMh5JQqHaimwfHg0XO82hYtak0lGgGX/AJ6spbytDjSLMTM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-5a8628e54d4so44413807b3.0 for ; Mon, 30 Oct 2023 14:33:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698701579; x=1699306379; 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=b4YVPJTrB8luKqYTJ6F8FHHBi3HA/0MWDUxg/HLMbXs=; b=A2Ox84DMsc4XaH4VOQpd3AoTP7ZOlS+ZuBNSRW0hmoiW3OURflynZIBU4MpUr5XPD2 iY63w7dO2uddPPue6f/WYFfmkEO7f9Tx5vvfMej/9d8QkabJLnyVcMifYLpoN/3XY+xi Txazu/EdSm0rbxuwD1Q1bsppnlI2g9wmX2Q7Gb4HhnvKlZS//H3OaKzhoXFb/4XRNak1 ijU/ssO5PbtmNMqq3w1D4zN11G84R6ZGJnKvRp5B4ohq8niyMj/MJYM4/0oI2L1mOfff ap+nddDdV9MbhT9J70nozIEyknJSLcsahTliL9graH8ddk3WvwOOJN3lDso7avlQb5R5 g4GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698701579; x=1699306379; 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=b4YVPJTrB8luKqYTJ6F8FHHBi3HA/0MWDUxg/HLMbXs=; b=LDAF84emMJ8LvIlbiRuzxwhtQqEYHl4pqS3QISYPHH6DSZqeRh4o+m0U/Dd+eH9Kzy x/D8yCgBZfle5IaC4Byt02hwLlaPIXtu/I9C8uUP85L+7xLeZtIKIHXzAzy16VSy+fIB LDbUYOAEF8wWkPXIFBx6JKrHeJzWYLSEkOsMzSuR4huxWGnY3o0RVYN+tPxzVPiGxd7T FGCFVa2E7jiIVLQqJTh+CVKd54A5C6l8NnUrQ3cgfNm1MEDN0QiD56B9XHudy4D0GigD D5FVNJhW/QMZWX9X7nx5zP8DnjvY1Ic1qK44A+dpyWqcYSKTczHGIo09vUiOkjjkOTw2 Lz/w== X-Gm-Message-State: AOJu0Yw9bOxCg1vXTrwv8iYZPh0HXbOXcqZZApMuV3C+sYy0kmJVA1Nf GNeYZNVsuD/PJFnAouFEdRTyNlLVGx4aw9Q/2gC39w== X-Received: by 2002:a05:690c:15:b0:5ae:15bb:466a with SMTP id bc21-20020a05690c001500b005ae15bb466amr1004940ywb.14.1698701579348; Mon, 30 Oct 2023 14:32:59 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:3d3c:883c:5760:462b:b60b]) by smtp.gmail.com with ESMTPSA id x11-20020a817c0b000000b005a0f9718a5fsm178739ywc.78.2023.10.30.14.32.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:32:58 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Joseph Myers Subject: [PATCH 6/6] linux: Use fchmodat2 on fchmod for flags different than 0 (BZ 26401) Date: Mon, 30 Oct 2023 18:32:45 -0300 Message-Id: <20231030213245.2626895-7-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231030213245.2626895-1-adhemerval.zanella@linaro.org> References: <20231030213245.2626895-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-13.1 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 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. PS: setting it as RFC because there is no Linux 6.6 release yet. --- 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 */