From patchwork Tue Oct 8 13:23:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1994264 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=sK4pY1lN; 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 4XNGxP28G0z1xvB for ; Wed, 9 Oct 2024 00:26:01 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 84EF3384F4B8 for ; Tue, 8 Oct 2024 13:25:59 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by sourceware.org (Postfix) with ESMTPS id 16CA7385C6C7 for ; Tue, 8 Oct 2024 13:24:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 16CA7385C6C7 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 16CA7385C6C7 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::52f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728393889; cv=none; b=R0s9I3ywdshj+1g3BWR4th3S94bRqs1begkb9lu3QOZKajVS55q0Q/EgYsbG1MtaWLn/sFNyLa0wOH3SzvSpjrZTkDjgyPqhfnCvyImrQqGZk1Sqp0s7UGfpG2nGjApBjjLVSMM0dQ0TtYlnrK1LapMoQa+lZ/jJ+maoYhLi1jw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728393889; c=relaxed/simple; bh=doSgKaSU6flWQ8YzCMwMLYyt1SmduQo6GGMSC4o9WrA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Xy2lLK06rYUXatVPaOVL/dvh4OHFlD7r/CN5bleppQzG9N5XxPg83owoS0Pc48bquKw3Dh49G3T5ld7Xo8AlD+sF7FGxRWo7d/HmDJyZOhHDI4r1LIvaJRuAN/Cb927+MRhM2KNui2LzzED7txbgecZcaZwB3VdGEopsPn/yqZo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-7d4fb2cd1ecso107228a12.0 for ; Tue, 08 Oct 2024 06:24:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728393886; x=1728998686; 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=XhbMmUoWo3/zvp7G/59KJQeAgDJ+vsC5ZPtz/E2u9XI=; b=sK4pY1lNSGd+VEw6whyVpMveiauGNwFjRcSZNjbFKfgv7FUm7+Bo6YlwZ90ijmSdHJ FpIOCk+xn9gAK7ydPuz/1X8Ffg4Rb7+3/yBTHdKSiV6Zkc0Y+dZ4xq62qkFTA8NvAcfZ 8pAXS9Su1zN1HWnOjvhldAIJzf26IpPPlE1t96U2OYqqKxok0LqXzQOyWtSCVXmVHq/F tus6zfeRcMpOO/twsbYPCZyZTWj1FAigm6NSW1r/sxFJcMp/SYvj0ielPCr88ER6wbdp L1HEH5idTlI6NYelEmagyCzOQRtlUmWfkYRCXWz0NUCBPCY1xh1fA68o5lWWBjtyjeVX +9nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728393886; x=1728998686; 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=XhbMmUoWo3/zvp7G/59KJQeAgDJ+vsC5ZPtz/E2u9XI=; b=rT1LTqcCnwFa8iN7UfsgScubtwj8BuPZPx8DrllZNdR7xKSQHfXZxmxfT0bhb+PAos PZKuwhRGD3f8DKVijw/rxa+UbcFJ7s8rwj5MOI0zpUXLW9hfXVdw76v7cM+qsVZcWNld 876R0E7JkrH+QMDYvMHVlyS93Jhofzi2bgg4nx6dtQkYCOmQAqGyv5Ag38NfhHPv+40N uZql88IBc8QzoL2uzKAKj7i+4nx6JN6dGGdllx/rGvFj5uyyngTNakYtXWHF3uBvEjrt RuMixIONTf3MHc4ZtuH49ld6Cd7GOBLfHmEU/Ze9XVYJjxR9cF6hQiTtrCWo2F9AxF+c g91w== X-Gm-Message-State: AOJu0YytlSgLha+w15CBLWh5MImWydyOOJKSh99B7Zn+1u1En7HxE95e lxXqIzmcgIncsXiUxJJ4iw8fHyBP67/r+cIx0GvVkuFLD+biFoiqPD3zalu26Q3Zf3cycMGgKuc 8/T93AA== X-Google-Smtp-Source: AGHT+IFdX5im5rb9jMiCfvgZ7JGWKpNfen1WEqVYZDLTm6YcuxpwPtkPiRWv4PsLbrz3QkBtnrepmg== X-Received: by 2002:a17:90a:4bc6:b0:2d3:ca3f:7f2a with SMTP id 98e67ed59e1d1-2e1e62674damr15759708a91.22.1728393885672; Tue, 08 Oct 2024 06:24:45 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e20ae7177esm7597909a91.3.2024.10.08.06.24.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 06:24:45 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 1/6] Use Linux 6.11 in build-many-glibcs.py Date: Tue, 8 Oct 2024 10:23:41 -0300 Message-ID: <20241008132440.722309-2-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008132440.722309-1-adhemerval.zanella@linaro.org> References: <20241008132440.722309-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.0 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 Tested with build-many-glibcs.py (host-libraries, compilers and glibcs builds). --- scripts/build-many-glibcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index 5ee45011a1..f81e6d9aaa 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -831,7 +831,7 @@ class Context(object): 'gcc': 'vcs-13', 'glibc': 'vcs-mainline', 'gmp': '6.3.0', - 'linux': '6.10', + 'linux': '6.11', 'mpc': '1.3.1', 'mpfr': '4.2.1', 'mig': 'vcs-mainline', From patchwork Tue Oct 8 13:23:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1994266 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=INEBgfjp; 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 4XNGyD6QjPz1xvB for ; Wed, 9 Oct 2024 00:26:44 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 274413861826 for ; Tue, 8 Oct 2024 13:26:43 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by sourceware.org (Postfix) with ESMTPS id 959E1385DDE6 for ; Tue, 8 Oct 2024 13:24:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 959E1385DDE6 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 959E1385DDE6 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1032 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728393891; cv=none; b=Y2zV+a7USbtWlaSiniVm85lPJGM4wDYjVrymOMgn38AEl5mFP3Q2YsCM1a99NMzV7RVwFxn8mDBByHBqUiBdRpyBMffY4C0ohqgBWOVrIjKaqrplc2jQwkULOZxZ8xM33WlLbLbpTemtH18qW8J0Trr+ChqU0lkkXPsVhF6mDl8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728393891; c=relaxed/simple; bh=ckyN3rNhKXrddT8rtBj1a2+4KTOpxpNss6wVzadhOQE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=u2YLx/0TeY6pX41a1LfHy2t869WRHfEldD5Skm0Ad1bpA9Xjf2ZF/R/bLfU2ZGwlMgNThuHcCwngNRXWenFY9nwsjXKIJjAj843ZQWZ3NdGqQFrN9ENIfr07GIuwcSW/sUE/SPPxzafroTnngP//GSbbqy3YZSRKVK3jyfPvjks= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-2e2976fca23so35897a91.3 for ; Tue, 08 Oct 2024 06:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728393887; x=1728998687; 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=+NIvwP6gzllpuEAk5/NllswbuK5hrAAvAUt1JtGsxJ0=; b=INEBgfjpenHXnSk5ydBI83ct3lV8JXZHwG4W2ScbWvl+EYbvjzCnF8pD80wHXrjR71 g2KYv8WZdX6mIBiTxk0C1WFVObTbaoMhcUZAjb7fWGtw3s45IhOhRX0qrbKSJy/2Yxki gs7Nk9AYb5ZoFc2zwpDmtpEiaUAXrzjQQhfvapi+6UtrEG3zm6ZXYv37QNp+bAysACJY 4r4FOhZg1YsZQNoH94wVMZeEXnMha71K7tN/WyjxaNgB9c2WOchfueoqe18QsY5Vw2Vh 6vFJGpS7dCxExwt56bCD6BHk9pQ1x0No92SK7G/jmmduWaEDru2cifUKkNqCkSIM+1Tx RnrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728393887; x=1728998687; 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=+NIvwP6gzllpuEAk5/NllswbuK5hrAAvAUt1JtGsxJ0=; b=Nn0tG3NNaK8e6g4QCAnjifnuyAw41XwNHrBqaPucDW+BoFHzj8BtAHUnzq6pwqDGHc Ek0lYyFuWKBfjSoWiaiU69Gb/Am6Is1GapPbgbLRtmmh+FT1QeNOc1Yv3hzKgXxRA660 GzaHVjOuRx2W13xmhlaH+onx6y6978b3qfFlfFpQcS7M4XDNDBWLWYvRjhQosPcooyYX oPAshiaMFMQASqQCpOkDNWaWCAj7gYgUM4z6o0PAUZk3p1EfF+ca5yMHEhHmeNkSKJmI ZDD8PtXTUw/fEdZLlI+NMvaL7kW2ZHUlDyodSJUcTRj80OyGbaSM/KZFPxBvoMpM5do3 dI5g== X-Gm-Message-State: AOJu0Yw+3GvhLFUehbh1ct/c6f1kZShYuwSDO2ZAH1sjM54GaCiTDlOF MWlKEyO7cyc9C3dRA/f7LbKDF1AOh0mddv6sELi+e9p3k3+H9u1/g6VjskFW9+rWyOfMmVxpMXx 56kMZ0w== X-Google-Smtp-Source: AGHT+IHCthiS+IX5RQx+lC/BJFqfKWjDahCeYAvdI2Zm+/f/IOlw807XRCqDl7Q0ptnzYw+8hW6Odw== X-Received: by 2002:a17:90b:68d:b0:2e0:8e36:132 with SMTP id 98e67ed59e1d1-2e1e6213580mr20686566a91.3.1728393887040; Tue, 08 Oct 2024 06:24:47 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e20ae7177esm7597909a91.3.2024.10.08.06.24.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 06:24:46 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 2/6] Update syscall lists for Linux 6.11 Date: Tue, 8 Oct 2024 10:23:42 -0300 Message-ID: <20241008132440.722309-3-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008132440.722309-1-adhemerval.zanella@linaro.org> References: <20241008132440.722309-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.0 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.11 changes for syscall are: * fstat/newfstatat for loongarch (it should be safe to add since 255dc1e4ed8 that undefine them). * clone3 for nios2, which only adds the entry point but defined __ARCH_BROKEN_SYS_CLONE3 (the syscall will always return ENOSYS). * uretprobe for x86_64 and x32. Update syscall-names.list and regenerate the arch-syscall.h headers with build-many-glibcs.py update-syscalls. Tested with build-many-glibcs.py. --- sysdeps/unix/sysv/linux/loongarch/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/nios2/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/syscall-names.list | 1 + sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h | 1 + 5 files changed, 6 insertions(+) diff --git a/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h b/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h index 8bb82448a7..7e732256fd 100644 --- a/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h @@ -59,6 +59,7 @@ #define __NR_fsmount 432 #define __NR_fsopen 430 #define __NR_fspick 433 +#define __NR_fstat 80 #define __NR_fstatfs 44 #define __NR_fsync 82 #define __NR_ftruncate 46 @@ -166,6 +167,7 @@ #define __NR_munmap 215 #define __NR_name_to_handle_at 264 #define __NR_nanosleep 101 +#define __NR_newfstatat 79 #define __NR_nfsservctl 42 #define __NR_open_by_handle_at 265 #define __NR_open_tree 428 diff --git a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h index f94e212995..b1d0fb6f6e 100644 --- a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h @@ -24,6 +24,7 @@ #define __NR_clock_settime 112 #define __NR_clock_settime64 404 #define __NR_clone 220 +#define __NR_clone3 435 #define __NR_close 57 #define __NR_close_range 436 #define __NR_connect 203 diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list index 7871f93b94..1e14572045 100644 --- a/sysdeps/unix/sysv/linux/syscall-names.list +++ b/sysdeps/unix/sysv/linux/syscall-names.list @@ -653,6 +653,7 @@ uname unlink unlinkat unshare +uretprobe uselib userfaultfd usr26 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 5d86e75dd5..dfc10d0c7e 100644 --- a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h @@ -359,6 +359,7 @@ #define __NR_unlink 87 #define __NR_unlinkat 263 #define __NR_unshare 272 +#define __NR_uretprobe 335 #define __NR_uselib 134 #define __NR_userfaultfd 323 #define __NR_ustat 136 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 6c35068d8e..9340daa967 100644 --- a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h @@ -351,6 +351,7 @@ #define __NR_unlink 1073741911 #define __NR_unlinkat 1073742087 #define __NR_unshare 1073742096 +#define __NR_uretprobe 1073742159 #define __NR_userfaultfd 1073742147 #define __NR_ustat 1073741960 #define __NR_utime 1073741956 From patchwork Tue Oct 8 13:23:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1994267 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=J5Zgc0Gk; 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 4XNGz34z66z1xvB for ; Wed, 9 Oct 2024 00:27:27 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E0015385DDD5 for ; Tue, 8 Oct 2024 13:27:25 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by sourceware.org (Postfix) with ESMTPS id D8D7F386183C for ; Tue, 8 Oct 2024 13:24:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D8D7F386183C 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 D8D7F386183C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::531 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728393891; cv=none; b=okVrms24SZXIHQRoB8U+SawfIEzGvSo6Ibm+X/AihCFI1vgH7avacXrTtVxqnn3wqbzUN/HbZF5nnR1s1x1bxTotu7hxnqwQJuAlcvKjKvW9Xn6ZFoejuJFLenrul5t5NRLrehx1KLmXI5fofym+Vu1UQ4ZuqVkCR5IdBfQ39WM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728393891; c=relaxed/simple; bh=8zS3JnIflNr7nxtYcvVvptL9klXXFKQrZY/NSxgjUGs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=fqz1cbvqsQ5XE+ErXqjRIrACxHptkUDnIvjWCHYHB3DV6GuWjuE4pJjf44Y77wXbY42SGf6Nv/VUAzlnd4HSxf6LA4PxMF6MK0qYw9mJAtepbOv28I0OFEzcA54myGLceCU6qTAzpl+9hXxII5lo+dSQpdgjsCUS9fZSgHAYfJE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-7db90a28cf6so4438602a12.0 for ; Tue, 08 Oct 2024 06:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728393888; x=1728998688; 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=pIfDF5IYzNqpy2LocItfhplNquXy0LOTR387eukWeuo=; b=J5Zgc0GkkbpG76R+YAyyfPUcnCUIemz8DxfXIgKW6i6gWMaKBcEFVR4sddRry561K/ 0EFO74Z/Hg6ydQhX3zkWGEfY6ZPXG4upsCgKoX3oT9PP+ENAFgY7rdqC+iowwEpsBGwG eWV5gbtHs747pPvtkxLTrhylXFGduMgAvWq5/zz7nkuzfYyNUTj8CTWIQdgkvLzqlYcj DRuGrytKP4QKd7XjnZxq3MLxGvSMMzS90TmSGEuRqgBfJiKmFUtQC+iIJL7ixgEBijox YnXw0UNjfuqw6wZBEhfzOq37MpW7RUFHo32ZNPd8vYy5/3SHVQ75H8Vs+r9PGVaHpsoC B1sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728393888; x=1728998688; 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=pIfDF5IYzNqpy2LocItfhplNquXy0LOTR387eukWeuo=; b=w4gkpzLn0d04aiuj+m4tvOjSc6AXOidQEbcAmtyTZnQop3B8e7g5zLmX644W6/lmza Jk19z/74Av8RqVjVx0GM5GdfPM0+FZx+ZMDg+KwI473XA4vdmOJ2jxfJictqpJHXyFwl vnSL064iRJJ7cSB7jrz0Ot1aLcW0qM3fE6sopiMi67sqI9ZqXwhm2VyRXmzWd1E9b/DH qEuVPStjW0LThl+h6u9r8O3714aeLTA4AnGeRgS5h4A/FW/ZdWYi3KKsx8lP1L1bIZVH F7ro2fhwIJRrCoU4sUtt/q5MYAAhrGz0vPxb2u+DwMjxjkLXyC8G9I1BTTzhPGWPg1TN IWtA== X-Gm-Message-State: AOJu0YzLsYmlLI+B5bS7UmvEVQOLdsBMkuRN17dwxK64Cv2wUkBDkdRc Z96ifiM4xbngcMtNmEbVivHcvtu2Q5abc8+bZvUCzwQf0lQXBy4VYxX82vvTHCzzOokWgxl93iF Dn2atmA== X-Google-Smtp-Source: AGHT+IGOpsm24DsWmaF/dU4wAgfWvWV3rFqJ6iit0DzKYjBAGqA0c38v1GI9b6IUe8oM/oJKeyKIJw== X-Received: by 2002:a17:90a:e795:b0:2c9:5a71:1500 with SMTP id 98e67ed59e1d1-2e297832a64mr201840a91.0.1728393888526; Tue, 08 Oct 2024 06:24:48 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e20ae7177esm7597909a91.3.2024.10.08.06.24.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 06:24:48 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 3/6] Update PIDFD_* constants for Linux 6.11 Date: Tue, 8 Oct 2024 10:23:43 -0300 Message-ID: <20241008132440.722309-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008132440.722309-1-adhemerval.zanella@linaro.org> References: <20241008132440.722309-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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.11 adds some more PIDFD_* constants for 'pidfs: allow retrieval of namespace file descriptors' (5b08bd408534bfb3a7cf5778da5b27d4e4fffe12). Tested with build-many-glibcs.py. --- sysdeps/unix/sysv/linux/sys/pidfd.h | 14 ++++++++++++++ sysdeps/unix/sysv/linux/tst-pidfd-consts.py | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/sys/pidfd.h b/sysdeps/unix/sysv/linux/sys/pidfd.h index 9f88d297e8..85d976939b 100644 --- a/sysdeps/unix/sysv/linux/sys/pidfd.h +++ b/sysdeps/unix/sysv/linux/sys/pidfd.h @@ -20,6 +20,7 @@ #include #include +#include #define PIDFD_NONBLOCK O_NONBLOCK #define PIDFD_THREAD O_EXCL @@ -28,6 +29,19 @@ #define PIDFD_SIGNAL_THREAD_GROUP (1UL << 1) #define PIDFD_SIGNAL_PROCESS_GROUP (1UL << 2) +#define PIDFS_IOCTL_MAGIC 0xFF + +#define PIDFD_GET_CGROUP_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 1) +#define PIDFD_GET_IPC_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 2) +#define PIDFD_GET_MNT_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 3) +#define PIDFD_GET_NET_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 4) +#define PIDFD_GET_PID_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 5) +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 6) +#define PIDFD_GET_TIME_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 7) +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 8) +#define PIDFD_GET_USER_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 9) +#define PIDFD_GET_UTS_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 10) + /* Returns a file descriptor that refers to the process PID. The close-on-exec is set on the file descriptor. */ extern int pidfd_open (__pid_t __pid, unsigned int __flags) __THROW; diff --git a/sysdeps/unix/sysv/linux/tst-pidfd-consts.py b/sysdeps/unix/sysv/linux/tst-pidfd-consts.py index 9824fd214d..9d53102cbd 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, 10) + linux_version_glibc = (6, 11) sys.exit(glibcextract.compare_macro_consts( '#include \n', '#include \n' From patchwork Tue Oct 8 13:23:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1994262 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=v0prkYmw; 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 4XNGwp07nYz1xvB for ; Wed, 9 Oct 2024 00:25:30 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3D69F385842D for ; Tue, 8 Oct 2024 13:25:28 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by sourceware.org (Postfix) with ESMTPS id 35054386103A for ; Tue, 8 Oct 2024 13:24:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 35054386103A 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 35054386103A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1034 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728393892; cv=none; b=NqtULNbsY1+THa9b0o2nd6UUN2FChZNBIjVj67CgE3DCJjQIzALd91uEn67bvEguOYutZ8w2qLYBJnpGtTzzjz+QGhTfQEcxp4rPOFdNL+CkKnbnrG8DFlu1KLwxygzIai+zT9lOSZ1pXQNUjhr8eHdtWm0y0gogV7dhJXg8OVo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728393892; c=relaxed/simple; bh=7llJLpK7Zj23q1plURzhaBxE4qKLYKfhoEYl7BmMhcA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ZUgw6E6KAlsDp/UUcHVNF6Y7cSG2qIuiHZBJD+SfPyUlKOUs0ABDymVc48aHWojqmRTZGgmUCpY4ToCknH/OnDxee0tYLRTYEKPKz7r+lbrzKaOGKomYNJyKM/+anuOxJmzCT3WRjt96d7XItLVu39F4BJZtTC+mV+Zo/ClBnAc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-2e284844d5fso508526a91.1 for ; Tue, 08 Oct 2024 06:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728393890; x=1728998690; 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=DqbyCGFCddIJMgxMr7/WIlwlVLwG7uYDazmCVMEFeYk=; b=v0prkYmwdvOQvaCrNmMX9H6kbrR7V746bqE+IZ/oLqECpC5E2S6aidW3X3JAruqKcW liniuiidIRCCC6OmbLUCqZpn8VdiRUBNLPz67mhhVfQnt9v8gZ2hmXY3zDIiCNr6miSY WaDDGusSE5lklewE3+lhcAZQdXAvO/P8E9eFryfFfwlUHsW2NB8UU+7k6I58pmN34STN GIy+ZSlvQ8SC1j8W1SNKf6Ziw1XTVsM35HwJUIGX+6gx+pPwWtatAOijQ+3m2ilYCp71 6eq84AIrLQRvIWOR9EUOSoJM5aH8hkN72mDit3wLwDT+o9/Rlr925sAxEww0bNGoYTTT VgbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728393890; x=1728998690; 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=DqbyCGFCddIJMgxMr7/WIlwlVLwG7uYDazmCVMEFeYk=; b=kC+lNA4dd4Frproi6zYM+RFgJlj6a90aBUblltRzSlOB5zhNHlZZszciopHs+xdL0a J63RXR+14rhtKlVwUnb9yTWdjcKkFvynp0uhHT4qgssLrBssLFXuzL/idHP62SH0pdTn nN0wtOebyDL7tOemQgHq1xPUJNcihXmwT9hG2ZEcugCjy+9nzu9abiRchFwStUZSRT7w dcC/wp++aVAjNw8pnWHvdHWMcTQWIJZWIHhwoMPw3FdKYSg0+8ka/3nhNfewAKfJjIYj yZ4p1XFuCoAe5pxnxE3mUeyxsMEzgOYiWmOPYmZyzfibEE2IrI+dHVEWPjXzkV1PVR5U 0hpQ== X-Gm-Message-State: AOJu0YwdReas41qFMPkDSRx7nFmb/naFTKXUn4tWPim11QpkHP569gzI SYkX5We8YNyyv//cw8UgLGY58J3exkhTIpvBvtRlJFM18ZooetYsrGtJxOy+LK7wdCyUbgn5x7s VrvCncQ== X-Google-Smtp-Source: AGHT+IH1IyUtv3MfxoBP/ie+Kst2z9RHFtMIaByS/3oYfrFH7wsnnusr9S2r7foJ3l1J9Tz66H+5OA== X-Received: by 2002:a17:90a:cb10:b0:2e2:9522:278f with SMTP id 98e67ed59e1d1-2e295222a70mr490630a91.32.1728393889925; Tue, 08 Oct 2024 06:24:49 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e20ae7177esm7597909a91.3.2024.10.08.06.24.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 06:24:49 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 4/6] Update kernel version to 6.11 in header constant tests Date: Tue, 8 Oct 2024 10:23:44 -0300 Message-ID: <20241008132440.722309-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008132440.722309-1-adhemerval.zanella@linaro.org> References: <20241008132440.722309-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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 This patch updates the kernel version in the tests tst-mman-consts.py, tst-mount-consts.py, and tst-sched-consts.py to 6.11. There are no new constants covered by these tests in 6.11. Tested with build-many-glibcs.py. --- sysdeps/unix/sysv/linux/tst-mman-consts.py | 2 +- sysdeps/unix/sysv/linux/tst-mount-consts.py | 2 +- sysdeps/unix/sysv/linux/tst-sched-consts.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdeps/unix/sysv/linux/tst-mman-consts.py b/sysdeps/unix/sysv/linux/tst-mman-consts.py index a1137eb1d5..2191bea36f 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, 10) + linux_version_glibc = (6, 11) 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 675f1790b6..b71d8a489d 100755 --- a/sysdeps/unix/sysv/linux/tst-mount-consts.py +++ b/sysdeps/unix/sysv/linux/tst-mount-consts.py @@ -42,7 +42,7 @@ def main(): # Constants in glibc were updated to match Linux v6.10. 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, 10) + linux_version_glibc = (6, 11) def check(cte, exclude=None): return glibcextract.compare_macro_consts( '#include \n', diff --git a/sysdeps/unix/sysv/linux/tst-sched-consts.py b/sysdeps/unix/sysv/linux/tst-sched-consts.py index 70071dcd97..f06ac400bd 100644 --- a/sysdeps/unix/sysv/linux/tst-sched-consts.py +++ b/sysdeps/unix/sysv/linux/tst-sched-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, 10) + linux_version_glibc = (6, 11) sys.exit(glibcextract.compare_macro_consts( '#define _GNU_SOURCE 1\n' '#include \n', From patchwork Tue Oct 8 13:23:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1994263 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=zf+ONrPU; 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 4XNGww3QY3z1xvB for ; Wed, 9 Oct 2024 00:25:36 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AA862386181B for ; Tue, 8 Oct 2024 13:25:34 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by sourceware.org (Postfix) with ESMTPS id 97E57386181B for ; Tue, 8 Oct 2024 13:24:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 97E57386181B 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 97E57386181B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::102e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728393896; cv=none; b=DOQmUG7VCzHEvzGuO0el1cf/7n3YneJOBRnCND0v+hEOrL4c7LNRP1kMpfIyAPkOcpyeCFVh6zazz6uzi2BCf/pjg6hpMqfsVnXb7ycQ9p3/KTvX0qpj7yf7KXETFVXxXLWbTgaw4iOYT0PMddG+6EG/04DL/GyPKMvfb4R/aes= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728393896; c=relaxed/simple; bh=2g/P981TUc6R+yy6+GAmKpkz3BLO80TRsSY58npbtcA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ebKdjS1ZbYDcKvUsYX8JeCS0vqNV7BI8TfU0Lvyd7PtYj8q1c6a9/KLgJjJFO5qyptdeaKK5gsp3sa6ekXWkaZc4NzI0ESE5PGzLSVQ4vXgR4+A+jf6Jw7kSblspzzZyQ/FH8Wv0d0v7nNv1YHEDDVgU31umCSmlKIDl1eh+IUA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-2e09a276ec6so4338215a91.0 for ; Tue, 08 Oct 2024 06:24:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728393891; x=1728998691; 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=ukGO970JtVyRXbCaEr+m+6DiIR0vAZimisyh0fhZdU4=; b=zf+ONrPUXvPIAZPdYWrdTCJt83Rw4G37PdzeF6/CBWGOCXiZRAn7a4POYV2Z444cpA 3Wq5APnL37GLV1qaO1xg0EiMoNCpPNuSXIBKFPZB9IAF6O6pXRAbWhWKBjdhEaPg2/KS 9IEoccQNqytyVZSB5cGK6t5jvgoiFFMywsTkZkat+edS51L4s3dhQCgF5FaRqq7FoGFk o3FDuHzeiJgK8hVjdINCOQLtXKQeWoeDsZ+xTgVr/xLeLrdh7Oeu+KbRq6cVH3KDhFL9 uKE3HphBO7K5//avNSFbvIw9/6NC6a/RurjIjXjDo9UhJdX3yRfuQ8JmrgpYDMYt9USO xz8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728393891; x=1728998691; 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=ukGO970JtVyRXbCaEr+m+6DiIR0vAZimisyh0fhZdU4=; b=bZf+uxXgWPSlv7+oNXZfh81wKzodMIEJ5RSY5d/cYchn33g4NO+VAzhFSr4SmCtrBF VOuCsgtpsiTrbAmA+BRf8ryG7LI2PcO1C1naYN0k+mCrIOQIqSYOaMLce/soGibiFbI7 tvDEkQ68k+ckAoErNeSwRM98qtZpr9PXqDkgzEB5LWefXmD0H0yHUD4CRAKHghNwaVrt JSFXgaS21f3SdFahlSs1WuFHS5IRbeh6hf1lUXhZmDzflPJPcnMWzQ4JmfX/uMRzESeb t2TOJPOlxgOnjkKE44nERFCxW78fGmZwQMnT6qhE0sF33vloCmCLrZWku5n36b3eVVvk 0uTA== X-Gm-Message-State: AOJu0YyPBiJnMg3JEZe10Dfsv9KNhAd+w1VXtmrwTM9YvTcx34y48CSN YwzdSwMrZE2jcN/olMY0w15oVEsNlFf6YDxWca15/giQjOm0zHb5DH9TUP502vOsLgh9W1lkc15 H9ZgZrw== X-Google-Smtp-Source: AGHT+IHQhz3m2s5xWnIeOupoR12SCiFdpK2UBFc5ddFjr+QpCbP+u8AF2a+1/ADM1Kua7N6pVwCdWQ== X-Received: by 2002:a17:90b:4b12:b0:2e0:b65b:6b4d with SMTP id 98e67ed59e1d1-2e1e63b4286mr14510982a91.41.1728393891271; Tue, 08 Oct 2024 06:24:51 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e20ae7177esm7597909a91.3.2024.10.08.06.24.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 06:24:50 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 5/6] linux: Update stat-generic.h with linux 6.11 Date: Tue, 8 Oct 2024 10:23:45 -0300 Message-ID: <20241008132440.722309-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008132440.722309-1-adhemerval.zanella@linaro.org> References: <20241008132440.722309-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.2 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 It adds the new constants from 'fs: Add initial atomic write support info to statx' (commit 0f9ca80fa4f9670ba09721e4e36b8baf086a500c). --- io/bits/statx-generic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/io/bits/statx-generic.h b/io/bits/statx-generic.h index 19c3565edc..da199ddaa1 100644 --- a/io/bits/statx-generic.h +++ b/io/bits/statx-generic.h @@ -44,6 +44,7 @@ # define STATX_DIOALIGN 0x2000U # define STATX_MNT_ID_UNIQUE 0x4000U # define STATX_SUBVOL 0x8000U +# define STATX_WRITE_ATOMIC 0x00010000U # define STATX__RESERVED 0x80000000U # define STATX_ATTR_COMPRESSED 0x0004 @@ -55,6 +56,7 @@ # define STATX_ATTR_MOUNT_ROOT 0x2000 # define STATX_ATTR_VERITY 0x100000 # define STATX_ATTR_DAX 0x200000 +# define STATX_ATTR_WRITE_ATOMIC 0x00400000 #endif /* !STATX_TYPE */ __BEGIN_DECLS From patchwork Tue Oct 8 13:23:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1994265 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=S4pX7b6C; 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 4XNGxl3qb6z1xvB for ; Wed, 9 Oct 2024 00:26:19 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B338D386182B for ; Tue, 8 Oct 2024 13:26:17 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by sourceware.org (Postfix) with ESMTPS id F1F763861839 for ; Tue, 8 Oct 2024 13:24:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F1F763861839 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 F1F763861839 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1030 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728393896; cv=none; b=HfQ+XzOnUXZyMeiLbXQ+yaQB7T7KSmDXILAG3auwjissV+0qhF+aCI2sY3oCN3dbQ3bBdfUofKfsXea422CF/IFlwujy/zAmoGjceXC8N27hLk99RnPDDDIpnmLfl1KtfkYDd/HzsFbV6NsEKZhEcohOmEjAkKkpOJVp+uAkDMc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728393896; c=relaxed/simple; bh=fgd82q6X0bInuvp1Bk+vVjE/3khMSRLm1PG8fKgdTFg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=MeCaw2Zn0mYHVkbAM6xKsV1HDVN7Yd1gGOfAKe6AZ62Z90E8MOdtp0ou9u38qdwFcrFKJHf4u1qEL+B1dYmoMdaLgyd1HF1mXjHD8fBDx/P00HK5LyE6Bglh51GzzxHUKa6+Qh07H1A0AsJBa/rr1J3niONvelzzPIuDBULkVUM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2e2916a92ffso274109a91.1 for ; Tue, 08 Oct 2024 06:24:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728393893; x=1728998693; 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=UFOWrTvUvTPPO3aHRMJ7fQ/rfyXcYKEKa79Bp/GFXCQ=; b=S4pX7b6CZeS0elHcMcTRJjD2vXReURvBSf69fyQlG00+7x4XIfSMwvY72PfAEBmTaR lXJrZ0SH5sp4ApXAvPStAtXTzT/kC1M7Pa9Tqg4AJC4cWqvmeYKuzy53I8lLzzX8MUR7 kykS7+Zd9uuZyBZ+RMoxL6fCA2vj4WNhgjSoicupfp5pFADsk0YfaVvJAQMqJeH1rACO Y2cBiwRnhysSv5SSXN+u4rW1o9iYbWxsU49ybDYvR6qlOVtgTeGtPgEL/u4ARN9thz8K 2ruwAuPSftSfmCzLvCR8+w9GJFx5t+BH1ADN32vbPgP3FfIL+LlcFyw4W+azIJ4BrUaC L0Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728393893; x=1728998693; 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=UFOWrTvUvTPPO3aHRMJ7fQ/rfyXcYKEKa79Bp/GFXCQ=; b=hi1z0vYroUAmtAs55oo/pLvcuqCasG++q00Yv1q/vmphab3p+x5SMS3wJ4Q4l9mn7A KsvuVWKeOM2PjgnokMb698hbc3nPohc4yuwGn7varWY1VNvb2RN4YTTaYIMWZfU+yiXZ Don76UlBG3P87+ALlvmiZBtjqD1zELw/LkEowqPJRXevMUrKzHlX5ig3egOkmVFUEVi0 vGbNh7Hra/D+2vViH/QAZVA/B3K4LlfHb0qvc65HnPDfIqrDz66HQ7ZSQemjfgO86/c7 uB01MWzjdKteJ7rodZzuHlsw+APebXufSm6gSISl1DNMrPTodMu/mu0vaiBd1lMbyPsJ ZHaw== X-Gm-Message-State: AOJu0YyZBcTP7AZ6McEuXnQ5pyeJBq3mlTvFyS+KhxaNyuFmWrtlWpLl oibHiiE8fI01bnBHqCkoLPO74IXaoAnhNS2zxujlVvXBkXV3Y5qseBsndfcW7hLCwErsr6SxfSf ezp6coA== X-Google-Smtp-Source: AGHT+IHN/y62I+Jhh1eGF+7MVlF3KEAxvzraZ2Ub2M5l4nS/fY3bD4Asv2RU/3pjvMXpCxZnKQN0aA== X-Received: by 2002:a17:90a:c287:b0:2d8:7edb:fd2 with SMTP id 98e67ed59e1d1-2e1e6267484mr17993845a91.22.1728393892663; Tue, 08 Oct 2024 06:24:52 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e20ae7177esm7597909a91.3.2024.10.08.06.24.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 06:24:52 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 6/6] linux: Add MAP_DROPPABLE from Linux 6.11 Date: Tue, 8 Oct 2024 10:23:46 -0300 Message-ID: <20241008132440.722309-7-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008132440.722309-1-adhemerval.zanella@linaro.org> References: <20241008132440.722309-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.2 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 This request the page to be never written out to swap, it will be zeroed under memory pressure (so kernel can just drop the page), it is inherited by fork, it is not counted against @code{mlock} budget, and if there is no enough memory to service a page faults there is no fatal error (so not signal is sent). Tested with build-many-glibcs.py. --- manual/llio.texi | 9 +++++++++ sysdeps/unix/sysv/linux/bits/mman-linux.h | 1 + 2 files changed, 10 insertions(+) diff --git a/manual/llio.texi b/manual/llio.texi index a035c3e20f..c8e6e07ea0 100644 --- a/manual/llio.texi +++ b/manual/llio.texi @@ -1762,6 +1762,15 @@ write dirty metadata out whenever dirty data is written out. Unlike most other flags, this one will fail unless @code{MAP_SHARED_VALIDATE} is also given. +@item MAP_DROPPABLE +This request the page to be never written out to swap, it will be zeroed +under memory pressure (so kernel can just drop the page), it is inherited +by fork, it is not counted against @code{mlock} budget, and if there is +no enough memory to service a page faults there is no fatal error (so not +signal is sent). + +The @code{MAP_DROPPABLE} flag is specific to Linux. + @end vtable @code{mmap} returns the address of the new mapping, or diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/sysdeps/unix/sysv/linux/bits/mman-linux.h index 522333c50a..161a885096 100644 --- a/sysdeps/unix/sysv/linux/bits/mman-linux.h +++ b/sysdeps/unix/sysv/linux/bits/mman-linux.h @@ -43,6 +43,7 @@ #define MAP_PRIVATE 0x02 /* Changes are private. */ #define MAP_SHARED_VALIDATE 0x03 /* Share changes and validate extension flags. */ +#define MAP_DROPPABLE 0x08 /* Zero memory under memory pressure. */ #define MAP_TYPE 0x0f /* Mask for type of mapping. */ /* Other flags. */