From patchwork Fri Oct 3 19:38:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 121223 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 518573857B91 for ; Fri, 3 Oct 2025 19:47:49 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by sourceware.org (Postfix) with ESMTPS id A596F3857B9E for ; Fri, 3 Oct 2025 19:47:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A596F3857B9E 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 A596F3857B9E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::102d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520834; cv=none; b=RPFY8s3Wj5UAC6OQDYmGaRdJ7e0DkzxrlRSFY5FbQp/c5Q9tX1fgU9f9UNVdBVNIhJi3ERUMqLBCmHIrZFoL7YxNKZTXJtCM4DeWYn4nLNFvl+NgwQzhHB3GIfk20FkaJLM67Tokme8DvAY5Y1/rxHYHVOwPuwJALVBGjPSAL/E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520834; c=relaxed/simple; bh=T6jcaYZ+Pm0MHUxBr9+Ibn1StQAaaABp2ASd+OtXrrk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=BvtSO9s3XOc3fHFBAWUqZrQ7v1O9gXt/qh4qP+CQETbWj0knIrWVz/tKmC+vCMFrWsHByvoBoHIErfgeTLpvvNH+Z+0CJEBjsyOhbAFZa5EHZTqfm6wrWY1BvYv2Ku1b3ddKBwJPZabPsiplhKiB0sZH1COpnxu2XFD5zPvJHB8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-330631e534eso2867693a91.0 for ; Fri, 03 Oct 2025 12:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759520833; x=1760125633; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pu/m31/YPiCn+cYIROIRSyT7y/IOg7OW+qepoRs6/HQ=; b=lJoS7RUoNNbFK8SdI2o0IofI2JKlhamgMREPu1GTYmOJXdGdfj3OlJXoFfg2PH1kJl L1f146gWiPm12l9sEp/Lag6d+M4xuq4QpPmdRE0b0C9ffatmuKvH14OQ3FDZ8Z5FsRVU 5FMr1XAvWd8mYG3BM604RqFhk1uG5Vxh477QGODtzr6fS1yfaCwu417AMn9OCg+cmfev EhZaVHAXw1PNn04h9+PO78yrRUK/l4/LAdpAvNTUJ8sEMDS0ayKJEmIFpQz0BvAPAulL NIBjNUJjTFlUCMnGfv/HzrsYQENBq1YkuzgzWv3xGXbYCRNR0nB4o/Sw5cdGQftEPqmK SprQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759520833; x=1760125633; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pu/m31/YPiCn+cYIROIRSyT7y/IOg7OW+qepoRs6/HQ=; b=bBJEx9hkNiuxs3cVQD+Sm43lshZ44gDg2UUhszlcQ4yxa/L1XGao+xizSZfjxl0+0H j0QYNzXSqqmoAz2oDL7pw98XlIUlnNHyzOXl8MV83UrP86lL5Es9pbdHepiJ4c13fP8m ynBvM/L1KdyRVrRH5u97DGfxg3btMPuAA9uApCZ/s5JFq0YQBLqB+AnAOBqHeIi+VoL9 22LdVgCq2RHl4+Uby8sXLcAnRWePZz4x8tsd9Wc5KlhjaYzCikxPHHf4EQRDIrkzxHDL Q2LHdLJv3SYwAhMoqqX+k1s37eT674cUK2GSY0yY2NDKNYYUATV1kt7WGBqMtGb1CHQI Exew== X-Gm-Message-State: AOJu0Yw38jZko17u3YOwbkk2ESKYoGEQWm88piKJPvVbb7B/s1geC0fF PS89budHLn6uZY7Kp4T5j2kxiNOHDOm9cHX+4vR2oNezQyP/5XwAbZNqCjDiXaMWwckaMhKPbDj mg4hP X-Gm-Gg: ASbGncujOKtMNTgX0li7BoKf6TnPnXLO3FeHbMoA9ma7x8Q46LEhn+N3U3ZDYEJeNY5 Cud+OGMHSXVaaSzHUbvTfklxgaCxNmV4MyseRivso79ke9LW8Ipo7yt5ZceN5aSdLLr/6Ei0bKv b/uCxY/yI7z02Ku5WtOfrmB9VpUgT/aaIZVkgpvkPit+TCpcIF8ugUZK+Nolrk534y+Gmag8vS6 kGZ+DZVeOQXOdyAMVvLhkLZQuyPiHKgR/BcpYK09bzBXC2+NcHO4zjmPIa93dHrQKvQpSCY0AHC HtFefsjyHT0PBNg/a4bz0K/u8q4Iv3pFt0fJ1VJ/ZzXJVKU2yR/M6FsEN4BTawgfYTIY5aYMiK1 k06Df47UJJFAlmMU7KHvUkrvJ7GorNrSZO7h+2H1oLBJUNZgS7g8nlEc1SB6V5YlBsr1O00pQ3J aW+g+lreufm+7FL5GKuqtBDkUQBs81v7zhiw== X-Google-Smtp-Source: AGHT+IFIlTFgB1K45M9GteCEpQqcBV+/ZPn6uybFv2IM8Gi58WkLVHgE2utXPHAm5kbi4n8vJzE9pA== X-Received: by 2002:a17:90b:3a81:b0:32e:a5ae:d00 with SMTP id 98e67ed59e1d1-339c2742d46mr4819051a91.13.1759520833207; Fri, 03 Oct 2025 12:47:13 -0700 (PDT) Received: from ubuntu-vm.. (201-27-235-151.dsl.telesp.net.br. [201.27.235.151]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b6099ad8dc6sm5332135a12.2.2025.10.03.12.47.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Oct 2025 12:47:12 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH 01/13] Update kernel version to 6.17 in header constant tests Date: Fri, 3 Oct 2025 16:38:52 -0300 Message-ID: <20251003194707.2326679-2-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> References: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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~patchwork=sourceware.org@sourceware.org There are no new constants covered by tst-mman-consts.py, tst-mount-consts.py or tst-sched-consts.py in Linux 6.17. --- sysdeps/unix/sysv/linux/tst-mman-consts.py | 2 +- sysdeps/unix/sysv/linux/tst-mount-consts.py | 4 ++-- sysdeps/unix/sysv/linux/tst-sched-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 24d5a23ad7..77dfd46990 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, 13) + linux_version_glibc = (6, 17) 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 97847755ef..8d9434545c 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.13. When glibc + # Constants in glibc were updated to match Linux v6.17. 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, 13) + linux_version_glibc = (6, 17) 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 da13c5e50b..3cff64a2be 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, 13) + linux_version_glibc = (6, 17) sys.exit(glibcextract.compare_macro_consts( '#define _GNU_SOURCE 1\n' '#include \n', From patchwork Fri Oct 3 19:38:53 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 121226 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B17B2385AC3B for ; Fri, 3 Oct 2025 19:48:58 +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 A319A3857C7A for ; Fri, 3 Oct 2025 19:47:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A319A3857C7A 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 A319A3857C7A 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=1759520837; cv=none; b=AdREHkU4lmgEL2CXwAmiyyMUdGZ46eUk5Z0lp6bjbtQt7dvdPsZXlREakIjsgmgsFtmLfcv+scm++e1IRhTGkfMZMCH0xrZTTZPoyCprplAXjWDSM/MMW7dIJsuQbRgsBc1FhdCP0JGVXCmxT6q05BblrIBKAyzdGo9uSqn9hzI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520837; c=relaxed/simple; bh=dWPslyvzOsnXcyrmfn2Rn1DWEnJwItay/sxtbTSmDuY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=UJcaoyPfbHGzq2XS+VnKfFwu5l4Uwg2eN+L1+RDNxMnULccbPlwtruDiD1feuWd1goIOdrPndCcinbaczg3Df9YuV58zvMrEcVlud7r3norGyBH2pkk3WlBDuJqfmzOgOuHtU70VeuCfYQpSa3CaYSiYwLTTZaBQUkGpmI1IdF8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-32eb76b9039so3585733a91.1 for ; Fri, 03 Oct 2025 12:47:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759520835; x=1760125635; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iM32PZpb2IeBbr31cQmiayzrsW6FRffAtdyzGu+J7n4=; b=fhdxarmHGuPvBUfeCK4vp3JfgJDt/yp9vAuYTYEa9JGqdsWsePhpAvBsHjSB134Wed UDvOlyMltH1A5To9HedJ9oA4BR5yVFrB/eBubDPubMZFh7JN/2JMBpczXPY6hg/CNYxh 2r/XY2aVbMfXZV0fRREmCXkcflH3p9I7BViujplF5pGHuy1g3gtoGScFQiagP7FvCfd2 YcFTy1qSJG/HBNV3R1pO8GAgmsB+ZRJZdFE/xES4Pn9RLcdlBOFRVlw6l/y4AdcW4+CE q8NpdlgV2itIBUGxxFnglEyjLdfMVvdw3AvUXqXp/vD2hi1JdQiKseRp8DoKNp6v6s6Y rL4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759520835; x=1760125635; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iM32PZpb2IeBbr31cQmiayzrsW6FRffAtdyzGu+J7n4=; b=jGm0EKKCMP51H6JKVc7IwfkQJGliaG//C44ofow43tU4ODFeaQ1eR0qhgs4V+ObfDT Xyhkzi+1vDAcioffKhl8LCtPG2WAy+3D6c2gfVmsP+2x8cE7UzNXkolr0dI8DgiO4rkl uOyHZiTq4bB8lp83YC2pjbsxSTT+LVaePjQ8ZsKerxFU5blF7BXqsnLTP9Uv+Y3BAEFh 0jaJ0ngmZ2tHETV8nGrBAOvOdmek4zOlHK3t3m0+GYJKOVcH5GU8tBYclL3jyjjG+w02 S81oY/U5fDqp0+O1BMBrdDE7nnWYjz+PrOkg0JLJhGmvYuRZZEzpP9sbrXFyssvpeDUO egOg== X-Gm-Message-State: AOJu0Yx4usnOzO8PKWsEqhefWPHVUmeIbzvYvCLvU5NnNLfktmzk3+wN IZZ2S/d8vsN1t17aMRTzU6bLfTjImnoMAORalLwBvpr3afnFbHy4FJMXFeLWGu9uNtvLeCrV4V9 21imc X-Gm-Gg: ASbGnctJQJwe13mzucpGni4cJv9yoLzyc5SuCb7keO6lIDDQCdGru8ymaq+DR25lsSB DNlOA2F+ld4CELr0rKuqh1rcyQkDVuxIRf/fKOsEcfU7Qoz2eaee5xFaRnonUxDlIPXVGQh/C20 DwZ2Reg1uRVr8LJfEXnMYdBeNV8FTdjkHmpIqnAmtFRuXK0+GvF09UFuJUuGQi9PH8jxdLAYPX9 ccSoyOcoU3QdBFZaVwzEswojYdT1FOvRylUMtEeOfVndF60d0dBCvXrQEXF28KnijWPNSr25j5a kix1BNc3Dvk9+zknGlF558KHmc2mP3apBnUOVgZNMxkUWNXXeQ0PfeCvDp+cUZXKVsPQMT9+ohn gv0+f4s9yzv3S2iF98ORzZuRKMm4OjMCzZDB20wXWvMZCl5uN+Ro9i2v9VCFDA3hUkTLQKzvKwV Bt1cahccGrNFxw0bKQfFssxqw= X-Google-Smtp-Source: AGHT+IFK5HrxJwVZXIwrsZ1YrBU5j3j021pkatBUgWOfHvITca200qo8ZeJ0O2rM7L08e1HkLTDX+Q== X-Received: by 2002:a17:902:ef46:b0:258:9d26:1860 with SMTP id d9443c01a7336-28e9a6b53cemr43685545ad.40.1759520834789; Fri, 03 Oct 2025 12:47:14 -0700 (PDT) Received: from ubuntu-vm.. (201-27-235-151.dsl.telesp.net.br. [201.27.235.151]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b6099ad8dc6sm5332135a12.2.2025.10.03.12.47.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Oct 2025 12:47:14 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH 02/13] Update PIDFD_* constants for Linux 6.17 Date: Fri, 3 Oct 2025 16:38:53 -0300 Message-ID: <20251003194707.2326679-3-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> References: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_BARRACUDACENTRAL, 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~patchwork=sourceware.org@sourceware.org The pidfd interface was extended with: * PIDFD_GET_INFO and pidfd_info (along with related extra flags) to allow get information about the process without the need to parse /proc (commit cdda1f26e74ba, Linux 6.13). * PIDFD_SELF_{THREAD,THREAD_GROUP,SELF,SELF_PROCESS} to allow pidfd_send_signal refer to the own process or thread lead groups without the need of allocating a file descriptor (commit f08d0c3a71114, Linux 6.15). * PIDFD_INFO_COREDUMP that extends PIDFD_GET_INFO to obtain coredump information. Linux uAPI header defines both PIDFD_SELF_THREAD and PIDFD_SELF_THREAD_GROUP on linux/fcntl.h (since they reserve part of the AT_* values), however for glibc I do not see any good reason to add pidfd definitions on fcntl-linux.h. The tst-pidfd.c is extended with some PIDFD_SELF_* tests and a new ‘tst-pidfd_getinfo.c’ test is added to check PIDFD_GET_INFO. The PIDFD_INFO_COREDUMP tests would require very large and complex tests that are already covered by kernel tests. Checked on aarch64-linux-gnu and x86_64-linux-gnu on kernels 6.8 and 6.17. --- sysdeps/unix/sysv/linux/Makefile | 1 + sysdeps/unix/sysv/linux/sys/pidfd.h | 58 +++++++++++++++++ sysdeps/unix/sysv/linux/tst-pidfd-consts.py | 2 +- sysdeps/unix/sysv/linux/tst-pidfd.c | 44 ++++++++++++- sysdeps/unix/sysv/linux/tst-pidfd_getinfo.c | 71 +++++++++++++++++++++ 5 files changed, 172 insertions(+), 4 deletions(-) create mode 100644 sysdeps/unix/sysv/linux/tst-pidfd_getinfo.c diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile index 2c5bf42236..642bcc7d66 100644 --- a/sysdeps/unix/sysv/linux/Makefile +++ b/sysdeps/unix/sysv/linux/Makefile @@ -211,6 +211,7 @@ tests += \ tst-ofdlocks \ tst-personality \ tst-pidfd \ + tst-pidfd_getinfo \ tst-pidfd_getpid \ tst-pkey \ tst-ppoll \ diff --git a/sysdeps/unix/sysv/linux/sys/pidfd.h b/sysdeps/unix/sysv/linux/sys/pidfd.h index e6fc024f96..1e6da6e553 100644 --- a/sysdeps/unix/sysv/linux/sys/pidfd.h +++ b/sysdeps/unix/sysv/linux/sys/pidfd.h @@ -42,6 +42,64 @@ #define PIDFD_GET_USER_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 9) #define PIDFD_GET_UTS_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 10) +/* Sentinels to avoid allocating a file descriptor to refer to own process. */ +#define PIDFD_SELF_THREAD -10000 +#define PIDFD_SELF_THREAD_GROUP -10001 +#define PIDFD_SELF PIDFD_SELF_THREAD +#define PIDFD_SELF_PROCESS PIDFD_SELF_THREAD_GROUP + + +/* Flags for pidfd_info. */ + +/* Always returned, even if not requested */ +#define PIDFD_INFO_PID (1UL << 0) +/* Always returned, even if not requested */ +#define PIDFD_INFO_CREDS (1UL << 1) +/* Always returned if available, even if not requested */ +#define PIDFD_INFO_CGROUPID (1UL << 2) +/* Only returned if requested. */ +#define PIDFD_INFO_EXIT (1UL << 3) +/* Only returned if requested. */ +#define PIDFD_INFO_COREDUMP (1UL << 4) + + +/* Value for coredump_mask in pidfd_info. Only valid if PIDFD_INFO_COREDUMP + is set in mask. */ + +/* Did crash and... */ +#define PIDFD_COREDUMPED (1U << 0) +/* coredumping generation was skipped. */ +#define PIDFD_COREDUMP_SKIP (1U << 1) +/* coredump was done as the user. */ +#define PIDFD_COREDUMP_USER (1U << 2) +/* coredump was done as root. */ +#define PIDFD_COREDUMP_ROOT (1U << 3) + +struct pidfd_info +{ + __uint64_t mask; + __uint64_t cgroupid; + __uint32_t pid; + __uint32_t tgid; + __uint32_t ppid; + __uint32_t ruid; + __uint32_t rgid; + __uint32_t euid; + __uint32_t egid; + __uint32_t suid; + __uint32_t sgid; + __uint32_t fsuid; + __uint32_t fsgid; + __int32_t exit_code; + __uint32_t coredump_mask; + __uint32_t __spare1; +}; + +/* sizeof first published struct */ +#define PIDFD_INFO_SIZE_VER0 64 + +#define PIDFD_GET_INFO _IOWR(PIDFS_IOCTL_MAGIC, 11, struct pidfd_info) + /* 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 18010fe0e6..6dc678380c 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, 12) + linux_version_glibc = (6, 17) sys.exit(glibcextract.compare_macro_consts( '#include \n', '#include \n' diff --git a/sysdeps/unix/sysv/linux/tst-pidfd.c b/sysdeps/unix/sysv/linux/tst-pidfd.c index f7e0c5d9fa..4e4591f6c8 100644 --- a/sysdeps/unix/sysv/linux/tst-pidfd.c +++ b/sysdeps/unix/sysv/linux/tst-pidfd.c @@ -16,6 +16,7 @@ License along with the GNU C Library; if not, see . */ +#include #include #include #include @@ -41,15 +42,23 @@ static pid_t ppid; static uid_t puid; static void -sighandler (int sig) +sighandler_subprocess (int sig) { } +static sig_atomic_t pidfd_self_flag; + +static void +sighandler_parent (int sig) +{ + pidfd_self_flag = 1; +} + static void subprocess (void) { - xsignal (SIGUSR1, sighandler); - xsignal (SIGUSR2, sighandler); + xsignal (SIGUSR1, sighandler_subprocess); + xsignal (SIGUSR2, sighandler_subprocess); /* Check first pidfd_send_signal with default NULL siginfo_t argument. */ { @@ -102,6 +111,7 @@ do_test (void) FAIL_UNSUPPORTED ("kernel does not support pidfd_getfd, skipping test"); } + ppid = getpid (); puid = getuid (); @@ -115,6 +125,34 @@ do_test (void) TEST_COMPARE (errno, EBADF); } + xsignal (SIGUSR1, sighandler_parent); + + { + sigset_t mask, oldmask; + sigemptyset (&mask); + sigaddset (&mask, SIGUSR1); + TEST_COMPARE (sigprocmask (SIG_BLOCK, &mask, &oldmask), 0); + + /* PIDFD_SELF_{THREAD,THREAD_GROUP} were added on Linux 6.15. On older + kernels pidfd_send_signal should return -1/EBADF. */ + const int pidfd_selfs[] = { PIDFD_SELF, PIDFD_SELF_PROCESS }; + for (int i = 0; i < array_length (pidfd_selfs); i++) + { + pidfd_self_flag = 0; + int r = pidfd_send_signal (pidfd_selfs[i], SIGUSR1, NULL, 0); + if (r == -1) + TEST_COMPARE (errno, EBADF); + else + { + while (pidfd_self_flag == 0) + sigsuspend (&oldmask); + TEST_COMPARE (pidfd_self_flag, 1); + } + } + + TEST_COMPARE (sigprocmask (SIG_SETMASK, &oldmask, NULL), 0); + } + /* Check if pidfd_getpid returns ESRCH for exited subprocess. */ { pid_t pidfork = xfork (); diff --git a/sysdeps/unix/sysv/linux/tst-pidfd_getinfo.c b/sysdeps/unix/sysv/linux/tst-pidfd_getinfo.c new file mode 100644 index 0000000000..948a7cdb6b --- /dev/null +++ b/sysdeps/unix/sysv/linux/tst-pidfd_getinfo.c @@ -0,0 +1,71 @@ +/* Basic tests for Linux PID_GET_INFO interfaces. + Copyright (C) 2022-2025 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include +#include +#include +#include +#include + +static int +do_test (void) +{ + { + /* The pidfd_getfd syscall was the last in the set of pidfd related + syscalls added to the kernel. Use pidfd_getfd to decide if this + kernel has pidfd support that we can test. */ + int r = pidfd_getfd (0, 0, 1); + TEST_VERIFY_EXIT (r == -1); + if (errno == ENOSYS) + FAIL_UNSUPPORTED ("kernel does not support pidfd_getfd, skipping test"); + } + + int pidfd = pidfd_open (getpid(), 0); + TEST_VERIFY (pidfd >= 0); + + int pid = pidfd_getpid (pidfd); + TEST_VERIFY (pid >= 0); + + struct pidfd_info info = { + .mask = PIDFD_INFO_CGROUPID, + }; + if (ioctl (pidfd, PIDFD_GET_INFO, &info) != 0) + { + if (errno == ENOTTY) + FAIL_UNSUPPORTED ("kernel does not support PIDFD_GET_INFO"); + else + FAIL_EXIT1 ("ioctl (PIDFD_GET_INFO) failed: %m"); + } + + TEST_COMPARE (info.pid, pid); + TEST_COMPARE (info.ppid, getppid ()); + TEST_COMPARE (info.ruid, getuid ()); + TEST_COMPARE (info.rgid, getgid ()); + TEST_COMPARE (info.euid, geteuid ()); + TEST_COMPARE (info.egid, getegid ()); + TEST_COMPARE (info.suid, geteuid ()); + TEST_COMPARE (info.sgid, getegid ()); + if (info.mask & PIDFD_INFO_CGROUPID) + TEST_VERIFY (info.cgroupid != 0); + + xclose (pidfd); + + return 0; +} + +#include From patchwork Fri Oct 3 19:38:54 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 121234 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7CD2A3858427 for ; Fri, 3 Oct 2025 19:55:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7CD2A3858427 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=mH++I7hD X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id A3BB53857BBF for ; Fri, 3 Oct 2025 19:47:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A3BB53857BBF 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 A3BB53857BBF Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::435 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520840; cv=none; b=SgZ1wJ5AFsXREF8TalgzXKF+gYULj7ewrzNk3vVHTn3C2dGCbaQAmk9CNNY/Io3bd6wNmHsLVHIqXSSbiXHDhgFc02FpCgqpOd+vBUGA0a6EdWMbqkNaUjxVp2wOpAkYpbj40+C/LCfaPoII4IiUu2kPyncpqzE4cJ8hsu7hekk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520840; c=relaxed/simple; bh=/08PSJVccNRQ3DSNhCsMWSZWtlTnjDQoLuQ9vr+k1tE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=bYFrVGzE+GtgoSJEYWym/Eid4P9qOEjohDxGv/+DZm/WbkRb1YuY5dBMVXY47OQxbSj5Yz0E+c9ycIZDgUi+A6g2gjwSnTL9apEWpnxxbIGlMAqIgvcZyTNHZElZRoMOUwjM36o1EFaPXT0U8aD/EyZXiQwzDlVItrh25KeyqM4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-78a9793aa09so3220457b3a.0 for ; Fri, 03 Oct 2025 12:47:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759520836; x=1760125636; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CnSx0VQdbCUq4D2Gdbsps9XWmqFW2FAGzU+NTDuNM2E=; b=mH++I7hD1JfmK1P1/ILdtG6Bq1UnLzRjswYfLOhkSQiasb98oNQ5xVF4DMi2rUu9Jy MPNtbXgagtcX1zUhErYgCkHM8PLIoXyZyCwEfPnixWZ4E72p6KhzQNgwN0toK0v17dfq Mvni3BjsfHxbnYEnyMtCZrTOOjkgJjE9yE8iy04RDaHJO/VJPHpFlS9vxX9J9PMZ5gJV WlkHLfnA52jv6cY1hkONRpYVbf0+wNpKB4atw+LDgIHcmIQrm3r+Ilgrm5x3n5712P/j 7kQDB8GmbI6hShj0egS73XzddRCaIzlvUPoTKNXIADX4is9KwmAq1Lej5dg1l0jNU4VS FDPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759520836; x=1760125636; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CnSx0VQdbCUq4D2Gdbsps9XWmqFW2FAGzU+NTDuNM2E=; b=mVeg2ou+JLI9dXiBAV9rKGTUSxVJOxtSpXc9zdKGp1Padbdn74WQ+CLrGsV7z5IAln 7rQxK4ZHhlJEXo13j3DkYDz8KQm97FBOzHOC61BM36c0nKxfOcn3Hs4YcRJGa6u/j4H0 Esw1SnhSyjMuN8TU164TIeCHiepYFobscDRBV2FOMXnJpHul9Y2NnnL66TsrVKig8Ktj rLp55TMPqkCkVkXZEACAKyiC3nO6IA36n6Acv5qABUWrhwFU4bpy3fAExYPnT4qWOt1U iq4nodssoFZHXZ1wLViUTD2qZYS0FK2t1eoBwb3qLBbN9BcrJP5/GO5zSnnMLNpjy+w2 /6Mg== X-Gm-Message-State: AOJu0YxI3112mzyNWbc8FHq9Mijg+EhGqzdAk0eW62E+J81r8MOm0lCM yF0Pewc1kAvdRA4woofRrgYF3N+iWIRvFq6aOegrk26dFMjPA5IrkVAUBfAts/h/6UGx+s+xFYa Fc87c X-Gm-Gg: ASbGncs5myf7p2tZqNbGJ3h4UXRrdBMoOQ3drBqKceIz8UhiTwr8qaf5PW/W+4hrBEq jWk6xtCKTZ5YzCzDDutEFBgcbpgDdydgLIBmhvpfxFye91MMOtD4R+HyxdQFxeN4c5O9ewsNKx6 JJp7QVCiFZJKR6MqMT52eLvKB2fgvOcY/e0UOno5nb5EHxhyUwDnydu6kPeuSJqVTT3M0tRXlHi NCLXv+6KcCIKLUP0YvgCeY2FyRCUUXKnR/u5r8aovyJwNBasbxBZQN02uvX3Bs1wKb3Fq5pFEO2 K+pigxXFAzXGcqpkkAm24I0GzUe+YgR0Wbt7Ws18PFxE6SxXkRR1dGMU927z0xzTAxny8rDtDCp bfiaUaoYhW2ISBa1HOxUUC6J3jXtgfozhNVi4g1mDVsREXoEnsM25wjQcCVmqrTfjbPKT0+A/hu uQYJsUL9EumstS6/WY0V58xelfTN55FEokMQ== X-Google-Smtp-Source: AGHT+IGszY87KsCx/h8UziShR1RMxJe14ZZRrK0VckmCUPzBDMWrWGUHRH3xNu7ucLcv8ao5x8jAAw== X-Received: by 2002:a05:6a20:7f96:b0:2e0:9b1a:640a with SMTP id adf61e73a8af0-32b61dedf75mr6301703637.3.1759520836464; Fri, 03 Oct 2025 12:47:16 -0700 (PDT) Received: from ubuntu-vm.. (201-27-235-151.dsl.telesp.net.br. [201.27.235.151]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b6099ad8dc6sm5332135a12.2.2025.10.03.12.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Oct 2025 12:47:16 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH 03/13] Add new AArch64 HWCAP3 definitions from Linux 6.17 to bits/hwcap.h Date: Fri, 3 Oct 2025 16:38:54 -0300 Message-ID: <20251003194707.2326679-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> References: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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~patchwork=sourceware.org@sourceware.org Linux 7c7f55039b8d6 added HWCAP3_MTE_FARA and f620372209bfe added KERNEL_HWCAP_MTE_STORE_ONLY. --- sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h index d064a091a6..3213771962 100644 --- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h +++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h @@ -120,3 +120,6 @@ #define HWCAP2_SME_SF8DP4 (1UL << 61) #define HWCAP2_SME_SF8DP2 (1UL << 62) #define HWCAP2_POE (1UL << 63) + +#define HWCAP3_MTE_FAR (1UL << 0) +#define HWCAP3_MTE_STORE_ONLY (1UL << 1) From patchwork Fri Oct 3 19:38:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 121229 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CC9CE385B530 for ; Fri, 3 Oct 2025 19:49:49 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by sourceware.org (Postfix) with ESMTPS id A3BC83857823 for ; Fri, 3 Oct 2025 19:47:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A3BC83857823 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 A3BC83857823 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520849; cv=none; b=APXndykBVEYbkmp5rEzj102MHPZb2oic+gOfeeZlkZ6SyHDp14VjylNRn9L1acesoIDxV+2O5R7a2njb72b6vB6eQo6SNVI4cxTmQS4Qq9Grp2m90bNooemYMsa2sEkQ9GeGNQpj1gtHWZpERyM+LSzKNbcv+qsugzKq0lZZnsk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520849; c=relaxed/simple; bh=0qziJB9GMVT1tT9NOAbridbjvg+vli7/TCGnandcS6c=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=UQfAHFjUNsYV6oYDG6PY9Wy6XAsv3oq/JtGXboXSGutVg2nvu/uBi24dbo22NqUXctsOqH1wUv4HeamIjOWzLlFKIHZTphqVeoVTeq26w48ts1ryta+wTkf+vVQwuy862m7sGWwm6iZNMOajJN2tl/YFNYTPu42lVGtXVk/Q8fg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-781001e3846so2545003b3a.2 for ; Fri, 03 Oct 2025 12:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759520838; x=1760125638; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3vkRtW55RaX/o5X0FzLYKdo5SD1fQcIKkaE4P6qNhTA=; b=exsLIXaJrvSHvfxoCHuVFZpl8gyCoKDxh6ammpc2xyqE/37Rv3oGbMQtO6RgNvCdHB LeKeprvD3qZxbAifYp2Ob658zZCRNCyGs3yZTYwaVhEhDjVWjOf7S91NsjF2LA4l3wHS kRSJVxW8SR/48wQWK+ym+LyMOIZwrUydc9kiC3Ya/+b0Vt8XFfLRPyaZvzmuIA/5cMLq 59pJGsp4zoaDWB7FbGcoRsoScXfNH2fuK/7rDQ3W2lcH/EWtj/R8nXndfXKWk8c+F1oF foIH27Zlbw7LwBZfKJnywFhRWTRnavKVq+rgKivu9jX/uh5scINwP8OMtEY7imxolCp5 15lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759520838; x=1760125638; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3vkRtW55RaX/o5X0FzLYKdo5SD1fQcIKkaE4P6qNhTA=; b=taaFNRNltkWIVy04qkOiVbEZk081KBcoN3jwBPUbDJ3WQ+Hk+JTibym9Kzaewg39bH IG52A80YBgOPp4A4X2iUcdlRz5LifDTtAW2PT4384DebKHEKN9scCsySsCuXsyiDUSTl WPMIBlBu57/3hXD9Aq90BOWWEnqDj4i4HwX/FVmjF9EztF0siDl8s4MRDiDtfPAd1IxA oUIkWtBNGpgY+G4/HShlLaME+tkti9apLZppGVa3XPL8P6IzJcmu16NAANFeLUCojWIl vVSqu1NwsE2TXx2V8RbhztNiFKTbb5ltUhjDNy4cLsOZ2Ao9VX7o78kd40wgXJwnnF0L LwCA== X-Gm-Message-State: AOJu0YxyNk6e2RkncyI6nMOnoTsBGGt2lWlEifc0RykJ/o2iPi+ADbqX D9JXxZuX0ukWcNA+FonGh6jlI+h3K3HJczj15jUmJevzzKs7nn8o6IQ2dz7ud4plz8GwLIK0uAf tCSXx X-Gm-Gg: ASbGncvvBj6Xx83d3M/yuB6WpsREwPuYQNRzdfCUSG5NzO42inNGzyDkJJ1ATCZKQfj U1IlQM9CyHvN3At1IyQzocf1FWaFA3PxtotS+7UJkWFYs46N8TZud6N2Ryabow7jUHg+NQGOTU1 +skjQGUIUY8/TJHJHYahQIvkx2pVoL397IOikdtq5CdAljgUI8u4rRoEVZmQOcq+NotzIG9K2j3 jvnnlNhhsacUbePigx1ljw57z46tbinbJ24hShv1kFbN+taqbmrUCJDMiWk5OszgSgV9vbXlvrl KD57sDbIqRNu4LoBeNrjc0V6h1mOq7pIWEEKyDNblUc6mMO37JbhVYVU2Wz2q0XLat+8KhyjwM4 kTz3yA450R9oo/eYyRJpfBr5y+9k7aAm5wXlWM1tEUFaxoKKyfDUxz5VSeiEen1gChqR4cOBXIB LW5fgTdzathHxwcomEU0eBP4Wt/BGbzi/8aerOIh+F9rW5 X-Google-Smtp-Source: AGHT+IEbDpwv7fZmonZzOW/8oO0AAk/QIlON4Et0esK0aHM2VAN6439BJSKlR8v42tkFZVGjhpMTow== X-Received: by 2002:a05:6a20:7fa3:b0:2dd:5588:49eb with SMTP id adf61e73a8af0-32b61e5c6ecmr5448551637.19.1759520838312; Fri, 03 Oct 2025 12:47:18 -0700 (PDT) Received: from ubuntu-vm.. (201-27-235-151.dsl.telesp.net.br. [201.27.235.151]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b6099ad8dc6sm5332135a12.2.2025.10.03.12.47.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Oct 2025 12:47:17 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH 04/13] Update syscall lists for Linux 6.17 Date: Fri, 3 Oct 2025 16:38:55 -0300 Message-ID: <20251003194707.2326679-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> References: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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~patchwork=sourceware.org@sourceware.org Linux 6.16 adds no new syscalls, while Linux 6.17 adds file_getattr and file_setattr (commit be7efb2d20d67f334a7de2aef77ae6c69367e646). Update syscall-names.list and regenerate the arch-syscall.h headers with build-many-glibcs.py update-syscalls. --- sysdeps/unix/sysv/linux/aarch64/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/alpha/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/arc/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/arm/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/csky/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/hppa/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/i386/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/loongarch/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/m68k/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/microblaze/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/or1k/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/sh/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/syscall-names.list | 6 ++++-- sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h | 2 ++ 26 files changed, 54 insertions(+), 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h index ba4a461e90..fed3b21940 100644 --- a/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h @@ -50,6 +50,8 @@ #define __NR_fcntl 25 #define __NR_fdatasync 83 #define __NR_fgetxattr 10 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 273 #define __NR_flistxattr 13 #define __NR_flock 32 diff --git a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h index 840d6fed9e..675d8c0944 100644 --- a/sysdeps/unix/sysv/linux/alpha/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/alpha/arch-syscall.h @@ -63,6 +63,8 @@ #define __NR_fcntl 92 #define __NR_fdatasync 447 #define __NR_fgetxattr 387 +#define __NR_file_getattr 578 +#define __NR_file_setattr 579 #define __NR_finit_module 507 #define __NR_flistxattr 390 #define __NR_flock 131 diff --git a/sysdeps/unix/sysv/linux/arc/arch-syscall.h b/sysdeps/unix/sysv/linux/arc/arch-syscall.h index 2534f0fa5c..27d02094fd 100644 --- a/sysdeps/unix/sysv/linux/arc/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/arc/arch-syscall.h @@ -54,6 +54,8 @@ #define __NR_fcntl64 25 #define __NR_fdatasync 83 #define __NR_fgetxattr 10 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 273 #define __NR_flistxattr 13 #define __NR_flock 32 diff --git a/sysdeps/unix/sysv/linux/arm/arch-syscall.h b/sysdeps/unix/sysv/linux/arm/arch-syscall.h index 8e585a4f9e..61b94b180c 100644 --- a/sysdeps/unix/sysv/linux/arm/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/arm/arch-syscall.h @@ -72,6 +72,8 @@ #define __NR_fcntl64 221 #define __NR_fdatasync 148 #define __NR_fgetxattr 231 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 379 #define __NR_flistxattr 234 #define __NR_flock 143 diff --git a/sysdeps/unix/sysv/linux/csky/arch-syscall.h b/sysdeps/unix/sysv/linux/csky/arch-syscall.h index 73fdba1402..81b27cb6bc 100644 --- a/sysdeps/unix/sysv/linux/csky/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/csky/arch-syscall.h @@ -56,6 +56,8 @@ #define __NR_fcntl64 25 #define __NR_fdatasync 83 #define __NR_fgetxattr 10 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 273 #define __NR_flistxattr 13 #define __NR_flock 32 diff --git a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h index d8ffab9b95..4bd8a01a45 100644 --- a/sysdeps/unix/sysv/linux/hppa/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/hppa/arch-syscall.h @@ -70,6 +70,8 @@ #define __NR_fcntl64 202 #define __NR_fdatasync 148 #define __NR_fgetxattr 243 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 333 #define __NR_flistxattr 246 #define __NR_flock 143 diff --git a/sysdeps/unix/sysv/linux/i386/arch-syscall.h b/sysdeps/unix/sysv/linux/i386/arch-syscall.h index 196dfec840..de3ab8ac21 100644 --- a/sysdeps/unix/sysv/linux/i386/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/i386/arch-syscall.h @@ -75,6 +75,8 @@ #define __NR_fcntl64 221 #define __NR_fdatasync 148 #define __NR_fgetxattr 231 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 350 #define __NR_flistxattr 234 #define __NR_flock 143 diff --git a/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h b/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h index f57a152b2e..25d1cb9e03 100644 --- a/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h @@ -50,6 +50,8 @@ #define __NR_fcntl 25 #define __NR_fdatasync 83 #define __NR_fgetxattr 10 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 273 #define __NR_flistxattr 13 #define __NR_flock 32 diff --git a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h index a95cb41f56..7a4706f598 100644 --- a/sysdeps/unix/sysv/linux/m68k/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/m68k/arch-syscall.h @@ -75,6 +75,8 @@ #define __NR_fcntl64 239 #define __NR_fdatasync 148 #define __NR_fgetxattr 228 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 348 #define __NR_flistxattr 231 #define __NR_flock 143 diff --git a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h index fe08f5cc9e..097d97943b 100644 --- a/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/microblaze/arch-syscall.h @@ -75,6 +75,8 @@ #define __NR_fcntl64 221 #define __NR_fdatasync 148 #define __NR_fgetxattr 231 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 380 #define __NR_flistxattr 234 #define __NR_flock 143 diff --git a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h index 7d76d6579d..cee37b6e25 100644 --- a/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/mips/mips32/arch-syscall.h @@ -74,6 +74,8 @@ #define __NR_fcntl64 4220 #define __NR_fdatasync 4152 #define __NR_fgetxattr 4229 +#define __NR_file_getattr 4468 +#define __NR_file_setattr 4469 #define __NR_finit_module 4348 #define __NR_flistxattr 4232 #define __NR_flock 4143 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 bca3ea69b3..61d1bfbe7e 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/mips/mips64/n32/arch-syscall.h @@ -71,6 +71,8 @@ #define __NR_fcntl64 6212 #define __NR_fdatasync 6073 #define __NR_fgetxattr 6185 +#define __NR_file_getattr 6468 +#define __NR_file_setattr 6469 #define __NR_finit_module 6312 #define __NR_flistxattr 6188 #define __NR_flock 6071 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 5bcd92982a..21abc40d1f 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/arch-syscall.h @@ -65,6 +65,8 @@ #define __NR_fcntl 5070 #define __NR_fdatasync 5073 #define __NR_fgetxattr 5185 +#define __NR_file_getattr 5468 +#define __NR_file_setattr 5469 #define __NR_finit_module 5307 #define __NR_flistxattr 5188 #define __NR_flock 5071 diff --git a/sysdeps/unix/sysv/linux/or1k/arch-syscall.h b/sysdeps/unix/sysv/linux/or1k/arch-syscall.h index c2a1d51552..9f28bd8986 100644 --- a/sysdeps/unix/sysv/linux/or1k/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/or1k/arch-syscall.h @@ -55,6 +55,8 @@ #define __NR_fcntl64 25 #define __NR_fdatasync 83 #define __NR_fgetxattr 10 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 273 #define __NR_flistxattr 13 #define __NR_flock 32 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h index c371df8e40..a177677699 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/arch-syscall.h @@ -73,6 +73,8 @@ #define __NR_fcntl64 204 #define __NR_fdatasync 148 #define __NR_fgetxattr 214 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 353 #define __NR_flistxattr 217 #define __NR_flock 143 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h index df8844d3ca..eebcc751f2 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/arch-syscall.h @@ -66,6 +66,8 @@ #define __NR_fcntl 55 #define __NR_fdatasync 148 #define __NR_fgetxattr 214 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 353 #define __NR_flistxattr 217 #define __NR_flock 143 diff --git a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h index 1bae763c9e..8732e52365 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/riscv/rv32/arch-syscall.h @@ -49,6 +49,8 @@ #define __NR_fcntl64 25 #define __NR_fdatasync 83 #define __NR_fgetxattr 10 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 273 #define __NR_flistxattr 13 #define __NR_flock 32 diff --git a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h index 1a1ebf8e2f..28e96eb766 100644 --- a/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/riscv/rv64/arch-syscall.h @@ -50,6 +50,8 @@ #define __NR_fcntl 25 #define __NR_fdatasync 83 #define __NR_fgetxattr 10 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 273 #define __NR_flistxattr 13 #define __NR_flock 32 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 f77f39f1cc..c55402b31f 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/s390/s390-32/arch-syscall.h @@ -73,6 +73,8 @@ #define __NR_fcntl64 221 #define __NR_fdatasync 148 #define __NR_fgetxattr 229 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 344 #define __NR_flistxattr 232 #define __NR_flock 143 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 65d6644e33..f290b32884 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/s390/s390-64/arch-syscall.h @@ -62,6 +62,8 @@ #define __NR_fcntl 55 #define __NR_fdatasync 148 #define __NR_fgetxattr 229 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 344 #define __NR_flistxattr 232 #define __NR_flock 143 diff --git a/sysdeps/unix/sysv/linux/sh/arch-syscall.h b/sysdeps/unix/sysv/linux/sh/arch-syscall.h index 5948ab099a..2c1bb7df81 100644 --- a/sysdeps/unix/sysv/linux/sh/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/sh/arch-syscall.h @@ -72,6 +72,8 @@ #define __NR_fcntl64 221 #define __NR_fdatasync 148 #define __NR_fgetxattr 231 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 368 #define __NR_flistxattr 234 #define __NR_flock 143 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h index 85828a8c17..0a5b095b37 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/arch-syscall.h @@ -74,6 +74,8 @@ #define __NR_fcntl64 155 #define __NR_fdatasync 253 #define __NR_fgetxattr 177 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 342 #define __NR_flistxattr 180 #define __NR_flock 131 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h index d83ecd15dc..1b5f4cfe1e 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/arch-syscall.h @@ -66,6 +66,8 @@ #define __NR_fcntl 92 #define __NR_fdatasync 253 #define __NR_fgetxattr 177 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 342 #define __NR_flistxattr 180 #define __NR_flock 131 diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list index bde20e4893..237fb597cf 100644 --- a/sysdeps/unix/sysv/linux/syscall-names.list +++ b/sysdeps/unix/sysv/linux/syscall-names.list @@ -21,8 +21,8 @@ # This file can list all potential system calls. The names are only # used if the installed kernel headers also provide them. -# The list of system calls is current as of Linux 6.15. -kernel 6.15 +# The list of system calls is current as of Linux 6.17. +kernel 6.17 FAST_atomic_update FAST_cmpxchg @@ -125,6 +125,8 @@ fcntl fcntl64 fdatasync fgetxattr +file_getattr +file_setattr finit_module flistxattr flock 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 06fbae5334..7011e71488 100644 --- a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h @@ -65,6 +65,8 @@ #define __NR_fcntl 72 #define __NR_fdatasync 75 #define __NR_fgetxattr 193 +#define __NR_file_getattr 468 +#define __NR_file_setattr 469 #define __NR_finit_module 313 #define __NR_flistxattr 196 #define __NR_flock 73 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 135ef3d7f2..7dbe5b38ca 100644 --- a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h @@ -61,6 +61,8 @@ #define __NR_fcntl 1073741896 #define __NR_fdatasync 1073741899 #define __NR_fgetxattr 1073742017 +#define __NR_file_getattr 1073742292 +#define __NR_file_setattr 1073742293 #define __NR_finit_module 1073742137 #define __NR_flistxattr 1073742020 #define __NR_flock 1073741897 From patchwork Fri Oct 3 19:38:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 121224 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F1A0B385781A for ; Fri, 3 Oct 2025 19:48:26 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by sourceware.org (Postfix) with ESMTPS id AB6FE3857806 for ; Fri, 3 Oct 2025 19:47:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AB6FE3857806 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 AB6FE3857806 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520855; cv=none; b=KhQ2ZKEMXqNgbz40+LBgPRAbdhdIdlSbxImc9ieq45UjOLUx95/f72kn/GqaQnZdzsqaS7iaIVAuCAGczvliA5ZBHq88xAy2wyQ1aebLEFKHp9C9VyVAUHUihU0lhZ9+VqIjn493ZFppbIsyQyPXsR51tWWsPXleSE7AR1dReMs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520855; c=relaxed/simple; bh=XYezoEUvuPw5MrQ6sIjanOEdiBkZ2vL+jNx5hkHvfqg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=h6xOQT87WYpEPVXQ77IL5gDjW+oWO5024RUGsjOSawdtLLfmsBaGUMYaBs2Ut0JHxr/swt6h5FZCc5oPC2N4RupVk1J1PsN29P3qYkFlkASgUhtqEXcXk5W5BDKgHafjGBnQd9pU3gkx7gH+Iw8p0acrHnKfwIzIySy1xwakyso= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-77f67ba775aso3674883b3a.3 for ; Fri, 03 Oct 2025 12:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759520840; x=1760125640; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pqjUqGUPyFgu8jqIa4zJse/WaobUAYTKiQDOvoyF8GA=; b=eeqL9vVd2agdi8rW+iYie70o/86LRnzBwEo0cqMh+jb0hZqOq884HE3wkY3w6ANJif WwBcftSvHO5HQvjypucjYg/NfaDnZdKHkBC04Uz1QOvLVlJEe54Ani1ivTqdbrLdlLbE pkmwLjVz4tSNHwD7PcyC6OEve1L77j1ww50NAtpCVg1dnUu45hwjQlfBO0hNIieMi7vV HesFyRbKOwYMb+iQKDMikiW1fcLq3ZDoPrgzdTQ1Khemjrh3jgEwYJlyXTAMt6/K0l2U Pr1cJl+zoZ9pcTBoA5fZ3H2I6tuYwfdLgY7xTZATCPeFcPvm1r2IvtDURPCXL7HMPTlU Q/BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759520840; x=1760125640; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pqjUqGUPyFgu8jqIa4zJse/WaobUAYTKiQDOvoyF8GA=; b=ACRnWYl1/r+r585wnA9GT92bnCmy8RI6pSsoZTWSmUwLdZVULyv6nlJ8zbdcw2rUYQ F8uWXhlooyMR4xXJgAO+mO2Ltq0GQMLnqmSc3nJnWjj1zXBhuunKbjKHgJocJDXhaj8z DWODNCLcR9T8D64RhMUpg3I0FCljlM6EwKe+Hv8duOqhlD7FG/j2W3a7qP9Y5w8YrTen YJFWc89lWv5ivL+wxy+62dkqEoqzS9zn9ogBUCzQhel8qIuB5JZANjw6gy2mp8geEudk /ZNQFJRiM5HOcg4XN4ztMbjF8G01lZ7O+rc3rxet95dMt7cj9hTkOIbh7z/aE099BmD0 HT/A== X-Gm-Message-State: AOJu0YxNbHgxSzhheL8tgV/P7uA50JsEHef6GNl2f1BegwtiPDfzWue2 pwzvorStOfVMyFMLPQi9mmpjYrhAKH/bpmZCYvzLNqJQ+VMQZaA031qyhD6ozfAeRbekdmcjq0h Jh5Zp X-Gm-Gg: ASbGncvA9tdJRdLvl7uNfgK++nzDLJdPYxvYoYttuHWu62MnLdYoutRtBjNFjUzfj6y GaBzBb8r0dW07W1+AIqRZ3ZzUPsYJFbi+BV+lXCX4OHXtyI8W0QVefWE0JAsBcvYydNkHtiOeZa iIDECA9QHRnJPNYJZJzYW51NfK0aqgKX/eG2TErP2kVu9jDT8jNKbe6Z12QjVmyxd8JLppz4UMH NItBWqmryOX3CvsZMatpYqyiII67piAY47c+3XEMvZoPdsWi3sQKavYlHC+Iw695780VWQ+OlE5 EVqghVw3PqB8T0O4lGCrMz6PVBZ7UvBxuaECvlsauQOwaistUFtcbymuDgUDPc4j4RAV1l5ROku pgqm/vzMxOGfwyPL7l6S+JpqwVUYZdXDkHgj/2z7LTOasnhV3YI/tXnVR4x2WDJyb6WA3sriS6F 3daFHTXdBVC95JXpuDzwgx88o= X-Google-Smtp-Source: AGHT+IH9+fd8EYbW8ElkIVAzzzv4+J4xf1pO1JXmukRQrW7RP1DYfC3bE+ohxkXVTzxvpSfniUtW3w== X-Received: by 2002:a05:6a20:7f89:b0:262:cbbc:3125 with SMTP id adf61e73a8af0-32b61e5c5f7mr5993735637.20.1759520839903; Fri, 03 Oct 2025 12:47:19 -0700 (PDT) Received: from ubuntu-vm.. (201-27-235-151.dsl.telesp.net.br. [201.27.235.151]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b6099ad8dc6sm5332135a12.2.2025.10.03.12.47.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Oct 2025 12:47:19 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH 05/13] linux: Add STATX_MNT_ID_UNIQUE definition to generic statx Date: Fri, 3 Oct 2025 16:38:56 -0300 Message-ID: <20251003194707.2326679-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> References: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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~patchwork=sourceware.org@sourceware.org The commit 4b0860d029f3cd61485d97c3620a5935b398b178 added STATX_MNT_ID_UNIQUE on the statx-generic.h without updating the generic statx struct. --- io/bits/types/struct_statx.h | 4 +++- io/tst-statx.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/io/bits/types/struct_statx.h b/io/bits/types/struct_statx.h index a325edbd11..36d9737796 100644 --- a/io/bits/types/struct_statx.h +++ b/io/bits/types/struct_statx.h @@ -49,7 +49,9 @@ struct statx __uint32_t stx_rdev_minor; __uint32_t stx_dev_major; __uint32_t stx_dev_minor; - __uint64_t __statx_pad2[14]; + __uint64_t stx_mnt_id; + __uint64_t __spare2; + __uint64_t __statx_pad2[12]; }; #endif /* __statx_defined */ diff --git a/io/tst-statx.c b/io/tst-statx.c index 989ce91dcc..1f7bafb01a 100644 --- a/io/tst-statx.c +++ b/io/tst-statx.c @@ -37,7 +37,7 @@ _Static_assert (offsetof (struct statx, stx_nlink) == 16, "statx nlink"); _Static_assert (offsetof (struct statx, stx_ino) == 32, "statx ino"); _Static_assert (offsetof (struct statx, stx_atime) == 64, "statx atime"); _Static_assert (offsetof (struct statx, stx_rdev_major) == 128, "statx rdev"); -_Static_assert (offsetof (struct statx, __statx_pad2) == 144, "statx pad2"); +_Static_assert (offsetof (struct statx, __statx_pad2) == 160, "statx pad2"); #include "statx_generic.c" From patchwork Fri Oct 3 19:38:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 121225 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 69383385AC38 for ; Fri, 3 Oct 2025 19:48:42 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id A30E33857833 for ; Fri, 3 Oct 2025 19:47:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A30E33857833 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 A30E33857833 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::433 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520862; cv=none; b=UyoD1ih+HnBTXIArsV8Os1VV3+l9VtG6g5kfqfVvvQx9wS0ns5mAeCeTDaGksd+gVGmSJBWbjBZ0cZwnyFTUaKQY0IttUVStlcEzXygSs0BhwjuwrzZVVt+WHrXtH4hqAESmz+4h29VLxvjBNyeXDt97GrYpbJmoGWiBlA+qIz8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520862; c=relaxed/simple; bh=guGLoiKipYn7IdE92wDgB8UYHRm34KR8mJeheWgiqt0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=PtFylH4+gpP4DMxLFnI3Sx7k8IAkhPbCgRXpuDq2NcuqfOsdkpgZ3gmzqeffqW9nUODl4trFSlo3pAEHRBAkZQx3X0mTC5SPr6I2qJg4MtiIGwnc/0F3RZSEVrLZG7YOc+XnqvEYyXndM0GbF3/Em0JbAgyGqkV8gfn6Ge1iJfU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-77c1814ca1dso1971503b3a.2 for ; Fri, 03 Oct 2025 12:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759520841; x=1760125641; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=l8feQyq8fXdHC5yPuhOQiw7Rtl2jRBvoTdzz1bb7408=; b=V5LTVDiLV85UZEoLaty5aOS7+sX0ZjoJYWlUqnw1hDop9bEvOHCDC6GwPvAWP6L3LX T1jo902PBkDtR0gtZuUwbFmlHJSaoynWYJshtBmKIAerzOR4JXOZ/KnD2dgLlbEkxA6h QsAzRCQn/V7FT/Iffj9ce9heIMGpyLDLwXAzq7k6vL83jUBsES61TEfH6Li/OVe7VELe T+G2qOO+IsZaVf71z1wcXPHxJaCaN58NzUjok0e0I5dzExt4DFpwAdVlvgrYCp3Cq/SJ R2+hkK/UTV2NvxV4nKMRDPo3HyO1BO4IW1v8yDSRw8krDOjZQMKjMlnoldew8phuAYLH QmAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759520841; x=1760125641; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l8feQyq8fXdHC5yPuhOQiw7Rtl2jRBvoTdzz1bb7408=; b=M5yMI52NJ92w+s59+/XEMMQl4/PcA7G33IqrOkkmvMCBxYScgJunUrll2qqs0E1HHT NhS0x0KGeTENz/x8eaSdwcDJ/Q7XVQURIbBj6XOPva+gO/eajOC8IYtfTA65jVQRY/f2 qsexbuWAeWHEgPMvom/xf3wutsOttkkz8DrHOj7EZeAXVMkxNpgS9Z2vwbTFVvDn+0bz orSPUEnaxBiDjfwicUFAyf9OsgCAxD1/LyWBKO3uUZejE8cmUlz8c0NqnjOOY7uSG7/z iVLwcGD1I34FfpbwvfZbUS+ynW5fLHPUTwQA5CRfVdXhv7vhWItBlIkjwJj8CxXgdwQt 0k4Q== X-Gm-Message-State: AOJu0YyaPdpfF4SnrfEPQ/s5bnlS863Zc4bzc42o2eqFs8a1Ih//1aUD AHdoXbHc6k+iqgab/U+blBvQqCavd5gmn3XTuH6qs8NrtMJ/evq+wN2V1hI4zL2ob6qj6xSwkUa GbrNs X-Gm-Gg: ASbGncv//4KGXGyd4uiOmafvfuL45kNhjcWNo6gUpRs4zwi78gAZvyv29kVl+gvwLpv eb5hSQgjaN683Tw7ZXjjEUsFOOIqMiammt2xshIj6rj50RXtZXx4u6w15wBPm/o2a4G4ZDVIPF0 pRjP38UVvA9ch387B1emldrxFhlFtSydaE4A7VujgAUXDbBTT4dYGmJBH1ivOqu1UfUVVwWK9OD wdR8jsy9Q6gSBcsSTLaut4ARutnWaqxx55ZvOKUAcRML5R8975HoKDh11T+0VuHBRUPoEKYOA7w PEGeQDyRbuq/996gj16vLYF0/T+ULrQh+qzrm7MsJC2pLXb7WPv/ZRtusRB/hiPfYPnbnMZp1Yr R/tnOFy6h6FQJ4VVkDBIQzz9kRijo4XuqsKxcMJp3it4pSwaIFmyEUWTblHmS46+86Txp32cL03 1pCSCaIqDo+Wq+H0ddYA+XxlnDmLlT/FYR7A== X-Google-Smtp-Source: AGHT+IEVCpXo+yUYaDU5jOnxyEmjqvW+Q8I1MyWjECZafvKS3ycjiKBsmqiBROUa4/atp1Xal8gPXQ== X-Received: by 2002:a05:6a20:7f90:b0:2e4:9004:530c with SMTP id adf61e73a8af0-32b61e6b9d2mr6950263637.17.1759520841432; Fri, 03 Oct 2025 12:47:21 -0700 (PDT) Received: from ubuntu-vm.. (201-27-235-151.dsl.telesp.net.br. [201.27.235.151]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b6099ad8dc6sm5332135a12.2.2025.10.03.12.47.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Oct 2025 12:47:21 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH 06/13] linux: Add STATX_DOALIGN definition to generic statx Date: Fri, 3 Oct 2025 16:38:57 -0300 Message-ID: <20251003194707.2326679-7-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> References: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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~patchwork=sourceware.org@sourceware.org The commit 07937809ac377f8ffb5bad3335194dd9a447922f added STATX_MNT_ID_UNIQUE on the statx-generic.h without updating the generic statx struct. --- io/bits/types/struct_statx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/io/bits/types/struct_statx.h b/io/bits/types/struct_statx.h index 36d9737796..6244990611 100644 --- a/io/bits/types/struct_statx.h +++ b/io/bits/types/struct_statx.h @@ -50,7 +50,8 @@ struct statx __uint32_t stx_dev_major; __uint32_t stx_dev_minor; __uint64_t stx_mnt_id; - __uint64_t __spare2; + __uint32_t stx_dio_mem_align; + __uint32_t stx_dio_offset_align;; __uint64_t __statx_pad2[12]; }; From patchwork Fri Oct 3 19:38:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 121227 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 62B813856DED for ; Fri, 3 Oct 2025 19:49:30 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id A4B453858427 for ; Fri, 3 Oct 2025 19:47:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A4B453858427 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 A4B453858427 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520870; cv=none; b=ZzRSNzL7WErh48q0PwCdOUIkkekXscsGSIYZ8m32gUKurncXqOJFrpTbYr42/hALe2RGZAW+JkMeg01WakxChoITyfesPlcJvjzl7ix72nR/hKUtTtp15RUGa/dVdQAazcwUw4QnkFfHvXhLGPkxgYT6C+3EHRkvlaF3GZK5U4w= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520870; c=relaxed/simple; bh=KFwJVCcVoKZvuNMFWywf1pAouIBm9g8gHLX8CpU4vgc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=oMMJ549P31BuO+Lv85GL+2eblyjQD+0tw1EqSA4DYjuL2i0QFbG21j5rrPnqQrHsHJUS3xt9KlbC966grXk0WTx9pnibodYzXdTNlOw5z487Dxp3jYB/LHVXgHUhuMRBckm+Ebxpg1K/p8DAFaetEBBFVk5HSVQkfbBHtAYya9M= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-781206cce18so2380491b3a.0 for ; Fri, 03 Oct 2025 12:47:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759520843; x=1760125643; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VkLWKCgMNb8pRa6VCQW3FjnmgiPgRdjAMEuG6Yb2mJ8=; b=WamzykNFfkoDiJYFZR+W6OMd9RIGod9IZ+gXTwauHlQ8CyMCHLj/fSxtRiZfoPfBNl awfHKQDXkBXbBXoRTWj7WYZYMZEHOrDQePMcfIt8o4RCYSM/uxg1h0DXPhlSQD0HCi45 m/bSAo1CIzm3we+JlqZkVlFswybExwQ/1UErAjW4F6wBOrCWGFKCyDpmgINN16OVfQR4 fE3wAVK6jQQeYOqzIq5fJJew7YGl7BCHXxDp4lQKdzMW2LMbQkvEtvq6SoPefBntFsAE MQnRb2NC4IyDRDDjiVSq5YKrKHboIx3lfqHz7aYe62oNUqfa2JgzHwSyiL70JRNv+64T AB0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759520843; x=1760125643; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VkLWKCgMNb8pRa6VCQW3FjnmgiPgRdjAMEuG6Yb2mJ8=; b=L7/EaAis+kC608CP1BIrXh6P1FwcHJxoMZ3E3WgFivjycj7dHSwu8dzfuYPyVkWu9U 6mnlk62k04XauuQfe76g6ABD+/jYKN3EVRl4ZvhuQxctVJzAB1dBPfCqiMyVi44F6vka Qn21VzWbW9Pt1s1FYcqKnAzTUQgds47wlmCPsK8iAVNAFMYRBEZfpPJGK9raO0TouzE3 Bpub7BJ7HBcPsJrveEF3bB+Qe0fEKywmDmDeiMCXuMwQ5VRuo3SCTivJhBiwr/qKSG66 5Q6BpflFYJuynjUf2wYOFNNYhoiqtF1Mk1v7ERhxv/rc156mXDq6oKB15yHDS5B3Fxkn lQlw== X-Gm-Message-State: AOJu0Yy1DMvq2s05xvcqrJ00NccEUPFVzkEoTXvV0ZK0Lvdvu13QhFlk oU3VyfdPcIFYbKFfG4PW9fEvI10vsSpMTp3ZLu4n03gWCi0MSEs1JJL9VP/OVzQfWxlpovip4Et QCKMO X-Gm-Gg: ASbGncvu4z8z5kiX8wZJSBGZMb+v5+ouDi4Rjs7uE3hry0AeytWLPZUvfd48vgPVG47 kmsLStq7xSpnIESWx+Zwy0Fs589LnI2GqlxW4minFWMkFpaXy7WSFfCpFCGfojhda2Yb7ilsZHt zQ2t9S9CUKFuo1Ws4ZAB8Fbf+hZ9EmiAYnJP/rUIfvKXlE7yF7TSycCW14wm5/LHrKR4GqqQphe OvLlI+4ttAvmF7qWw956QSkAwRDkp+8z9WYRseh3Uu39+bS+Ewcl2yMTq/e5ALvM/1AqkHQ4IiL rmi7bA5rqob0R7UevOh+hekT07eLSyX5+lwrWWvxuyDWWpsQxbzu0R5kVkTMPeImQhR1KcHz97Z viCRt2zdBdkGMkVh5BIbl4LpBBPGsDKjvJHwZK0dXZMEJ82E9G6LTdnhkSbsZTgm1P1zfzvSKDQ DbxF3aGiH1N+Oppq3CA6MAp5AImjtk+BQHYw== X-Google-Smtp-Source: AGHT+IFdFXoe8T8z4oM3wIz3W/34iRLR67YCXk1Ps0qubzV9H7eNr83S1Xb05HiKic7OCAh6w19c4w== X-Received: by 2002:a05:6a20:7fa1:b0:2da:3fe0:3299 with SMTP id adf61e73a8af0-32a1f44a90amr13943157637.7.1759520843135; Fri, 03 Oct 2025 12:47:23 -0700 (PDT) Received: from ubuntu-vm.. (201-27-235-151.dsl.telesp.net.br. [201.27.235.151]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b6099ad8dc6sm5332135a12.2.2025.10.03.12.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Oct 2025 12:47:22 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH 07/13] linux: Add STATX_SUBVOL definition to generic statx Date: Fri, 3 Oct 2025 16:38:58 -0300 Message-ID: <20251003194707.2326679-8-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> References: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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~patchwork=sourceware.org@sourceware.org The commit bbb6a742c88b4a37c5410eceefbc9c94df815075 added STATX_MNT_ID_UNIQUE on the statx-generic.h without updating the generic statx struct. --- io/bits/types/struct_statx.h | 3 ++- io/tst-statx.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/io/bits/types/struct_statx.h b/io/bits/types/struct_statx.h index 6244990611..f91633159c 100644 --- a/io/bits/types/struct_statx.h +++ b/io/bits/types/struct_statx.h @@ -52,7 +52,8 @@ struct statx __uint64_t stx_mnt_id; __uint32_t stx_dio_mem_align; __uint32_t stx_dio_offset_align;; - __uint64_t __statx_pad2[12]; + __uint64_t stx_subvol; + __uint64_t __statx_pad2[11]; }; #endif /* __statx_defined */ diff --git a/io/tst-statx.c b/io/tst-statx.c index 1f7bafb01a..c7a5707c7a 100644 --- a/io/tst-statx.c +++ b/io/tst-statx.c @@ -37,7 +37,7 @@ _Static_assert (offsetof (struct statx, stx_nlink) == 16, "statx nlink"); _Static_assert (offsetof (struct statx, stx_ino) == 32, "statx ino"); _Static_assert (offsetof (struct statx, stx_atime) == 64, "statx atime"); _Static_assert (offsetof (struct statx, stx_rdev_major) == 128, "statx rdev"); -_Static_assert (offsetof (struct statx, __statx_pad2) == 160, "statx pad2"); +_Static_assert (offsetof (struct statx, __statx_pad2) == 168, "statx pad2"); #include "statx_generic.c" From patchwork Fri Oct 3 19:38:59 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 121228 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4DA2C38560B0 for ; Fri, 3 Oct 2025 19:49:40 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 36FF93857706 for ; Fri, 3 Oct 2025 19:47:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 36FF93857706 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 36FF93857706 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520877; cv=none; b=U/z8j1GTsuZ9Y70n58xlBT25EoIvr9zCgMfQ+Skjz8VW5T2XA3Gcs+J9wQFE2xLvUKtBPHc7PQnX6CQkwJXZ7hieDKlRle3QyfBAmO5kpRQBsD98+mdKX9b7WXDa/E+wFrt70iTf6CGDduGeBysvzhiMWF8mnCmwUfQjIAez5KQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520877; c=relaxed/simple; bh=VCEwSfvhpFbqXYwkzpY7qBuBSHK5jT/pkZnFvAPGNCo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=esnGuayosJiDSfgCuE5HTXtfae45dA6vPXqeNpkmAXCXVlf2hzqWyKQnGZGgWwcxlajWtXfTD1p7gYhap6dnXVy1tAfsUXMKKID7+WIC53FB5bqCnPKRF+0ywRpex5TwIqSH2r/PtgU+9Yuzd5nkHFYc3blZYEhLdo7RuT2A4hQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-78af743c232so2329777b3a.1 for ; Fri, 03 Oct 2025 12:47:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759520845; x=1760125645; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Riy30KXsjVWZA4tZzaTmoXG4JrmbmwemHzXw1s2pVd4=; b=PnLk4qdnqQdSnqeSxDiCLzgvEIQm3VStlsiZwSBAxVibMAj4ziovY/JD3gk1Ddu8et keRRAr3ohWs0gpEMdF9Gp8LYzn7j5NxmkZFBdNg0AF0mQ/VI0iAFDx0+TgcTXt3BjIxb QJETEMTFMyBhB4MY9i2/x7R+4/Nr16eMwYPUfOfPwkt7nRhq4Qyd8n8h0Vs1RHaQyVLP F/FG2wvZKjygQp6/UmLj5/O1h+30dZ13FXuqnxIDtWMxVeNhK1qbk66wZ4QnG9aAjPqI T2GjA35jOqeSDUi1qtFbML7KvkciLwkbGJwackRUpQzQgfb/fTsZzpc/X2wPHWxt1IiG hU6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759520845; x=1760125645; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Riy30KXsjVWZA4tZzaTmoXG4JrmbmwemHzXw1s2pVd4=; b=Ag2QZ3GnD5bCILbdZLx69aLG1+nSOMX/X3GVvf5CG+8UsKGFU6BrN2Vf0DpD9tUc44 YtI5iUYEGAFE7LHF6G/HOMKVdHHb4sNmliX66W1axIel7+bTIzRyfC1t3RwQglLW3Ylz INEzC0c8iCQVvh2EUGdxU47EkllqEod580uYNBWo1VMko+rdRqRWbEZAqxOKSVl136Zo Wg6X6GR01XhSZkyhEly1UjeEKyyxAWRjSrmAsmTnFgNlMi9448ucOv0AvsIbqk8JgVaZ O3SuPTFEm54VCR7pObJA3PPDxfpoLGv0p1+zSJmTyljzve+/3h73JUy3TAvQM82VDpWx COew== X-Gm-Message-State: AOJu0YwRDSd1myLEk0GVG3CEYzHf4ZZrRicaaMUslNuZC5hM753KQNLs H+DoXrf1GCnEwkbrSnhXhVXKBFq/9ky+sBmqYQ4n4XmaH7WeAVQrxIgoTILL1Y6ls7Enfy0lPoT sJ1p+ X-Gm-Gg: ASbGncuRJ3eifE3Q/mmH2p9XNsEc5ghCt3w4SeRPuTPKsNasKBHJEDRlsParz1RinQo sGlx12WO13Xsh8rzQt6EVuQQpBjm1n4BxLO2hSMFRBlvgabDbrpX5sk2QIPp5PfVQLsjNXWJUfd 0t23OOA2+OgPAUicqc8OzrWWpDxITdsWruRiH+t9ckqOcGlAFkD8RkZKaS03rHrfQ8KOGXd1v+f pNjHQOLLEWiHgsSQv4b0Zs3Ece7+WbXAMEFn9Yubn+RfvpT+Xy/T/n5FYUWurl5abcSN0XYj/8L MpE9k0TXWmb6LIZhe9iYED4I5jJIuVrVCh7tIan2J1iZOy99Er3PamJZddPIf8tatg8SoLAWlx6 n/n+mxII4kxkesG4b0y0J433zRxKJfxy8CYP7ceCU4u1za9EhVK+dB8Xf6M06IBedwJXR61DfmR XF8xHMAOK2YYrPSxIo9yFCMTw= X-Google-Smtp-Source: AGHT+IHYTuIXj8mliTQvmMpNVfgWg6ilxgvQiK8oveq28osDzZVSsSqi3ssFg3sIv//+d88q/P2BUw== X-Received: by 2002:a05:6a20:244d:b0:2ff:3752:836f with SMTP id adf61e73a8af0-32b620e6bd0mr5628070637.49.1759520844799; Fri, 03 Oct 2025 12:47:24 -0700 (PDT) Received: from ubuntu-vm.. (201-27-235-151.dsl.telesp.net.br. [201.27.235.151]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b6099ad8dc6sm5332135a12.2.2025.10.03.12.47.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Oct 2025 12:47:24 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH 08/13] linux: Add STATX_WRITE_ATOMIC/STATX_ATTR_WRITE_ATOMIC definitions to generic statx Date: Fri, 3 Oct 2025 16:38:59 -0300 Message-ID: <20251003194707.2326679-9-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> References: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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~patchwork=sourceware.org@sourceware.org The commit fc650bfd71081d26c1015d299827fb58a23a6b02 added STATX_WRITE_ATOMIC/STATX_ATTR_WRITE_ATOMIC on the statx-generic.h without updating the generic statx struct. --- io/bits/types/struct_statx.h | 6 +++++- io/tst-statx.c | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/io/bits/types/struct_statx.h b/io/bits/types/struct_statx.h index f91633159c..e8d492df77 100644 --- a/io/bits/types/struct_statx.h +++ b/io/bits/types/struct_statx.h @@ -53,7 +53,11 @@ struct statx __uint32_t stx_dio_mem_align; __uint32_t stx_dio_offset_align;; __uint64_t stx_subvol; - __uint64_t __statx_pad2[11]; + __uint32_t stx_atomic_write_unit_min; + __uint32_t stx_atomic_write_unit_max; + __uint32_t stx_atomic_write_segments_max; + __uint32_t __statx_pad2; + __uint64_t __statx_pad3[9]; }; #endif /* __statx_defined */ diff --git a/io/tst-statx.c b/io/tst-statx.c index c7a5707c7a..d691d157e0 100644 --- a/io/tst-statx.c +++ b/io/tst-statx.c @@ -37,7 +37,8 @@ _Static_assert (offsetof (struct statx, stx_nlink) == 16, "statx nlink"); _Static_assert (offsetof (struct statx, stx_ino) == 32, "statx ino"); _Static_assert (offsetof (struct statx, stx_atime) == 64, "statx atime"); _Static_assert (offsetof (struct statx, stx_rdev_major) == 128, "statx rdev"); -_Static_assert (offsetof (struct statx, __statx_pad2) == 168, "statx pad2"); +_Static_assert (offsetof (struct statx, __statx_pad2) == 0xb4, "statx pad2"); +_Static_assert (offsetof (struct statx, __statx_pad3) == 0xb8, "statx pad3"); #include "statx_generic.c" From patchwork Fri Oct 3 19:39:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 121235 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6AF3A3857BBF for ; Fri, 3 Oct 2025 19:58:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6AF3A3857BBF Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=lvijhYex X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id 3E47A385772F for ; Fri, 3 Oct 2025 19:47:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3E47A385772F 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 3E47A385772F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520878; cv=none; b=MJ4YaokEWJO2rFLlEOIPcwl7hijmDLCo9YUAhtxbAGnNuzkOAnbvtmviDvY2gRmAizJ1YoRiJH4g4KVPdbv0sTqles3lYwG9GMBoOs5MdGv17dwzx5m4drCOepv2Ial0LHj9P5vujq8FBGIY5DgAwVZZOVzm2MB/VQwaRodVIiQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520878; c=relaxed/simple; bh=UBTOdiIxufWITBeuXke5ImaW4y8TQer6ZHzYtwaTIyc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=TH4nBDNK8o316LOeuEc5CdaJ8AUTBH9369ulgYE4822rxBPcDFHT/0bxPO/AC1+d7LD03hJKvfqHu4E6+d7rrC8uvhfXcbVg24ZUvCVb0tFC2I8dCQSJyVgDwtGFTwXsbOTrhDMR8EvFMSqmJV5kKmPAPRwvuY/5Tjrk731xPks= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-27eceb38eb1so26493445ad.3 for ; Fri, 03 Oct 2025 12:47:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759520846; x=1760125646; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lJvDU0W8YLgh3xsYjsZW40MYp/dKvnUuNl2tJV+dmtc=; b=lvijhYexY8RgM86TIGM+Ir88Ae1jc7yOv+LJEszft1WmKo0c7vzkb9qibMHYNBy7hG iZnP+EdLcecoL5K76jwfBswz+aLSFWEbVaB0nctZho05Pg+NxQlvSe0wZ4kBUgz9Rrq2 xRTBPJpdWJixgs+A3IGrChUnQlyMSePPrckiF9hawTHo3KuZ/9/jQrSuXwaJadc70lUe hWjDoR3fgWvuPoVJmjH4VlG8Izb9aX4/7BnvCt1yTmNcaH3uOu7jAFsB8aMErnoLN5s/ ve8wjp7EdadW1TlINaJxL/E5AV0jfxmwK87ptoEGx0bcTUrcVAfnsgHoQpM6L9Z4kmgk hdTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759520846; x=1760125646; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lJvDU0W8YLgh3xsYjsZW40MYp/dKvnUuNl2tJV+dmtc=; b=WmKGeIqilyqBDFc28CgI19wCWplG6cFh/dlTLibEC8H1nVCF2DyQz/+wh+o0O+4o6d Zc3myEM0hWi6FZVYmO5o1Loi6ErE7cfihEmJeGrjRXJthjF/fLtlzMiI4Ge+scWiAJy5 WGphavbPcFZSE+NuCeTP2opK2rkML7+IW6WjnOWk2Bteqg+3nJa98yD9P52AioLlZtqH ZSyiyxPK5trmI6bUbO1vbMKuM5mmUSMMJv5t1ikeyb1RbP30i57yHOeD1H37klVFb+6m cDO08tTx57PkRnjel9K19zmNKV2fNiFqy15E/a+O1BskYj6pYGCIcXgtj+J4jlQIdaxs b7pw== X-Gm-Message-State: AOJu0YxMj5Lt2utBVVjRISWdaLzpvtSn/Tr5GozCSJZ6GorYYd7u+p1e 0S36ZI38gAvAL2QttS2Z6Bg2XaOc0ECa3k+iudiCdTA4vQdU+CcffPEA9wNj0OgZW9+HZg3x//B gNEgw X-Gm-Gg: ASbGncvUawYTJu/avEt6oE53MOk//h9treOeNQE+NHM/AJNy96yb3xf13iLmEi2k/yc xC4QyHNEMYQ12f6d9bk98OG3MOBXdwu0baYVTl5zgvMi0lQMlNHcYAcI/4202IVek80qRGxJohW 31908qDVwdr4Pz5DsjSDlIt8NIQOSzspWSWHdLbkF76q+uGeldEoS+6MtHTdA51Rxriivm8iWvv VpOjhrRC5VN1YtzqoPiwyEz436nUnbP/YrMv1dR+2LPt6PUJAsZFQFHmNZzIa7Xy41dtl/PwPbA DuzYsezyhUNFC6TI/nkxJSUhsMSLMHrf2Q64+5p48JL6QGI1oeO9bNyxcVJ+PE/wwFNskajw7/T hVmdtYpcmOjSJxXqNE8IGquI3War/4LyGqtwztSR1BKiFfaMhIyOXVS0BmnyB92CDU0UURgtNV0 03D/JuuiXAfy3IVtjp32jlkzNHI6Vmoo6txXDnb2DNvXbQ X-Google-Smtp-Source: AGHT+IHtoskQ/7RcqggQnAuqblVgkvEPuaiU6wo5zbnBvsSChHF1xiseRGt3LtHsJ/aMRCn3RthzVA== X-Received: by 2002:a17:903:2446:b0:283:c950:a76f with SMTP id d9443c01a7336-28e9a61eda3mr47402115ad.43.1759520846649; Fri, 03 Oct 2025 12:47:26 -0700 (PDT) Received: from ubuntu-vm.. (201-27-235-151.dsl.telesp.net.br. [201.27.235.151]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b6099ad8dc6sm5332135a12.2.2025.10.03.12.47.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Oct 2025 12:47:26 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH 09/13] linux: Update statx-generic.h with linux 6.14 Date: Fri, 3 Oct 2025 16:39:00 -0300 Message-ID: <20251003194707.2326679-10-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> References: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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~patchwork=sourceware.org@sourceware.org It adds the new constant STATX_DIO_READ_ALIGN and related fields in generic statx struct from Linux commit 7ed6cbe0f8caa6ee38a2dc8f1b925acb904cc01f. --- io/bits/statx-generic.h | 1 + io/bits/types/struct_statx.h | 4 ++-- io/tst-statx.c | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/io/bits/statx-generic.h b/io/bits/statx-generic.h index 779f52cded..0ce9e40b51 100644 --- a/io/bits/statx-generic.h +++ b/io/bits/statx-generic.h @@ -45,6 +45,7 @@ # define STATX_MNT_ID_UNIQUE 0x4000U # define STATX_SUBVOL 0x8000U # define STATX_WRITE_ATOMIC 0x00010000U +# define STATX_DIO_READ_ALIGN 0x00020000U # define STATX__RESERVED 0x80000000U # define STATX_ATTR_COMPRESSED 0x0004 diff --git a/io/bits/types/struct_statx.h b/io/bits/types/struct_statx.h index e8d492df77..353582ebf7 100644 --- a/io/bits/types/struct_statx.h +++ b/io/bits/types/struct_statx.h @@ -56,8 +56,8 @@ struct statx __uint32_t stx_atomic_write_unit_min; __uint32_t stx_atomic_write_unit_max; __uint32_t stx_atomic_write_segments_max; - __uint32_t __statx_pad2; - __uint64_t __statx_pad3[9]; + __uint32_t stx_dio_read_offset_align; + __uint64_t __statx_pad2[9]; }; #endif /* __statx_defined */ diff --git a/io/tst-statx.c b/io/tst-statx.c index d691d157e0..465bc616d5 100644 --- a/io/tst-statx.c +++ b/io/tst-statx.c @@ -37,8 +37,7 @@ _Static_assert (offsetof (struct statx, stx_nlink) == 16, "statx nlink"); _Static_assert (offsetof (struct statx, stx_ino) == 32, "statx ino"); _Static_assert (offsetof (struct statx, stx_atime) == 64, "statx atime"); _Static_assert (offsetof (struct statx, stx_rdev_major) == 128, "statx rdev"); -_Static_assert (offsetof (struct statx, __statx_pad2) == 0xb4, "statx pad2"); -_Static_assert (offsetof (struct statx, __statx_pad3) == 0xb8, "statx pad3"); +_Static_assert (offsetof (struct statx, __statx_pad2) == 0xb8, "statx pad2"); #include "statx_generic.c" From patchwork Fri Oct 3 19:39:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 121231 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 69CE13857B9E for ; Fri, 3 Oct 2025 19:51:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 69CE13857B9E Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=PoijLtui X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id C197A3857820 for ; Fri, 3 Oct 2025 19:47:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C197A3857820 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 C197A3857820 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520879; cv=none; b=w55tWuhzL3BSy4+JOV+PBV6Jp0d6pLizYjGxBHy4aXqIZ/DPDlcB/wWSKSJDveezEUx49ahJlFVOeAaZUj2HtgNLCvTu5zIYo1ZT92X1kXlGpDhANNTktcJBHisBE4rQGKQPuA2WAdQ4mcS6pACIiA1cgFNJ1M4LcINDx8KmPXg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520879; c=relaxed/simple; bh=OaTbf8c0n9B9szNOXPpZK7Les9gj3CoyWELLkE8DuP4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=scGvfFCZDhQH5bbVPSWEaFiENiUd+m3EmuL6wR+okRONf3lDjhfHhvafIL4t1msvwzBS1b771xyfKHYibTZBq9GYkf/Zamr8G+bkxioOEibJCb0kOlyGKS5q6zMCaZTyfhgR35eaDmYu2nOPJkHbI+LThg1zZ2+D72HBgzAqIEI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-77f1f29a551so3666987b3a.3 for ; Fri, 03 Oct 2025 12:47:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759520848; x=1760125648; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cMAvxcjfXKehGbIailC1BfS4vf1rx6tl+51aWyyJ/vA=; b=PoijLtuixeXwhtP7SCXtYuygEMqCX+WDUhf9RHyutPG/beVJPZMg8E6GHStoBQKTWo /Rd+pJsDc2agORP43JRD78KUhxoA40Q4CR0nFM/vv3V1AZb39+xYPGckt87ktl6vpu0D I42jd5z0eKJrZomDfVxF33vnPIbDgB+g+rI8WQr+hj4p2K8KWMFq3RR42v5emhb6bybX CKpnNGnxyNYtmhgiAIVLqalAK2DmFCmOMKlJFZvKu6yQLX39Dg/gQFEkTcIAe6x0xs+T c0UVZucDKQEp3v5gJaOD37KDvBtwTvW4ZFGBWkULYQRy3bJiliYc2qcH10ZxmT3HhxZb 6iTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759520848; x=1760125648; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cMAvxcjfXKehGbIailC1BfS4vf1rx6tl+51aWyyJ/vA=; b=Vu9udSvq+yRopFM9aUN26WUqGfea+DyZ1JBX7VKmuuDPsJY5D7rjUIzIT9ke5ICggF TBwsjODxEPX+BwQN0rW9dAtxSE03v41+21n2hzqoZ5G5EylpqmeHoqiXjM36usPbQD0v 5CNm7Sm18Ddp4alHq4ITbK57p8dl+AvXATPbAyavzj743UsrrePt2Q9xesaAzFihc373 lGP1Suawb1MRuU5jI64XnSah34eA7NnlBk5PNNzi05bjZfiI1yYVHPn0bFwVOQYpi97o XlK6vM2Mea2uy+phOkAtIK09dAQPnY7GEyx/fXE1nQtPbB6tsQdFID7GqyvmcYMvjWY9 Y02Q== X-Gm-Message-State: AOJu0YyHY24b9Uho0n3+t5RHC1ZiIChW3ajreB7qccRb5x7GunJ0ppeg GZ9ckHXV2KxD93vhI7UfXKdO048QDl2dqLCdKh8G17DDt8Ad487QxOig82mhZ48QM3H1cQGn2Hy uNIhr X-Gm-Gg: ASbGncseG77C/AxxEup2sjqAa9ollW98LVJwZjZZcvOze0tZn3OzmfkWRNyVTHfF3hU 1IiMj1hvvQI2TUhIgSzcWowLIb6FCfmPavLyJXie1ANHh/82mWKIXQ6sxfMQZuL/GzTaRJgnm/P RfMtLfGbWqa8MjApEijvfCm+9fs0Hg105lRtCrwLBwCXrslyFY+RFm+ppJB3Aq0qagOUPGT83pj SHPYeAR3wB+4xurDcilQDPL4+YRwprlXbgfMWdQuh58IMOhMV27BEWgDV8fASNvFL6T/s1cnzW/ WdObshv3wznHpAEukGXV8CIIEbGM8xQokpDT18sfF6FRflTCoqPc9aKvx+n9o/3yQM8k6FM7/5d 9C1MNgaV8w8FyXuI9HgAuboyg1TOamnLSnv0ACfhhwQpGI1Ea1Al+kgb7Nz4CKNz7SI7BrIeb+7 j6+BArscRrPi8frN1QhS5GBTp1K55luLCUzw== X-Google-Smtp-Source: AGHT+IHhSJWV1d4vW2riPRAo6G9/CifGyfCyNuiIojfBQb9ZzKqhPp/CAABCRQEyWAOapnEQSoU52A== X-Received: by 2002:a05:6a20:9193:b0:262:8bce:33db with SMTP id adf61e73a8af0-32b62093ecbmr5902551637.28.1759520848277; Fri, 03 Oct 2025 12:47:28 -0700 (PDT) Received: from ubuntu-vm.. (201-27-235-151.dsl.telesp.net.br. [201.27.235.151]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b6099ad8dc6sm5332135a12.2.2025.10.03.12.47.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Oct 2025 12:47:27 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH 10/13] linux: Update statx-generic.h with linux 6.16 Date: Fri, 3 Oct 2025 16:39:01 -0300 Message-ID: <20251003194707.2326679-11-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> References: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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~patchwork=sourceware.org@sourceware.org It adds the new fields on generic statx struct from Linux commit 5d894321c49e61379189b0ff605f316e39cbd1e9. --- io/bits/types/struct_statx.h | 4 +++- io/tst-statx.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/io/bits/types/struct_statx.h b/io/bits/types/struct_statx.h index 353582ebf7..bfcfa13e59 100644 --- a/io/bits/types/struct_statx.h +++ b/io/bits/types/struct_statx.h @@ -57,7 +57,9 @@ struct statx __uint32_t stx_atomic_write_unit_max; __uint32_t stx_atomic_write_segments_max; __uint32_t stx_dio_read_offset_align; - __uint64_t __statx_pad2[9]; + __uint32_t stx_atomic_write_unit_max_opt; + __uint32_t __statx_pad2; + __uint64_t __statx_pad3[8]; }; #endif /* __statx_defined */ diff --git a/io/tst-statx.c b/io/tst-statx.c index 465bc616d5..5cd2890c76 100644 --- a/io/tst-statx.c +++ b/io/tst-statx.c @@ -37,7 +37,8 @@ _Static_assert (offsetof (struct statx, stx_nlink) == 16, "statx nlink"); _Static_assert (offsetof (struct statx, stx_ino) == 32, "statx ino"); _Static_assert (offsetof (struct statx, stx_atime) == 64, "statx atime"); _Static_assert (offsetof (struct statx, stx_rdev_major) == 128, "statx rdev"); -_Static_assert (offsetof (struct statx, __statx_pad2) == 0xb8, "statx pad2"); +_Static_assert (offsetof (struct statx, __statx_pad2) == 188, "statx pad2"); +_Static_assert (offsetof (struct statx, __statx_pad3) == 192, "statx pad3"); #include "statx_generic.c" From patchwork Fri Oct 3 19:39:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 121236 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D3E333857BB3 for ; Fri, 3 Oct 2025 20:00:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3E333857BB3 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=QnH3w+JZ X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by sourceware.org (Postfix) with ESMTPS id 53F1B3858C31 for ; Fri, 3 Oct 2025 19:48:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 53F1B3858C31 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 53F1B3858C31 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1036 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520881; cv=none; b=EzoonGoCxWAwz/m3W6gksWZ9Qgz0F4HFiObER7VRaEbpC+AtsxiQgOhtjFVzuAWa1CdBlcTjcftGL6VdqUefkbbOJd90ThOlwVrdvHQk7bJevvNBJSfsZYxz/ko5nac0oOxXZ99ul82SihUIw+njmju3IpA6l/IKTxV04+bfXc4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520881; c=relaxed/simple; bh=gREASLhFs4gAoOJxt1lzS4pSQVVSRmu2WLo9etAPLaA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=mgL+FQpxXtGYt7LTXEXTSLszzA1FQDN17LFM5cOKffpPgo3WAVWQMS7rEsRUTbQLpMKPWUeZezQkKptUTcp3JU/7rQaFHC4PDh6vEAr8nw4bB3hxrt6QlymYbND5v1p8k9gqHloPuDA4+GvZ9fylq5X997/BnZbprFmDdxyjRFU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-330631e534eso2867887a91.0 for ; Fri, 03 Oct 2025 12:48:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759520850; x=1760125650; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=leFwKhDK3T/DwynK5KVg3f8RMloqXo9U6Tm1MeMhpck=; b=QnH3w+JZLFV79/5PMgJEW4eublQgc7mh5dX93ibzwbVdO2Uc/UAZN0o+ldY88BGqL/ cGoDnGowOWW7uDJ9kSUOtkCcaOO0ZekJ8cNScfGjmm7+IEoFwNJGfHKkh7ua25NptRgG Z1koaaLxKFePD6ftn02xRjW403eeoTk0MtZyeWF0CqtTKAWyeD1Ns9a5S8zjSyMcNWSY +Jjic1g6xAfbpQEq+9K2p/TLhtENa08NYA3M44fxEnw9uJpyNTU4YWol+6Il8D3+yV4K CxsYBcFO7kivQfTqehsMmvu9dMnIdAXrrXpfU2+JtwH0SQnQXwXHFmwsE/X4InV9LO+L RK5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759520850; x=1760125650; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=leFwKhDK3T/DwynK5KVg3f8RMloqXo9U6Tm1MeMhpck=; b=PGztSS8VeYbo/XdTbBRjVQx7S8z07IJDrLK3qTq5V7YksUoWHb+3qYj2e8U0EhltFD rJjlxmPz8e0xtOragkYuKqyyxqlqYKXPQn1wucIdDpH07jANXHqZzK6vxayWHDMVvQ+Q V83BueG3Dd3GP7yvY5poKq96LRIIzUkJg99IXxniG0oWGFCVpiqCST1Du+HF2SA8ROre x+SjeE3Jt+2UTXPc//YL5wTqPcagSqOQ61fXIMkfE9WNprKzGHzJnqqIwqgU5uvWgwOK OV4Guka8yUKKLcK44wSI8gvbMPEDjywVndmBctL5Id0OCRHDEJ+1nvJH7mOBO0m0IfTk 0vaw== X-Gm-Message-State: AOJu0YwN/oHaPK4IQMb60ae0pmk+2We7hNBrYyWjTyXCO9TmrVEbsXP8 o3l1h57tspN0g73KCxG5QklDcAhYH/1iXLal9szMtNvpAxgDpougfnF1K7tWQdNEWqPFyCJ+v7I jibxj X-Gm-Gg: ASbGncvNr2Q5vJjz4r3tU8SAOgvOCdK43ZBDSzRXputY/ctARlQIZQ9mmGYm+w34gJz 2G3N6ulaNDEeK9NH47XNeD1Wl7tCps6i9k52xgjvdnsIJpL4eaFaw/7c3+C1NAh1DdtGvA4rvxH P0i05h6kdJxM8aLRT+blT9ZQyFAuPWp0YuMGcCTZZOTWSokq7LqOU+Jzd/YNi93E0XoYrHfT7xr /gtBdI7qFyRamJewe1i8NbFon7+s5xqeEtoHjAcI4X9f0opODtfgClPSHqR72f5ZdpQa3WCGMzc hvegevc9zC3nQW5xUI1i+sdb9cRo3zYX64Fnja/fKSDM/25KdqoakgU0zKF0Xv9Uxroo7rwkfAZ 0jYXhLbH9E8QjP29BykmfyTR5LPb9xPthUUybpuYEV+Lln0UyMPP5qWDSwbIxhViJpS+qSpuP71 EFFB3LT+99/nvoxgY+OBrIVHE4CTlIoecHYbOdY2p/4qUS X-Google-Smtp-Source: AGHT+IHaKV3EWsPz5b6e2sdWcXT4Jsr8l+kj8rYXvaBXx2HRrlJPy23w18TDPU0A2yb3ITtl7IyaLg== X-Received: by 2002:a17:90b:4a8c:b0:32b:cb05:849a with SMTP id 98e67ed59e1d1-339c27bc475mr5437526a91.29.1759520849784; Fri, 03 Oct 2025 12:47:29 -0700 (PDT) Received: from ubuntu-vm.. (201-27-235-151.dsl.telesp.net.br. [201.27.235.151]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b6099ad8dc6sm5332135a12.2.2025.10.03.12.47.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Oct 2025 12:47:29 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH 11/13] Add AT_HANDLE_CONNECTABLE from Linux 6.13 to bits/fcntl-linux.h Date: Fri, 3 Oct 2025 16:39:02 -0300 Message-ID: <20251003194707.2326679-12-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> References: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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~patchwork=sourceware.org@sourceware.org It was added by commit c374196b2b9f4b803fccd59ed82f0712041e21e1. --- sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h index f425a4bf22..4377908d4a 100644 --- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h +++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h @@ -381,6 +381,7 @@ struct file_handle open_by_handle_at. */ # define AT_HANDLE_MNT_ID_UNIQUE 1 /* Return the 64-bit unique mount ID. */ +# define AT_HANDLE_CONNECTABLE 2 /* Request a connectable file handle */ #endif __BEGIN_DECLS From patchwork Fri Oct 3 19:39:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 121230 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3A6BD385772F for ; Fri, 3 Oct 2025 19:51:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A6BD385772F Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=KOXmOJlY X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id D38483857B9E for ; Fri, 3 Oct 2025 19:48:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D38483857B9E 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 D38483857B9E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520883; cv=none; b=HMu1jUwvJD7svDmXzGtIgDvcnqmHjTFttNtf2p1u+UOHNSh+oOEhmXr2zuvv5y1eHxEJWx3H5fKDY0Gm/MJaVRl52ehaSMaeZXL1eQF12NtkSV8REhYnrICh4K9Ill58Y6is3RybrYFZNSaZCN4/K0sNXViUQPGs0NYE/ORx9OY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520883; c=relaxed/simple; bh=JuHboZNQwsAkb97CciKOKv+ZguI7rBNAdUa4UuufCWg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=h20rLHAVX6gHkm/aPdeL7MToWySwSU49tC15wrvoh22zk/N85wPc+ur3y+SgklP5YV2/8kJ25CpILry1LIgP+Y8+DbfoYPI2EkJ0tffKqx/Txl3AbxGI5Y9fAXCgQlrALAjHB0+NLVGxsiJq1BmYhUMMGiuwm3JmjjBtPdjok8A= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-78af9ebe337so1916839b3a.1 for ; Fri, 03 Oct 2025 12:48:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759520851; x=1760125651; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lH4o+/z76PpCQWzqAf6PYAu69tcXJFcSB/5l6nScOTQ=; b=KOXmOJlYMTsMHSwAwvmlVaXv7F2A2khkRIH+fuINsEY9JaZ3nUqNe1gRCz3kml45Ff +J9S7yIFoTfY5Mu7nY8JvBF4jRzwj7qVDQ8HKmb7Mm8XoCXU5PNLWcQ9G/z9UifoRRHO k9641kNQzXP3KfykkNxZAE2ZD87OI7ooKUFWxlOUt9GzHeu2W9+LxGjzUqcfdGVbvekd 8PvamLZEC2lWP7lfZwRsimdgTEs0U6lnmFXL0Z51D8au4DOzh7u5p1QqgRqbj2uaZJ/Z ZPn+1JzLI+iX84spjx+Lke7vokN+D3dTWnlkGprJLiPbUyQ8KVYR4S0RNskbWnt+G9bh ALWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759520851; x=1760125651; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lH4o+/z76PpCQWzqAf6PYAu69tcXJFcSB/5l6nScOTQ=; b=m48Ba3wm3FqJmWZPmPIAwWKkD4CJMqn/qbp/h/XZtSTgic2yr9NFb8bRzq1TbEJm7K jb1lfevWRozpFX7A/GjuwT5mES2EGeDZZgSJd0eMdlifs9p6VUvuDqWiqxLY9opnh0Pb ZqtKmMyWBs/vYOOEcRlAiiUkAaqLf3eHvqtZ/0zasP7+RB94MVcqJRNJKtQBl0i2dHRS Pve+m1+SF86vKcV8iAHxKIyaSNZXimEmp/EJUp3Npbb0zF565m0ZeyenZqx5Wv/nC9Ue /xD9pGfH+j1ybjIzATtUxbt/6BqPpdR1FfGPsYiMYP9CNb/giBZstDF2OizqsVMlW7Ee TtqQ== X-Gm-Message-State: AOJu0YyJHzFCsXStg6skUJxOXNSqLW4msFN3rCknY20On12VjWHBkpXV 0EezoiSjKbhSrxlklvVda8fRqGLldsgWUxImz4Q61Vr40HcB8lg/FTkfUdeVOhkrlP4SpQJkQlz GB5Kq X-Gm-Gg: ASbGncu5J1m0gtX5/WA2FYI75UeuGYD9hmZnOSsmoLUThcuKw4Kwz/dVVEDgZRhEBzi de5zEvjqoFECtn3DeG+iWPYos3AUdKuX9w2+5ogqMYPy+ALj3Vka963Qi06mSoZa2oTGyZPGjVL zs3hBMCFDBd2UiXuNN+F96HT2UGXnfGMoPkLhTv5KI+7O/FBzFkDsuXhmVK58id2jRebJYA1+Fp yNLlW4sDMcbgDaZdQJb72RW0qGeEw6W+9gsw+/v5TArpzF/46+NAjJtUc8u9IjuMTXU+0G1yDrD jiqQ+PTWtV2Egksf3qNWrg0BGbv8ZhTJFHaoZBUcqucI1Mv8RalmrV2umJPqZFrvjVwQQwSf+z7 0rgI4/ADveVgb+XVKEbaTXBqgE5AYmPM18DKmH4wkmZrHKfuRFzgFjr0+QfCQ2jhojBmwW2esfh ZhRbUzAR237mbH/W8Ei/aR0DDVIJgeR2pAnQ== X-Google-Smtp-Source: AGHT+IG05YfyRH0MWWn42zBqObeSPDuRe4U/HyWGK/dOUC7H4aqnzxz1gI4YNnBoNHFL+3W0qXckEA== X-Received: by 2002:a05:6a20:2446:b0:2dc:40f5:3c6c with SMTP id adf61e73a8af0-32b6213f33fmr5654247637.54.1759520851378; Fri, 03 Oct 2025 12:47:31 -0700 (PDT) Received: from ubuntu-vm.. (201-27-235-151.dsl.telesp.net.br. [201.27.235.151]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b6099ad8dc6sm5332135a12.2.2025.10.03.12.47.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Oct 2025 12:47:30 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH 12/13] Add AT_EXECVE_CHECK from Linux 6.14 to bits/fcntl-linux.h Date: Fri, 3 Oct 2025 16:39:03 -0300 Message-ID: <20251003194707.2326679-13-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> References: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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~patchwork=sourceware.org@sourceware.org It was added by commit a5874fde3c0884a33ed4145101052318c5e17c74 --- sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h index 4377908d4a..16c83e3349 100644 --- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h +++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h @@ -382,6 +382,10 @@ struct file_handle # define AT_HANDLE_MNT_ID_UNIQUE 1 /* Return the 64-bit unique mount ID. */ # define AT_HANDLE_CONNECTABLE 2 /* Request a connectable file handle */ + +/* Flags for execveat2(2). */ +# define AT_EXECVE_CHECK 0x10000 /* Only perform a check if execution + would be allowed */ #endif __BEGIN_DECLS From patchwork Fri Oct 3 19:39:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 121233 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B5A0F3857709 for ; Fri, 3 Oct 2025 19:55:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5A0F3857709 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=c0hnfd6N X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id 853393858427 for ; Fri, 3 Oct 2025 19:48:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 853393858427 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 853393858427 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520884; cv=none; b=eL0GY86CZ9TPyvEjdbiobvlOc/ZwgxUumUXSuXd95UKUmYGq18u71Xg4PAOZ6WY72gEV4HJa1WQ7QJmK2Ak+NBqaPAVIrVghm8SupnDigem8rYO1CrBubmIZ27ZNdrGkpJGcdskDkGEa4qCA+8d1LN3HtNi8WcHkJhKLHE/3dt4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520884; c=relaxed/simple; bh=C/8GtMeWIi4bfG75wbeGr9wpPJfZd/DFpuhBFINrK4Y=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=nkxtO29lITax7HeGywidtTwLXJSJaVILcOfM0xDFx3y2P7M0vkEy1kDGBZisadjnT7VGT4ZUaLd9vmRxs/5wghfdc1y1WDg+9GhsR0pzZILFLa6Smkjg2f++8e2zhwSBQ3e3IyY8YIBEMg1wdPODDebqNzHUN8yvZ2mLG18uCAU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-782a77b5ec7so2426948b3a.1 for ; Fri, 03 Oct 2025 12:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759520853; x=1760125653; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yOp+xV/HFfacdHVYZfLR0lM0IJqPi7R/od/ueAVBYNM=; b=c0hnfd6NoVLeQ8Vyk7dwTDeCasoyz63+axHpFZotA7L4sQAVevjPLKkozVysvrF/po DJRGWq0l2KSN0Be5esE/9rzjlJQhjk+QBnB9meoEGpFQNStsfRul8pbi9ELtGp1I/aMh 9FWrWN1DUKYF62a1yo5IiwyLwR8d9brkpVfIE9fG02cCknAZgkAa7N4DjxwfsONXmcWC g8XOstj40+p5Fbhco6RpVUl30LJtfA2QaOGbPya89Xw96PBKMOctFK+TqtksgFr1QqnS YaazXfMmAxJHFuLMCsIRXrmpFovLqZgb72Lenxl/+LSbQyuvrcBfbEV/nd+0HQH2C7eO jiTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759520853; x=1760125653; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yOp+xV/HFfacdHVYZfLR0lM0IJqPi7R/od/ueAVBYNM=; b=ZctYBbXEVvLF9c+72ht3qZZJrblO+sOeWqNcXfC3riEtAx/FAMdbIcjZj8kHMiBD+1 IftgbEGgA6HoktYA8d8ZcKWqm1ta09s4x9AKiSF/TCFJHbqoRsw/Cb/LJO8+wvR1uNCe P3o+i0+x+lz10lMUK5er6Kt1UNNI2GVlSCK0XF+passdLKWo1oN5abHxsDxGj8GzVko0 Qi/NUHhJH6sXJvDMDAmT+tNQe2y3rl499IDmRiZPohBXUi955Z4zE3z6uvvfBtQCug/S umiWhKavMuSEgde+k9mCGw7YsE+/Gyw7La+RosrKowMxs9AoCk0y+nhcMex66QaDj6Np EdWA== X-Gm-Message-State: AOJu0YyAO5N5Il/2oHOLJ3F2z2N/lZbO3/P8zrzhghJufQz6j65E8lTG aqvSzUMGfZ/xSuina1n0bizARiU4FuDOnHUNga24yzO/RUJTWglg5oB+1aSjellcx4dOYK8Pp5C JW1Ow X-Gm-Gg: ASbGncuITGsUzTrGwMHw1ic8bR+S9sqxuiZS8B2cymKYE2C8kIYSAcvYfWC3V2qRgvh 03OuvWnXOEFnw4gV6A6fs1XyfZKf1r4yA7NIAYtEWfHyZGPIrO/KEYB/DtVOwgt9LEspEqesZn5 1l3tlJ7GhNvY1IhSZeww14K1tCRaSotpipVbFlK9BgbB8gAXMkKiXDnw2SL1rtkT/vnDrq98JQA aLNwiDOtt8oex5y9bfT6IRETkXtr8bGQ3V/F0wk9n4QWOdU672tgAUvXzXxkLqay2pLkK8ItTQu T/PFsrWStwfvIe09b/SvAD4Ou8pM6/j1nubh5I+EiVsf0wfRpGMSz7jTYlUsDReYNlzZNiaMAKP QtAl3zVsAmOevsEog1tsFLBCc9CIdTGZOXMlsGYm5cC+TymCNpkWTfOhf57coad9xSD5hJxdA0f vuFC3OKOZ7/rvNupx0VyIrCPTAtOP3EEHjeytd/0+gckCB X-Google-Smtp-Source: AGHT+IH4wHw5baJA0m6i0kwIKekEiSapeS/Wu3/xzMqusYlOZvOTH3k6xQKFzfIzQfpH9bXzaV1eyA== X-Received: by 2002:a05:6a20:e211:b0:240:1a3a:d7bc with SMTP id adf61e73a8af0-32b61dff87emr6167345637.3.1759520852984; Fri, 03 Oct 2025 12:47:32 -0700 (PDT) Received: from ubuntu-vm.. (201-27-235-151.dsl.telesp.net.br. [201.27.235.151]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b6099ad8dc6sm5332135a12.2.2025.10.03.12.47.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Oct 2025 12:47:32 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH 13/13] Add FD_PIDFS_ROOT from Linux 6.17 to bits/fcntl-linux.h Date: Fri, 3 Oct 2025 16:39:04 -0300 Message-ID: <20251003194707.2326679-14-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> References: <20251003194707.2326679-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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~patchwork=sourceware.org@sourceware.org It was added by commit 3941e37f62fe2c3c8b8675c12183185f20450539 --- sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h index 16c83e3349..f9b3de11f4 100644 --- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h +++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h @@ -219,6 +219,9 @@ /* For F_[GET|SET]FD. */ #define FD_CLOEXEC 1 /* Actually anything with low bit set goes */ +#ifdef __USE_GNU +# define FD_PIDFS_ROOT -10002 /* Root of the pidfs filesystem */ +#endif #ifndef F_RDLCK /* For posix fcntl() and `l_type' field of a `struct flock' for lockf(). */