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 Netto X-Patchwork-Id: 1857266 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=AeUKjCNB; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SK62J56KYz1yQh for ; Tue, 31 Oct 2023 08:33:12 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 32C6C3858414 for ; Mon, 30 Oct 2023 21:33:10 +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-Google-Smtp-Source: AGHT+IE0TGaOcin4Pz+NjY4lN7uICOCX53M19q73UjaJ7DJRFb2RQLWVLYpOdlRA7GGfDhzgwS3K9Q== 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+incoming=patchwork.ozlabs.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 Netto X-Patchwork-Id: 1857269 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=uKvq823+; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SK62t5ZNFz1yQZ for ; Tue, 31 Oct 2023 08:33:42 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C62573857726 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 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-Google-Smtp-Source: AGHT+IFbNZKxkpOTNhTm9vKeYymcHjvh39MN75C/tMWSSN4iXJqSUHX7xNjdxrUeXQ13TKfhZTRcPQ== 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+incoming=patchwork.ozlabs.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 Netto X-Patchwork-Id: 1857267 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=ajtpeL90; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SK62R4FW5z1yQZ for ; Tue, 31 Oct 2023 08:33:19 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A2F1938582A4 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 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-Google-Smtp-Source: AGHT+IExhXkdL4i6UiZZxHM7IdVpiKlwfWlK/vA/4No4E8ZxoTBZt/99zd+tTxhBA4A5BijbHupLAA== 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+incoming=patchwork.ozlabs.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 Netto X-Patchwork-Id: 1857268 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=NehugiJT; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SK62V6sVYz1yQZ for ; Tue, 31 Oct 2023 08:33:22 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D310F385735A for ; Mon, 30 Oct 2023 21:33:20 +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-Google-Smtp-Source: AGHT+IE3iA2UDP+Aptzw9wZJ47K+SEwbe96wwPyEA4AhG101UBNx+Igb1KYK7xJsYkYDC3+EwsBclg== 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+incoming=patchwork.ozlabs.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 Netto X-Patchwork-Id: 1857270 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=ao1CjJjm; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SK62x4tsgz1yQZ for ; Tue, 31 Oct 2023 08:33:45 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BF5813857707 for ; Mon, 30 Oct 2023 21:33:43 +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-Google-Smtp-Source: AGHT+IEVo+LtIFb6cXrkcofV4ZknDUQyPqrJKwr1wC1BikpVve2TChDvNY3XxcxtdZx4F+eC3jvO3g== 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+incoming=patchwork.ozlabs.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 Netto X-Patchwork-Id: 1857271 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=A2Ox84DM; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SK63K0WL2z1yQZ for ; Tue, 31 Oct 2023 08:34:05 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 151A33858415 for ; Mon, 30 Oct 2023 21:34:03 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) by sourceware.org (Postfix) with ESMTPS id 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-Google-Smtp-Source: AGHT+IGAgKnYNxV9eR2pwaCi/Z9Z9l7Z27V3uR6uudSIH/q9+1AtR7GLhusMpFXgtIfF16HORTNWNA== 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+incoming=patchwork.ozlabs.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 */