From patchwork Tue Oct 8 18:45:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 833601 Delivered-To: patch@linaro.org Received: by 2002:adf:a1d9:0:b0:367:895a:4699 with SMTP id v25csp447853wrv; Tue, 8 Oct 2024 11:46:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUW/5/axFL/2PACDs2ZElOgKK+JcHa0ItgfwKIXwq1TUsAXP812gcesfvN1FkWUrVw9VRb3lA==@linaro.org X-Google-Smtp-Source: AGHT+IGM3/z5WaFcgrYQRrvlJQy7SfcIWXcWcU8x6u4yXHrwfMnsBLP6sJfDAqQtuBi7yiuvsOlf X-Received: by 2002:a05:620a:1a93:b0:7a9:c151:41e8 with SMTP id af79cd13be357-7ae6f45314emr2447066485a.28.1728413215121; Tue, 08 Oct 2024 11:46:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728413215; cv=pass; d=google.com; s=arc-20240605; b=DLLHkoTpWv5NbJktBOi4a4KSWhg0cRKhFd4EGOVFj5+eE1Dj/DFtMoLjwhn1SL6Irt nSsAYgIuJdwcMNsOUNUYfgNAZFCaCuqrPy8lpnWem+BaX+T6KR47ZqgarUIXXTOeH2YG ua25ljODsfoU0HVS8gvA0zlht5X5MtJ9V4Z7Nb4GNIAgtCjcahqx6lZgdnJUJAonCaSs gey4fyRIbdpevLpFPom3ddcTWKUpik3y6rJtqlwYtjpdg7yA3FzGd2k4RbnGKJ9rjVab xPgksm2UmPQYb23Ss1uLmXy2oQEkcYXnxqqRidrvGQzNi0SyK3X9NnmILByjGy2oYZJJ Ziyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=XhbMmUoWo3/zvp7G/59KJQeAgDJ+vsC5ZPtz/E2u9XI=; fh=y8c+zjefmHK4fStUusN64Sx8n6mpTt8O9P1WOVzrReM=; b=Nq+ooWo9pIjC0quKEHPFPIl77eslBlWB8L++pYkw8sVWlQ3gW1QUcODdezMyyD/8ky CPhPrxpxsoUBPb0yr0lZPcv+puQ6Lc4ULx8tCPG6O5Z6qzoz/7OWd1SkPGhRa+kkEGA7 shut9M9JD/0CYrl1f2kIZsKBY/s5CeX/DrMYxrcVU+c5TEWoOfAnaLxqc0DLZXM/miKv 6C65M9TsdUx/fNc38R963rMs/NZxtXwIJ+Bop2m06Ponrv2umcwmcDLqi4HMlZCpSkFj B4dMFYJLtcAgBK6VAL31UP3yAZlv+XWYADd1vG9VCkBBlcUpGRUmS5B2ktMfcT68KIti skLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t7fGOIR8; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id af79cd13be357-7afcfe7c29fsi21942985a.225.2024.10.08.11.46.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:46:55 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t7fGOIR8; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 84DDA384F4B8 for ; Tue, 8 Oct 2024 18:46:54 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by sourceware.org (Postfix) with ESMTPS id F3B24385DDD4 for ; Tue, 8 Oct 2024 18:46:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F3B24385DDD4 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 F3B24385DDD4 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413202; cv=none; b=lqwoW+fgXDHWPV86FrDvvo58Qf1ZjYpKefPE6Ven3j5/PmJfe2OIiEgftLINlPElaXZM1XkBEcRaKz7sJpZ7jhlM8G6sc+88qfaBqPGDCUPW6TQTRVIJS1iJmTnCTl3JafwLksYoQak5mUOQDmgMY+ftkxecBEGZVXTkXzBIPAs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413202; c=relaxed/simple; bh=doSgKaSU6flWQ8YzCMwMLYyt1SmduQo6GGMSC4o9WrA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=A2YUosrcMEEE7VP9P37dzP3/wwV7qm3fqc1XBQDYx2MfhFFQwKehWhAezEV1ZjEBI6+aOGEVVhSoURZTrA/r9rukAJwL0WNV4dNEjrmfdXpQ5fbGTfsIAQFFbts/ikGdh/6UogEKKS1FQo22a34Z2JafFl0rZ0IxOMPp7+EgtUE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-20b86298710so51238115ad.1 for ; Tue, 08 Oct 2024 11:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728413199; x=1729017999; 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=XhbMmUoWo3/zvp7G/59KJQeAgDJ+vsC5ZPtz/E2u9XI=; b=t7fGOIR8BFaYlh3f1MVnsWzjLA7FbRTCKg8HqK4Lt+0MRO+recgRYlHKjBds3/sHcb YlmOIK5wDbBHHGO1ad0Iu/Z1nd55JkrB7omAFis6FS6aA72O/wNnjz/H+GivbqbpZrfZ L28EAhZ0zl9notthUSQPzB2dUxwjtlY3bJ7M/30lWQ/AijUzGWKrd75cy9FC+6Me50KF C1svx3ujW0SITJL8rsF3Xo3npXW+YnXdOQlhCe3cAIXkQoGMUUyriCzVWTIJS2jjkpOK A3jbovHfT72zHV3SjI0vpHbkqxKsHmCzLzfFBZpY+Zwp1prYYACoJfcbfZLZ4HaA0Saw +F/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728413199; x=1729017999; 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=XhbMmUoWo3/zvp7G/59KJQeAgDJ+vsC5ZPtz/E2u9XI=; b=L4mbZhUtxi/BcgudNm2WjXhJoTOrBRW0TAjd+3dr5ob67JWSY0GS0eQIP1fzZEKP6p O7vs/sYG1jo5Tfn1hf/JR9Pf4NumyD5xX2honawBUWvTuOsGBy8sYAuE5vwzFQoFDGCe DnBQje4IpBmqLWPoBv4RCfhTneVz4LqcuBAntBowOw2nCdmsWoEgcS9L+2d4hLLNKtKx aHSxxIk+Vz3ZTnIa1ZYcyhaZ24F0grFiea0IiNLDhfkDWBIY0siT8dW6u///18VizoXn Vl53LXL6ar0kwsXcH5ddboco6qXSCLNRNTkKgRfWn4/ZqJHpfqjw7idmGfzlu0T4yhwv YC1A== X-Gm-Message-State: AOJu0YwSN1kTHsr1E5XTeXN6zbZEw6tzg8/r7yC0ySdRb4qMaaaQDaDb KWmr4OOHne40857NCZndnnED+0d+1G72i32gplq+Hh+1AgQ4KEicKUbkcuzV8NOjoYSTpZYUIsA hM3g= X-Received: by 2002:a17:903:4404:b0:20b:6125:69be with SMTP id d9443c01a7336-20bff177771mr231579085ad.49.1728413199520; Tue, 08 Oct 2024 11:46:39 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c1395dc41sm58068535ad.217.2024.10.08.11.46.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:46:39 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH v2 1/8] Use Linux 6.11 in build-many-glibcs.py Date: Tue, 8 Oct 2024 15:45:23 -0300 Message-ID: <20241008184634.245607-2-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008184634.245607-1-adhemerval.zanella@linaro.org> References: <20241008184634.245607-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org Tested with build-many-glibcs.py (host-libraries, compilers and glibcs builds). Reviewed-by: H.J. Lu --- scripts/build-many-glibcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index 5ee45011a1..f81e6d9aaa 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -831,7 +831,7 @@ class Context(object): 'gcc': 'vcs-13', 'glibc': 'vcs-mainline', 'gmp': '6.3.0', - 'linux': '6.10', + 'linux': '6.11', 'mpc': '1.3.1', 'mpfr': '4.2.1', 'mig': 'vcs-mainline', From patchwork Tue Oct 8 18:45:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 833605 Delivered-To: patch@linaro.org Received: by 2002:adf:a1d9:0:b0:367:895a:4699 with SMTP id v25csp448195wrv; Tue, 8 Oct 2024 11:47:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV11I6kM3wSf0qF46oyxtM9GmNsaQWnDMA4M1uEZxFdEpVnrigYN5u5mdQPSWnnIkbNdp7roQ==@linaro.org X-Google-Smtp-Source: AGHT+IEwS6CQ/orJIjrmZUFw0DMgzg1TzfQAdfwO7v0nIUSRjaSCCT5J4Lyn9fHsqya6Aa/GiFtI X-Received: by 2002:a05:620a:2608:b0:7af:cb6b:b4f2 with SMTP id af79cd13be357-7afcb6bc25dmr335463285a.41.1728413270820; Tue, 08 Oct 2024 11:47:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728413270; cv=pass; d=google.com; s=arc-20240605; b=hRC8J3TnCKFDRKVCFdyyrfrTa7Lqv75DfxTl3DZBo0iLlCNGLUv9srf+3bsrshNeRv cqbPfqOExTuqsq4M2bk7XsQQRZ6Qa73vpAl22RZnvCRaj0VBhh1JeEqVsvMVd6PAaem8 om7cMcz8JmFVByNoOCTPE8BW/5pyD11TX9WqYKUQWK755QjGji8tBT2oF3fAPJoXcxL6 M9Lr9qe0nf5Cxx967rSkN6L3MKj2tK2S3YlhdUGbdpLQC8W0IU9oyQJ0QuEkOV6kViwT QM6BZ1UgHCiszOmzqrsevu/3THDpaTci2rPr8JnoLyoN/qw6VGOmpZqREzpYVp5JiECe ZfSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=XPTzDsVg3UHOoq2C6mNDkCOWJ1sjL3m/61ZtHCqAuQU=; fh=y8c+zjefmHK4fStUusN64Sx8n6mpTt8O9P1WOVzrReM=; b=ejecyO/O8U3fKdmQu3L9Mtyq5yUHq5WpBbz++tnXnjctx/wOMfz9f0/nfsKryd3mFH Jp6iGJSzm4RkmYwfkEbkgy3o5pPRac7vugEnAw1puJthe6q6vvpzN+5jh9UbgvQOUMCK VAne/FnJwi2kYjPY5cFVUlXA3FSpuPUmSQ8PdvsFO5Q6et0MajeLecnBCEBjgCJqMfY2 39qIDpw7XqN9y0VI7MzKMmsoCRIDreNO4/rXDL2cGakfWvnb2sbY8P200xBYb9IyMQvu Sugbigwv+iDqOab3TOmzQrEJiSmBmQVkNCybtZ1PS2ojbh4IXV5ZyGMoxs9sk+/tcXJl pGYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=krCHOV+y; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id af79cd13be357-7ae7562e236si899476285a.210.2024.10.08.11.47.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:47:50 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=krCHOV+y; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6C58438650D5 for ; Tue, 8 Oct 2024 18:47:50 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id 43C9D385DDDD for ; Tue, 8 Oct 2024 18:46:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 43C9D385DDDD 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 43C9D385DDDD Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413207; cv=none; b=TFMjNDC71bHOkn/Ai1od7iO3liurESfJPu6+v+gzj1C6H3rbXo+NLhk8BIbgf2c9y5QRlJwDP9U2qmqJf6fNliN6+kzLldLjy6xYP5mtRcd0Y6ldaYZ1J3QiUW5+oxFKqfB2uffdVptaQ08/8jMdk2GhlvTyOVGQOxO1Al4FAVg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413207; c=relaxed/simple; bh=e0qaIl3d4bP4mO65d6Ch7FHwoutfhAODBcnI2+khcnc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=rCvyXIqVIPr6c0KwgMJGczKfj1XIlCqVNCtmUqWFZdK2NV6iAhNk8DF9WcG0dTOhYakbSISK8b989Tha4jYWxzQSOmt3pG04WiN0RgRqZrFb/d8H20QYTU6anIY3rTQ/gtJbyECSQAO952nduF4v7tfD5ZSWaewde6/O2l30tAE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-20bc506347dso48136395ad.0 for ; Tue, 08 Oct 2024 11:46:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728413201; x=1729018001; 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=XPTzDsVg3UHOoq2C6mNDkCOWJ1sjL3m/61ZtHCqAuQU=; b=krCHOV+y+smbcnvrb9pIpTyJVCWO+kKhnddz4XS5pqOYgK1JrRyF1whyVlNfcW9lHn /lwwpqrtf/2xcjKwFb1HXlTKcbQjPVyitrdFMFyzCCY//lPjc9bQ+DtMpX6r7PvMGX0F SlxSCM1iB2gwsh/Lj54r9rIDCV48aJpk5HGcAIyHEoA6uprsMAjhXhp3D8NJPMOwXtba 3imWeTUnhZJlD7sAYwQRl6Lu5dvZbuuwtxIe3nK09IOarELUFUS3Qt/z8nIvPd3sZW+e KmgKvXglJ1nuLSQTX8zKXrldnPQ6OR+KHo7agI0JhyN7UwijFxYyrg8U+XyUUTWj2MZ9 Pe0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728413201; x=1729018001; 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=XPTzDsVg3UHOoq2C6mNDkCOWJ1sjL3m/61ZtHCqAuQU=; b=HRZ5iCmZkjj8Y/ZDjd48UD+ZLxHbfTNvucl0Hph7okwlv55/8b09PSVYuglghFAgUC kfSPZxoohaTC1rDcoJJfJXpWbKlag2sHo4qjXN1ap2XN68v58e+JQ7iVxlTXpbkByT/7 xDyl6ZgqOJA94RY6zE1Z34Ub8g6TMlFHNfbE695JdVgVVydtgeVoBUw4VKolltpI4qvC VfDDHJHYwssgp4NdQd2S9dPVKe3duYEttTXje2bZyuHZuxvNNdNrk/PxVD3Xx47ayHy5 jC5NCYPGyEKTCJ9jwjEp4IrUYctTA+grIUcMGQ2/vpRMMRnK5Wfg/jMPBQgnA8c88PQk P/lw== X-Gm-Message-State: AOJu0YxVTSuWPjOo3aw8Fh0bYWIF+Gox90pw/RWO2gXCt96lcGpQB99D VmYfcqyL/MQB68kja7azPCwmbAc3IQrv0cQW2slt9uikBLSmWgi1mb/MM8/2HTNONXRGwgcQ8Tn iTl4= X-Received: by 2002:a17:902:e84b:b0:20c:5d5a:af5c with SMTP id d9443c01a7336-20c5d5ab1a8mr20540335ad.4.1728413200954; Tue, 08 Oct 2024 11:46:40 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c1395dc41sm58068535ad.217.2024.10.08.11.46.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:46:40 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH v2 2/8] Update syscall lists for Linux 6.11 Date: Tue, 8 Oct 2024 15:45:24 -0300 Message-ID: <20241008184634.245607-3-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008184634.245607-1-adhemerval.zanella@linaro.org> References: <20241008184634.245607-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org Linux 6.11 changes for syscall are: * fstat/newfstatat for loongarch (it should be safe to add since 255dc1e4ed8 that undefine them). * clone3 for nios2, which only adds the entry point but defined __ARCH_BROKEN_SYS_CLONE3 (the syscall will always return ENOSYS). * uretprobe for x86_64 and x32. Update syscall-names.list and regenerate the arch-syscall.h headers with build-many-glibcs.py update-syscalls. Tested with build-many-glibcs.py. Reviewed-by: H.J. Lu --- sysdeps/unix/sysv/linux/loongarch/arch-syscall.h | 2 ++ sysdeps/unix/sysv/linux/nios2/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/syscall-names.list | 5 +++-- sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h | 1 + sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h | 1 + 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h b/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h index 8bb82448a7..7e732256fd 100644 --- a/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/loongarch/arch-syscall.h @@ -59,6 +59,7 @@ #define __NR_fsmount 432 #define __NR_fsopen 430 #define __NR_fspick 433 +#define __NR_fstat 80 #define __NR_fstatfs 44 #define __NR_fsync 82 #define __NR_ftruncate 46 @@ -166,6 +167,7 @@ #define __NR_munmap 215 #define __NR_name_to_handle_at 264 #define __NR_nanosleep 101 +#define __NR_newfstatat 79 #define __NR_nfsservctl 42 #define __NR_open_by_handle_at 265 #define __NR_open_tree 428 diff --git a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h index f94e212995..b1d0fb6f6e 100644 --- a/sysdeps/unix/sysv/linux/nios2/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/nios2/arch-syscall.h @@ -24,6 +24,7 @@ #define __NR_clock_settime 112 #define __NR_clock_settime64 404 #define __NR_clone 220 +#define __NR_clone3 435 #define __NR_close 57 #define __NR_close_range 436 #define __NR_connect 203 diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list index 7871f93b94..aa5b479e2a 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.10. -kernel 6.10 +# The list of system calls is current as of Linux 6.11. +kernel 6.11 FAST_atomic_update FAST_cmpxchg @@ -653,6 +653,7 @@ uname unlink unlinkat unshare +uretprobe uselib userfaultfd usr26 diff --git a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h index 5d86e75dd5..dfc10d0c7e 100644 --- a/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h @@ -359,6 +359,7 @@ #define __NR_unlink 87 #define __NR_unlinkat 263 #define __NR_unshare 272 +#define __NR_uretprobe 335 #define __NR_uselib 134 #define __NR_userfaultfd 323 #define __NR_ustat 136 diff --git a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h index 6c35068d8e..9340daa967 100644 --- a/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h +++ b/sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h @@ -351,6 +351,7 @@ #define __NR_unlink 1073741911 #define __NR_unlinkat 1073742087 #define __NR_unshare 1073742096 +#define __NR_uretprobe 1073742159 #define __NR_userfaultfd 1073742147 #define __NR_ustat 1073741960 #define __NR_utime 1073741956 From patchwork Tue Oct 8 18:45:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 833602 Delivered-To: patch@linaro.org Received: by 2002:adf:a1d9:0:b0:367:895a:4699 with SMTP id v25csp447902wrv; Tue, 8 Oct 2024 11:47:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCURooeND3VqxKizSkCx0DoNziNqZpK+mepBnR2Qfz3b73z6+jpr4KDqqV2sdXUBG1NMgZK+JA==@linaro.org X-Google-Smtp-Source: AGHT+IEPPeRYM7gbB6SZF3yWP7Caao5yzqzSUIrhtcH80sFGtU7b65yeGaa5Xmh7dsxCOAok6zKH X-Received: by 2002:a05:620a:424d:b0:7ae:6097:37ce with SMTP id af79cd13be357-7ae6f48e1e2mr2800750085a.45.1728413222243; Tue, 08 Oct 2024 11:47:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728413222; cv=pass; d=google.com; s=arc-20240605; b=NifL6JQ1x0380WbfKDx6cEzQ75Pk3nYSNjndN+ROgjevegfoza6sYcHm9JyopVbSdU IkVtgD/MUP7Vt1e/9jKflj+qwmSY9ddF+8j2VWaNi5JF7MD70S+Q9phcYe+k3pKVQE0W 1OMPL37A35iYvtotgOO/1vJbkTRYkCiB4+SicV0V5AhQEvJaaiOkrf5AgAD1LYOr4i+l rJ+C40UusXfGTtEyiPEWdG6pSP54ctzqIVapiNwOX94WToNezrHJ4WCVBPrPRUxvLLx3 SY2+J12X/YWX4S8tZa79Q70dddzXAaoHxhp46SWMVdldLN+GcG5dy+6ZZmgBzwx8KbYq pQYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=pIfDF5IYzNqpy2LocItfhplNquXy0LOTR387eukWeuo=; fh=y8c+zjefmHK4fStUusN64Sx8n6mpTt8O9P1WOVzrReM=; b=QOYnP5ft7H9kKu5B74hHIk2AHWAD3wqQ5+Wn7R+x9Bw1p1+xfQjBjL0kJJPxfAkDaQ 9AzUpfmhA5A5O6b5T75gLq82VZ/DPu2NonLdgHbg+WiRWGJtmsrESsuJW8QPM7TGuoJD g1xglKl9drZMqg+kXgI+66etrliNNeGz4a5zAZEHmenr0jarAOZeP65fnKJxhmOjyG6X rGciezRcThVAM8ZBPF2iYej1u0H5oPQ/yCwc4OE+e1n9fItp5YwA0ujQNdpoMO2onG2o yOvEoIWotuuSdrGBAQ0ZjBeiHzeDRlbgLaH6zw+C1vN7wiHOwkPP7JecqiiVsFtvqbDI NSWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pWGBOT4d; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d75a77b69052e-45f0898516asi6095591cf.154.2024.10.08.11.47.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:47:02 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pWGBOT4d; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CF1BB385020B for ; Tue, 8 Oct 2024 18:47:01 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by sourceware.org (Postfix) with ESMTPS id 970D1385DDED for ; Tue, 8 Oct 2024 18:46:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 970D1385DDED 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 970D1385DDED Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413208; cv=none; b=xW7uNZDC83p4xG7KWSdzFPGsnGLZym9eQ9mr9yfKchdA3mOpX1koei3NRSqIQ+M1Ld+1IScx9nHhUU01P+CSw4TmskhS0Mf852GTTNJi7zrL2BlEOw0E8GdmmzQUwY3ldx6sjdM54OADonCkHlPqegXpaG4sP6SUUq4fM5eKi40= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413208; c=relaxed/simple; bh=8zS3JnIflNr7nxtYcvVvptL9klXXFKQrZY/NSxgjUGs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=PKk3v0rUpgZMgURZ5XaCbHuwXWkNVqbBEzgdhYw0xw3MlbogzbztxRzNRSeQl+/zyv6tggk2Jc+RMbHNSnbCozVbPZk5G6f4VNKxnkJhoDEwoHVttp8qSKtIZbQDXBBT1PrOBQVGC0ksergv4k4LBHRoQxxEsU3WOfK5KTXjHBs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-20ba9f3824fso45790745ad.0 for ; Tue, 08 Oct 2024 11:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728413202; x=1729018002; 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=pIfDF5IYzNqpy2LocItfhplNquXy0LOTR387eukWeuo=; b=pWGBOT4dTfIjD/c4Bi5VAyqpCtbA9esjMr4R8rGBQeHSBsCcvtgk2zdnXGaaGVAtVL mwjEiPQ2qSCsNifipgYNDmpYpc3lrg7lAvQfS9RtDvejfxJaCPqndixMvKgxeddyjCsm L0Qc+wqFIOen8fr6E6bekZS3AeLUt5dR5//SDVTfy76test8l701cOXLeDkhJl2ftW0n FkJ7m+ICpOCjmUFD58z3rLYOOJRv3emhJnF2uaIcw6vCCtil9rRZVQEjFTFVC+ryf8W3 9eOKSJ7gs5oo7wXZjglsxcOlQQS4EYy6mG+Y0BYVsW3v//Ej9E701hG895S96FzPbJRm DoCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728413202; x=1729018002; 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=pIfDF5IYzNqpy2LocItfhplNquXy0LOTR387eukWeuo=; b=YiTpofBiVJrAKzJx2kBC1MVWYWQLhS1FuzG/OaNYOut8jAifhMQkU1Mnj1RIYIjIsH mGYPGgRG9qmKrxC/KilaljCMjxJnjQX5kYcX2bsOsTCIicRMJi0/qALe8QbFnc49K4aY hyww2/RrnTBpuguQtvo7358JQRynDq9g4Fkoz9CPmWhIGOaWJXad8TMLE7PUTt4NVJaP 2WpBR5oKresh5mhh1qPkfvPyiwz1wMpHAj16CrgJLKO+dc/0WqRMTOR/v5uyqRa2kFSL 7hsAqCdOEDHSOBtm5ESzHLRZPtyB5w2L3pGcfYMrYp1Uwt8SGuXHiehOLh/sSWZ8rBrh +lWQ== X-Gm-Message-State: AOJu0YyfnbJaid6mxlOkHk7Sn1s41BFnOxDXwFpzTTK1eE+ytLvFwYKY Y85iZKNr/9UCdYZgyM5337QirirPkyVHxVn0HrECcj0MgEKyoxkm2EPliafSMf7AXPbDStddLCL S02w= X-Received: by 2002:a17:902:f707:b0:20b:9841:b44d with SMTP id d9443c01a7336-20bfde57e1dmr270920205ad.9.1728413202429; Tue, 08 Oct 2024 11:46:42 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c1395dc41sm58068535ad.217.2024.10.08.11.46.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:46:42 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH v2 3/8] Update PIDFD_* constants for Linux 6.11 Date: Tue, 8 Oct 2024 15:45:25 -0300 Message-ID: <20241008184634.245607-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008184634.245607-1-adhemerval.zanella@linaro.org> References: <20241008184634.245607-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org Linux 6.11 adds some more PIDFD_* constants for 'pidfs: allow retrieval of namespace file descriptors' (5b08bd408534bfb3a7cf5778da5b27d4e4fffe12). Tested with build-many-glibcs.py. Reviewed-by: H.J. Lu --- sysdeps/unix/sysv/linux/sys/pidfd.h | 14 ++++++++++++++ sysdeps/unix/sysv/linux/tst-pidfd-consts.py | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/sys/pidfd.h b/sysdeps/unix/sysv/linux/sys/pidfd.h index 9f88d297e8..85d976939b 100644 --- a/sysdeps/unix/sysv/linux/sys/pidfd.h +++ b/sysdeps/unix/sysv/linux/sys/pidfd.h @@ -20,6 +20,7 @@ #include #include +#include #define PIDFD_NONBLOCK O_NONBLOCK #define PIDFD_THREAD O_EXCL @@ -28,6 +29,19 @@ #define PIDFD_SIGNAL_THREAD_GROUP (1UL << 1) #define PIDFD_SIGNAL_PROCESS_GROUP (1UL << 2) +#define PIDFS_IOCTL_MAGIC 0xFF + +#define PIDFD_GET_CGROUP_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 1) +#define PIDFD_GET_IPC_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 2) +#define PIDFD_GET_MNT_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 3) +#define PIDFD_GET_NET_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 4) +#define PIDFD_GET_PID_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 5) +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 6) +#define PIDFD_GET_TIME_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 7) +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 8) +#define PIDFD_GET_USER_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 9) +#define PIDFD_GET_UTS_NAMESPACE _IO(PIDFS_IOCTL_MAGIC, 10) + /* Returns a file descriptor that refers to the process PID. The close-on-exec is set on the file descriptor. */ extern int pidfd_open (__pid_t __pid, unsigned int __flags) __THROW; diff --git a/sysdeps/unix/sysv/linux/tst-pidfd-consts.py b/sysdeps/unix/sysv/linux/tst-pidfd-consts.py index 9824fd214d..9d53102cbd 100644 --- a/sysdeps/unix/sysv/linux/tst-pidfd-consts.py +++ b/sysdeps/unix/sysv/linux/tst-pidfd-consts.py @@ -39,7 +39,7 @@ def main(): sys.exit (77) linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc) - linux_version_glibc = (6, 10) + linux_version_glibc = (6, 11) sys.exit(glibcextract.compare_macro_consts( '#include \n', '#include \n' From patchwork Tue Oct 8 18:45:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 833603 Delivered-To: patch@linaro.org Received: by 2002:adf:a1d9:0:b0:367:895a:4699 with SMTP id v25csp447946wrv; Tue, 8 Oct 2024 11:47:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBT3VVDdEquMJmlaiSLLYBU994EjygHVogBYuzQ5Hsk68iRd/zIsArZKefBwp5Edh1w7+yew==@linaro.org X-Google-Smtp-Source: AGHT+IGDdpmL0xJMs88DwR4JA6FZFOnLY52gx3qItmNjxFYCCiKj1In3B8hR65BVqaGMbOq6jE2k X-Received: by 2002:a05:6214:4505:b0:6cb:2fa7:48cd with SMTP id 6a1803df08f44-6cb9a4556b2mr236264966d6.36.1728413228478; Tue, 08 Oct 2024 11:47:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728413228; cv=pass; d=google.com; s=arc-20240605; b=h72RxUvDA1Y1lECGpHUB1vHu+2IiMpzEz7xtRzywIAzRGEICsAv7p+l4cdq/2djQ5u 5XtPglWM8yFyRD+GjEnKaUn2xqth8cOJlaUXv/7Z2Ow61E+1FsSxEhLfJDBGWsbtk5G7 dFGQyS0VlOjaPeIzk89PrAJ6fNrUjanOe1Gj6ctL4r7c0sKH63BPRr8aMKpx477jSGcR b1e8svZuaBECJ3hU9XYDUL1jsX0O1chYxuQc00j0q1sG5UIcNtQ7n9gxZrvMJy6ovc0z OymhBPFQresgUiIoJVmh6wkaraenWM/3+4dU3iQUpQm67VM3tqY6CFuk2zzX7yjzeb7y ZFcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=zWfiDe0ZNitlZHfjFiHD7lXXoKeBoYkzXyjyTMszaSk=; fh=y8c+zjefmHK4fStUusN64Sx8n6mpTt8O9P1WOVzrReM=; b=GsxoAJvnubUUeQ3WvXU5DGhfK5pJRk0KxO5cTchZ2ganF+TLKafhQ/KbTvQkvtpYRU k1iHJwfuqN9qOZGBSMF+khzGecMT5UxBDRBuGkAaUIQjt3Fe8froIP8B64cew9yLwi38 2WNi+8Of3huW0GfqfJ6rjD0LiCvcltWQYX8ZZM8OW7a31XQBS5g4QEaNm/uyDMNFO96S ldjZaLwUcT6a9Hnq5N7xgNN+uTTNP9cFSnS6d3B/6QxRCbr0QWdJh/PKeLHLlCXgNn9F woiw94JQGoXzazkif1bGThJuxxj+IZOy+TpsKCQHWSNy1rZZGjY7n7xEpXDXpUiKWXJV TFRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m1EJaoJ2; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id 6a1803df08f44-6cba4771420si91226216d6.319.2024.10.08.11.47.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:47:08 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m1EJaoJ2; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0D77A384F4BA for ; Tue, 8 Oct 2024 18:47:08 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id 5C6F43861826 for ; Tue, 8 Oct 2024 18:46:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5C6F43861826 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 5C6F43861826 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::634 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413210; cv=none; b=lsAUqPz6JlyeFUwWXekWjrWbTcgH5a8IicXGg3oc2uDDv44QPAIF12GmGwy7ruaRCQwGeF9TJZbhE0RgYXZK1p9ro7uaRLs71u5TY3K9ud2ITv0ams3idZ5aQfJ/niRA0rZMOHn2cflPkEvGsOktHAL2ZtReT/hN8gNY0+xFIYs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413210; c=relaxed/simple; bh=i5NlRaj+0fmbSKTrdiTcADazcCm9acCFbKldxfjA2EM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=x1qF1p7/Jt6++crbs5oPDrNpuI5elH40IyQRW3bbfedzUvT2mVJLJhx6lceIH7wjLJuTytrqBZ5+vzeVMjMrUWnvwId2Fivsvo94W21YIg3whwf0Skp+so2f1sNPcoix4IGtgztC39ebTuOiqPpj82HzngXGETWNfbowOFcjSIo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-20b7259be6fso66203095ad.0 for ; Tue, 08 Oct 2024 11:46:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728413204; x=1729018004; 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=zWfiDe0ZNitlZHfjFiHD7lXXoKeBoYkzXyjyTMszaSk=; b=m1EJaoJ2ug/zVSkepzUsU/oMOtgGT4yH6Co74Bj8Cq6M1Ffmbx2B38CCkbFrFcKIic i6Pj4Y6+dVrmKXJrkYTCBT40A4zJW61fZnqCGZzQsspRGhUxZhfW5YldE/tNjGrw9uu+ hMz2foWfQiqhHh9gYhn6H2nwR9nozU4pHt7Ji6zCbHzkGQjylxpeVV/o8s/jP9T+Bugp ikrwqjvi8nzVmwc0sQV+tNMQ/VcRqKWujI4yNpwarvEaEqAEYDSvxqaKHiwTCaCvzuRU rNgfjnbPCHa4vKoACzI0VF8wJoo7dt8PyAKm6dEfA3agRmZwmNT2Y+p+8/B/1jkk+ZJy QSkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728413204; x=1729018004; 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=zWfiDe0ZNitlZHfjFiHD7lXXoKeBoYkzXyjyTMszaSk=; b=cuW+jl4ZcUvhjMyawGWBlM/qGFnT+Cdt0mK66tiCUT4Wed0tED1u6SHNq7CQIp8lgq xKdDuQIPE0qKRKU19M46ihkZd9GTbuoGWm9g5h3ztrGXvdSNX2SFjwgiLGmCrQzkvn4X NBIO3Ra0gQ9AQnBASJ7ptoFFAXBLKGIP7z+VXlbVFNnGCCIWyJ56TSo+HAoq0uwT9k0X 7A9Kqz48TkFtG15jQ3JjiTA7QrhEoYY9XL/O69THQL4JUjX297oM8kNPnvzCo9XOI0sW Z2BSQnAebY/BOTrZTdY84fzLOBffrR7614F3fTVEmWzl6oeorGmvlCWZdmHZMEFsauye fAAA== X-Gm-Message-State: AOJu0Yy68DF4eYFPqdqgbXL1Wik/eXeLEHI6nlxTRtOJhjH2eQ46T/aJ I+bxHGTJptaWmRA+GhRltpZAme7vU1TjbjQqAWq5BQUI9qtnpKA8coh22sGiUh5uYthvPn7N5uA TA9s= X-Received: by 2002:a17:902:ecca:b0:20c:5fd7:d71 with SMTP id d9443c01a7336-20c5fd70e4cmr13548975ad.22.1728413203855; Tue, 08 Oct 2024 11:46:43 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c1395dc41sm58068535ad.217.2024.10.08.11.46.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:46:43 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH v2 4/8] linux: Add MAP_DROPPABLE from Linux 6.11 Date: Tue, 8 Oct 2024 15:45:26 -0300 Message-ID: <20241008184634.245607-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008184634.245607-1-adhemerval.zanella@linaro.org> References: <20241008184634.245607-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org This request the page to be never written out to swap, it will be zeroed under memory pressure (so kernel can just drop the page), it is inherited by fork, it is not counted against @code{mlock} budget, and if there is no enough memory to service a page faults there is no fatal error (so not signal is sent). Tested with build-many-glibcs.py. Reviewed-by: H.J. Lu --- manual/llio.texi | 9 +++++++++ sysdeps/unix/sysv/linux/bits/mman-linux.h | 1 + sysdeps/unix/sysv/linux/tst-mman-consts.py | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/manual/llio.texi b/manual/llio.texi index a035c3e20f..05ab44c6e7 100644 --- a/manual/llio.texi +++ b/manual/llio.texi @@ -1762,6 +1762,15 @@ write dirty metadata out whenever dirty data is written out. Unlike most other flags, this one will fail unless @code{MAP_SHARED_VALIDATE} is also given. +@item MAP_DROPPABLE +Request the page to be never written out to swap, it will be zeroed +under memory pressure (so kernel can just drop the page), it is inherited +by fork, it is not counted against @code{mlock} budget, and if there is +not enough memory to service a page fault there is no fatal error (so no +signal is sent). + +The @code{MAP_DROPPABLE} flag is specific to Linux. + @end vtable @code{mmap} returns the address of the new mapping, or diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/sysdeps/unix/sysv/linux/bits/mman-linux.h index 522333c50a..161a885096 100644 --- a/sysdeps/unix/sysv/linux/bits/mman-linux.h +++ b/sysdeps/unix/sysv/linux/bits/mman-linux.h @@ -43,6 +43,7 @@ #define MAP_PRIVATE 0x02 /* Changes are private. */ #define MAP_SHARED_VALIDATE 0x03 /* Share changes and validate extension flags. */ +#define MAP_DROPPABLE 0x08 /* Zero memory under memory pressure. */ #define MAP_TYPE 0x0f /* Mask for type of mapping. */ /* Other flags. */ diff --git a/sysdeps/unix/sysv/linux/tst-mman-consts.py b/sysdeps/unix/sysv/linux/tst-mman-consts.py index a1137eb1d5..2191bea36f 100644 --- a/sysdeps/unix/sysv/linux/tst-mman-consts.py +++ b/sysdeps/unix/sysv/linux/tst-mman-consts.py @@ -33,7 +33,7 @@ def main(): help='C compiler (including options) to use') args = parser.parse_args() linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc) - linux_version_glibc = (6, 10) + linux_version_glibc = (6, 11) sys.exit(glibcextract.compare_macro_consts( '#define _GNU_SOURCE 1\n' '#include \n', From patchwork Tue Oct 8 18:45:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 833606 Delivered-To: patch@linaro.org Received: by 2002:adf:a1d9:0:b0:367:895a:4699 with SMTP id v25csp448206wrv; Tue, 8 Oct 2024 11:47:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGdch9w5GIcmrLLnTYdBV953HWJeJPM8JNCoXuaAkzGctmNiFA+lQ85Jv7M3u+tvuKuAzWHA==@linaro.org X-Google-Smtp-Source: AGHT+IHB3atQMnXe82ukOBxwX0uNk3VCJm+1kIbMofOe7aPVQkXeQjgQLccgV5pn8XNXBF0oDICo X-Received: by 2002:a05:6214:460f:b0:6cb:2c02:6135 with SMTP id 6a1803df08f44-6cb9a47a232mr276657496d6.43.1728413272082; Tue, 08 Oct 2024 11:47:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728413272; cv=pass; d=google.com; s=arc-20240605; b=YUr3M7yRkEI07KrASuUa1XWUgt1EAmm5Q8zhAsqUX20jNcEstc/KhhbLsbf/8Ogzil Llh/PkI48RSWx4nlSucYrgLlFaHIFXKSDwFV2HSvHVQ++xg9RnziGnpd4T17/CPYVb0b bCzQa+phRb+gW4Z1QIwGJOaOm4oSwJYRpq13MxI6ZlEn/69T9QIsTyRDiLx6A3/Ej1wq 9P28eu7Qu4keIwh8pMxzMDSTQETTyiQFLXeUgHKrYRzkndHjUX7Y73LK6X9x7ujItU+h cxCdtKR7MBPHGrYIp7HVw1oUI8/GD6iQ9SXLU2qo/ZgxTeOP+iOnF43Yih+LWfBMRFuI 42HA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=dGIS+f/JLddIrrG/YHljdbM4mUEqzkJp8dS9sRYU6oQ=; fh=y8c+zjefmHK4fStUusN64Sx8n6mpTt8O9P1WOVzrReM=; b=i1/r6QMms2zynLx7du4K70CdD8lUXFpN8ny3MdbOehSl8MuFt4HhDY8HL+vpanyUzy fICG9xf7mslL7qc2ODr72dGSQv9hQcdLFUx1OVwSm6UE0TSX4Tu1tsIniGETj+9dadaG MgAMZEMlbqJX/bxEAntwqlQDOeW0eKJgr60nJzDmioZU6FGif7z26nyd35XFSJmzG0KZ BC45FJykmNwYrO4SkZY0u5u3zzfwOxaQIT4aQNdcaT4W6gyA/VNM+hGE9WzxLWHuASxA u/7TT1P17AFEVuxsxTTY2IufX6AC5yGuwsNsKQuU1vs8+BdFjrJmHgoQVLhZ4i5R/OEY I7Aw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="U5t/Rsym"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id 6a1803df08f44-6cbc7e4109bsi5177856d6.35.2024.10.08.11.47.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:47:52 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="U5t/Rsym"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A7C6D384F4BE for ; Tue, 8 Oct 2024 18:47:51 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id 8FF5F386183D for ; Tue, 8 Oct 2024 18:46:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8FF5F386183D 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 8FF5F386183D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::630 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413211; cv=none; b=mWdp2SvwV0a2s807J2ZwozLiHCXevZxvLwmfpKLoTwJV0kq72+jZivfxagiZcNdGqP2reRN8uHfvZBX+/zbLuS+F8/FNvLt3kc4lDACDDy0fPQFmyElTCdCKo1cFM2/3A2mq1n/ZbTXk/I+LzuiraCJnpLjve8ZVzMQjlgQSTyk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413211; c=relaxed/simple; bh=47t+KdPpV6ooxawbKgnGwLNetwtNUyVvBmavxj/Av4M=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ibn1wSoBeFgUpaGtG6WBBP1bi1+16oOcIta0E9eDj5J+asno8KEqJFrlCtFNuga84fI4uzZOHOZ2Er37oLgRov7Ba1/9otztSRilEBLy6PesWSfMn+3+bGzGfMx93G0vH8HxN3NwvIpfEliFovr+CKmThWNkHFoesSxQJu2+Njo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-20bb610be6aso66115815ad.1 for ; Tue, 08 Oct 2024 11:46:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728413205; x=1729018005; 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=dGIS+f/JLddIrrG/YHljdbM4mUEqzkJp8dS9sRYU6oQ=; b=U5t/RsymRPzB5oHtWBGw835QcjESqYoRajpLItvmKroNA2Qx9212lE1BLJjPtaz93O qe96QJ0NWQFhDg7Rd4vhpsjK2y8O74zqoe52i4efpVcJucAxqdqv+PMS/2pWXazi+w9r 8gYAi2zxZ7j6Bgdpl9aKqUNiSOqvvgk1HFKVOYNnOJWWyaeP9BjIHTbg67fV7dd6WnGq GtIU+YKKP1YJJ86HKicmIcwpp6fffrgKAEbFJsdGdLjdJXYqswPxD+OcTvgIKZO+7Np7 zz/jiWk+r1BvkbsLGZbGZSJcwO8Piht9UFAP806oExwEwKL1vNbe9xmNnnem73nS2e/K C8Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728413205; x=1729018005; 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=dGIS+f/JLddIrrG/YHljdbM4mUEqzkJp8dS9sRYU6oQ=; b=dh9EYQkaecblXqu9wmZiimwEOxR5spgGTJdVVXE4PPR5DXGzVHeSt0lDgR09ojWXkW gbMylGPEqRElL9jekO5HQQaA8SrEghvHRLZJvwAUE6VQdQLktlDSQFr6gsBlUIkK1AW+ K28MO4dob7ysFI0No7dN5PlCjvcpCltOvzNKgb6HtypPCvso5pW28inm2C2DC8n2IX2I ZikGROb5r7qdYiRlrg96cWSPAlkDGKvr2CCLfHPBRWad5nhvu3sXj+gXjes+zGczlKzj 6AAZu1r05vwUhoK9kFR55QSWhYF96mzuWVbKZQKBhsKm+oX2/+4sI2OmmIkHlzzRpuw5 fDNA== X-Gm-Message-State: AOJu0Ywwfw14VYLaa4l+qFVkyUsQ5llxg3suJ5kI+65LvM2kdoGD/JUI CqFKyiwsCv069A8GPD8W3So0t7kQr6rHfkO+jsKfaXwYKJBFZHj5VxpnkJd9VjWM4Ss8iRhjb8c d10c= X-Received: by 2002:a17:903:186:b0:20c:5c6b:2eac with SMTP id d9443c01a7336-20c5c6b30dcmr19879375ad.49.1728413205329; Tue, 08 Oct 2024 11:46:45 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c1395dc41sm58068535ad.217.2024.10.08.11.46.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:46:45 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH v2 5/8] Update kernel version to 6.11 in header constant tests Date: Tue, 8 Oct 2024 15:45:27 -0300 Message-ID: <20241008184634.245607-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008184634.245607-1-adhemerval.zanella@linaro.org> References: <20241008184634.245607-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org This patch updates the kernel version in the tests tst-mount-consts.py, and tst-sched-consts.py to 6.11. There are no new constants covered by these tests in 6.11. Tested with build-many-glibcs.py. Reviewed-by: H.J. Lu --- sysdeps/unix/sysv/linux/tst-mount-consts.py | 2 +- sysdeps/unix/sysv/linux/tst-sched-consts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/tst-mount-consts.py b/sysdeps/unix/sysv/linux/tst-mount-consts.py index 675f1790b6..b71d8a489d 100755 --- a/sysdeps/unix/sysv/linux/tst-mount-consts.py +++ b/sysdeps/unix/sysv/linux/tst-mount-consts.py @@ -42,7 +42,7 @@ def main(): # Constants in glibc were updated to match Linux v6.10. When glibc # constants are updated this value should be updated to match the # released kernel version from which the constants were taken. - linux_version_glibc = (6, 10) + linux_version_glibc = (6, 11) def check(cte, exclude=None): return glibcextract.compare_macro_consts( '#include \n', diff --git a/sysdeps/unix/sysv/linux/tst-sched-consts.py b/sysdeps/unix/sysv/linux/tst-sched-consts.py index 70071dcd97..f06ac400bd 100644 --- a/sysdeps/unix/sysv/linux/tst-sched-consts.py +++ b/sysdeps/unix/sysv/linux/tst-sched-consts.py @@ -33,7 +33,7 @@ def main(): help='C compiler (including options) to use') args = parser.parse_args() linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc) - linux_version_glibc = (6, 10) + linux_version_glibc = (6, 11) sys.exit(glibcextract.compare_macro_consts( '#define _GNU_SOURCE 1\n' '#include \n', From patchwork Tue Oct 8 18:45:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 833604 Delivered-To: patch@linaro.org Received: by 2002:adf:a1d9:0:b0:367:895a:4699 with SMTP id v25csp448020wrv; Tue, 8 Oct 2024 11:47:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVy9jf8sgpfvj+QXeqTcS7CnBeXoJoHj5KwDOW0qabhAdO1wN9ZLyO+DhuhoS0bNeuArgOMHw==@linaro.org X-Google-Smtp-Source: AGHT+IFC/lW1XtdGhQwsFtHJZZ/Dr4dUJRg/7dNxAuEPecaYqtfjvDGr8YQXD4DBn7iTDpYBonBE X-Received: by 2002:a05:6214:4881:b0:6cb:c772:fbe5 with SMTP id 6a1803df08f44-6cbc772fc21mr25051716d6.30.1728413243350; Tue, 08 Oct 2024 11:47:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728413243; cv=pass; d=google.com; s=arc-20240605; b=UdySz7Txy+ukdGajusCypRSUwVzjYdxnHcNyXJJCz1OJFn3+AHkxd9Hcc/FbuXlCAo Lf8CZkjBhNVlzTbLH7FHAw/fR3leJBls4E1K6n/7VzlCcs2U/7M+MrkJnmkc/Zqz+E9G uNtDbHYgSPiLFfdBwNohauav9ZqVHgm11Nq5aYIKAVPbCpxnSW0W2A+RbbWsKsMukkm+ ubcb4A/JohAVP8VaiOud1Mo3kctz2wYZzCR2EGO1JsGMrKvIp/qwISPMehvd7pezK9LM nUkCUEZ8FxmWwZmFoC2P2KMydpM9M/FLsGBnr3OTTdqdOzcz7yyrf/rDDjSuMgQKKCOA omzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=ukGO970JtVyRXbCaEr+m+6DiIR0vAZimisyh0fhZdU4=; fh=y8c+zjefmHK4fStUusN64Sx8n6mpTt8O9P1WOVzrReM=; b=SNpL30ppnqejt1PAkK4ll24YoTTwSRp5xV0qeJ6eeu2iAfy+9rJaX9fLaOqZ62Ssro aorHP1M/I3jmzuU8xBTaLhihmSunkHOH/jbosEifw0QkYI9GJtzdw7m3+Ynkc+Ycsbpn ogpFEAW7NLyhIuDnGmNwGdQ78NsexanWWdlSDUq7W+PQhmGbC7Y8RAdsHwLXAP/gmRaa 1KXMlMblyOva/VziWSmI+FmiL9dlmfwerjn3iwBqRPU/drz0dpuOONHrqp0RLjxyfiPf gSYCV4ZHk0es71UgkxOU3EeT56bSn5iNpKlo7aswk5dslAda3pt/Nbyh54WSF9kVA01I gNBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v2e5K0K2; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id 6a1803df08f44-6cba46d7e42si91401626d6.85.2024.10.08.11.47.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:47:23 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v2e5K0K2; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F171538650EA for ; Tue, 8 Oct 2024 18:47:22 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by sourceware.org (Postfix) with ESMTPS id 2E392386183E for ; Tue, 8 Oct 2024 18:46:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2E392386183E 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 2E392386183E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413211; cv=none; b=DQVSyNW64MQ0EtY+DJR+5uwlJCOhFkU3FArDsVuPDRbHXG/oXmrlML9yxb9iWCkVlto0u8gs8u2St+oxRttsxTEfzxH4sSVU+CzbI4eHZJhM1zM8pXL0InhVh43hHFinHnd9w6xnQsHcb3O1hKMgoAJl7QZl3UcpdRjgZOaZao0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413211; c=relaxed/simple; bh=2g/P981TUc6R+yy6+GAmKpkz3BLO80TRsSY58npbtcA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=fJvSBzkTU0gPA6FDLrMfd7Z9Fs+vBzws/4Olv+knMvpH0Y9OietfUgfPf9EyUyvrXyFJQyz3Q1f+HjtAqacJxRxEznI7cODI0r1770b3B2uqP2XZdTBuVDCgFsEaOuNKBYlHZ2UZDi5X8ow/nPUYftU37c3gcXRWGHQ2PxZAoNk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-20c544d34bcso9915585ad.1 for ; Tue, 08 Oct 2024 11:46:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728413207; x=1729018007; 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=ukGO970JtVyRXbCaEr+m+6DiIR0vAZimisyh0fhZdU4=; b=v2e5K0K2cgTNHM2nlymliD/uUiYPHod373aXUT4vviVBhLjXvrQoxo8kUut4CrON/D ABpf7cVGoDIy/XnicobOhh4rpVmnEgn3cM29wTvpzaK/fcar6ipw6BlgnRIp25y8GM5z 0H+odxCfpnX4gGpA8tdZ85V0rFnfbvyFEk/nmVV8XrIYx+GL8nLNFc3GcuQC6WBmTbfn NUQOjJxYYKs/kDdA9hbNQ1GJSzMt09qNBrd/hB+JLFzi03tDknR+KbORwYTn6XJNfn54 fPndpZY9kN5Uj1han2+MtnCn2oipRfAzjI+VPMZHrNGAKA3VDt7k1EE6L7l4n8HSM1l0 3/hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728413207; x=1729018007; 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=ukGO970JtVyRXbCaEr+m+6DiIR0vAZimisyh0fhZdU4=; b=sUfk/vAqG+LpMeRIIxHIURiIzJK2ZuV0T3Qs49uMCks46VrXDW/PCPsL/3y7z0CdNS suXUwH/+F4ZaZ8CbLNb21FQQZ5mNbMMg/s7dZ36WlzAQwgxrairIF1M2STPgw8tSK8G+ bsPl6NrqVlR9dr1EFWEWBfaZosJn4u4h1cno1EOSrF1vpRz+GSWiet3kkr0YbKvtVlB4 zBxt6/QTujzP08GDA9YwiYy5dKWlMkUBRtR/gJgS4uFTEwTbfTDWPS5PcGaiY2Ohpf3k pqahGtZyfCAZa/JcCn9FyqcrtmdMR6uGNPGOuA7wXIkRcLMnPgeGf5BmMQwbSTdeAfW+ saIQ== X-Gm-Message-State: AOJu0YxLyBDUIRFeS3E3+VZA4DKVFCmLA0Q9Vp41FnaeQjGu4Xfe4GqE AmG4y8xUjnqCVb9Gi5tRpy8Ycjrf5LBg7bHs89RNgcuNdbRZf8tPOCuhow6Fu9FwHFe17SnhX8Q HWNA= X-Received: by 2002:a17:903:190:b0:20c:5bca:d668 with SMTP id d9443c01a7336-20c5bcb0b26mr32371525ad.53.1728413206873; Tue, 08 Oct 2024 11:46:46 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c1395dc41sm58068535ad.217.2024.10.08.11.46.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:46:46 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH v2 6/8] linux: Update stat-generic.h with linux 6.11 Date: Tue, 8 Oct 2024 15:45:28 -0300 Message-ID: <20241008184634.245607-7-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008184634.245607-1-adhemerval.zanella@linaro.org> References: <20241008184634.245607-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org It adds the new constants from 'fs: Add initial atomic write support info to statx' (commit 0f9ca80fa4f9670ba09721e4e36b8baf086a500c). Reviewed-by: H.J. Lu --- io/bits/statx-generic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/io/bits/statx-generic.h b/io/bits/statx-generic.h index 19c3565edc..da199ddaa1 100644 --- a/io/bits/statx-generic.h +++ b/io/bits/statx-generic.h @@ -44,6 +44,7 @@ # define STATX_DIOALIGN 0x2000U # define STATX_MNT_ID_UNIQUE 0x4000U # define STATX_SUBVOL 0x8000U +# define STATX_WRITE_ATOMIC 0x00010000U # define STATX__RESERVED 0x80000000U # define STATX_ATTR_COMPRESSED 0x0004 @@ -55,6 +56,7 @@ # define STATX_ATTR_MOUNT_ROOT 0x2000 # define STATX_ATTR_VERITY 0x100000 # define STATX_ATTR_DAX 0x200000 +# define STATX_ATTR_WRITE_ATOMIC 0x00400000 #endif /* !STATX_TYPE */ __BEGIN_DECLS From patchwork Tue Oct 8 18:45:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 833608 Delivered-To: patch@linaro.org Received: by 2002:adf:a1d9:0:b0:367:895a:4699 with SMTP id v25csp448526wrv; Tue, 8 Oct 2024 11:48:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFsRwAHMVKjIq20Zu+Eh2KFUvf2RYr0CPCL2rGqgY6B7SSjGVBIUe28q6S9RZmDDp1tqze/g==@linaro.org X-Google-Smtp-Source: AGHT+IFjANq9Ed4suakb+33JLp/vb5c5ypUDUJk5QsgwbAhzy+aB3tDg56MmWnhvetetGOZoY/UX X-Received: by 2002:a05:6102:955:b0:4a3:bd34:11bb with SMTP id ada2fe7eead31-4a405780037mr10529649137.14.1728413319765; Tue, 08 Oct 2024 11:48:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728413319; cv=pass; d=google.com; s=arc-20240605; b=W0TLTAr/rKuB/eZcRgvmEkN/YIIjSbRKHD2KYUL1k12DRlixhfcmBfjmeu62CTknTV SwZBG1lGGvL+y569uJpawSne6OB/tXYTUIKW6vA+UleL0Pg5KepL9CwQfz9I4yrq9zvG YSxtfQq8TudLrEmlCzhfi5RD8TFBpb5WNMPDTL4dRmo/JkhpeH7yBWCko7aaOM7tkfUJ djK9M6bWLlrL5vFsiWDtjT/8z2H64J0ZuA6nqpLwTQQB1mXO0lnIIS+LwMIzxAgyLqDK J7uR95fLUIZTmnS8piI4z6w5R/UXgKswocPrmH0r10c7PmxcICOTKnNpqFteM3WVZ/5X Hi1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=Yugl+fzHUaSuJP5DmRFd4Zg5nfU3j/2AGy3BgOBBXes=; fh=y8c+zjefmHK4fStUusN64Sx8n6mpTt8O9P1WOVzrReM=; b=d2Y1aS1Nxj0pXAprDSz7qQiep1DTPFWvLFoz6BO44RN5rMs4NjedYfofxiik2WXsOd 15d0j922ZJIw2Kv9c/XICtgajF7fY7pD1OeTQXtCH/eMPZT9Qd/8KtTZjtrVIJxQlPIW Hra/FyhBmmwlh/JbcVsm823n7wqh3EmQUcTvAl2FnG/rlK8ZJ72R3uMLEdxWphVDk9Z6 jBjZCR32/bkF+Lvq/mFWaTwblQo0El7R/A3/oRKVU/98sg+wxNzC0rOuvlrM7GACWtdX N+WlEHlJ3fR4db6b59qB6jCzjRNOXe8kyu6jnCcne/FBlHnJ8DnTG0ZDBB1m5YWiUV9O 3w6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UYRRLgfl; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d75a77b69052e-45da74ea495si88402421cf.163.2024.10.08.11.48.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:48:39 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UYRRLgfl; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5148E3850203 for ; Tue, 8 Oct 2024 18:48:39 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id 7F196386182B for ; Tue, 8 Oct 2024 18:46:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7F196386182B 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 7F196386182B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::630 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413211; cv=none; b=A1RQ9sC52AQUEtNmLwwG1M3reaUjZzUBWi5Jm8iqArAAQQ5NEK5NDCE9mgZs+p5+0p4+bvwv1G9Xte7g2o98vooRqIJD1NGGZ4YE4GTTz6LmxTcYdTLeT7CzDLAhE8xoqKth+5lOg5pR3ah28IuwNaMeIQTSuOnOyAjg20Yciaw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413211; c=relaxed/simple; bh=/aYQGAU3Su135GPwzEH+L6A8bBFw0QPCrlz8CW+nnVQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=k4ghMfG9mZjz5YaCjwo6fBoa5TIlYufVZel+Q5ozM3ieOFZWkEd0zjZHxWEl5+Qhcx+Iw9tYRbmct8yfOqPib188femh4tBhyYP2TEGdc2Y3WH02j2HgO7r/mhvBuZv1lKd3EKrzGfkLAjIwsVGCqXmjgwg6BBY9VhgyIAgaQ04= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-20c593d6b1cso8501095ad.0 for ; Tue, 08 Oct 2024 11:46:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728413208; x=1729018008; 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=Yugl+fzHUaSuJP5DmRFd4Zg5nfU3j/2AGy3BgOBBXes=; b=UYRRLgfloSDbJlx0SEZqr3XAhHik5ZPM5gKKb3cwlXIA0aZhvNevjyGjNsyctAUtUy twJggcuwyA5s6J1F70HeKBQOYkspMLpONRWrPPtaDuQSMlIAyUbOXfPUVqE7J5XXkX8m fYeC+SwCiObrcJz7CeVnFT15orR5TfSOVJZnPaTOi8UaPNfOtkPiSjTzsC+mwnpBveak psev/MPcTXTdJqZB2HiPu/uhj4ORwhMVct4jTGWwkjQUiP7aTRbN1lBMVfOt9uTjpvtY p6T1R6H76ArWPBDL4HiZDwJueTHUmpPirDeeuW6nO+GMTsrjXO9Dys0dOI6fmjTKj2Ta a0pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728413208; x=1729018008; 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=Yugl+fzHUaSuJP5DmRFd4Zg5nfU3j/2AGy3BgOBBXes=; b=aJ2VTP6U3zoJR6aFSUQ1DVBFNdiLgTS7vF/2rejl4ZwNt1pGMurVfspkzbDrhoZMSp uL6fSBzommM35D1+5BB/p5UKwpvkd/CQPAso+hb1WT1iXzbZ7jYvqJeSoKnisX+o81Vz 675BuqfpEgmN9w+hlozY61fY+lPJLEMOxvpVcqSXJLNuwDLRFAbNRPNlBhPrSveZlDRH wsNsTWvb4M+fLkSz5zd8tvJ8P228v6e8TfhJVH4S9/j7o6C8gfr+9FNw/Su1J/sKgbHn uxLWFJtNFqaTc2dOvcYFcTD+uwBqfiJCI1M6DPA/PS7yH2hJ7/8GC7fUvj8Xwgcc7L2b upTw== X-Gm-Message-State: AOJu0YwTwwm3sLV6qfHZofq1Ru3EaM9mAAOVsjpfSFpN3Fe70MCSp8XY 5CVnVis+ybi9V9Rckyq229I/Wkgv2ne+hbMR5hSEjxYlWS1d7ut/jmFESsGpa3CDUoNQIR2+kq5 aUIQ= X-Received: by 2002:a17:903:41d0:b0:20b:5fb6:8dd4 with SMTP id d9443c01a7336-20bfdfd51c3mr237748725ad.21.1728413208325; Tue, 08 Oct 2024 11:46:48 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c1395dc41sm58068535ad.217.2024.10.08.11.46.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:46:47 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH v2 7/8] misc: Add support for Linux uio.h RWF_ATOMIC flag Date: Tue, 8 Oct 2024 15:45:29 -0300 Message-ID: <20241008184634.245607-8-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008184634.245607-1-adhemerval.zanella@linaro.org> References: <20241008184634.245607-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org Linux 6.11 adds the new flag for pwritev2 (commit c34fc6f26ab86d03a2d47446f42b6cd492dfdc56). Checked on x86_64-linux-gnu on 6.11 kernel. Reviewed-by: H.J. Lu --- manual/llio.texi | 13 +++++++++++++ misc/tst-preadvwritev2-common.c | 5 ++++- sysdeps/unix/sysv/linux/bits/uio-ext.h | 2 ++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/manual/llio.texi b/manual/llio.texi index 05ab44c6e7..0eb336f70b 100644 --- a/manual/llio.texi +++ b/manual/llio.texi @@ -1381,6 +1381,19 @@ Per-IO synchronization as if the file was opened with @code{O_APPEND} flag. @item RWF_NOAPPEND This flag allows an offset to be honored, even if the file was opened with @code{O_APPEND} flag. + +@item RWF_ATOMIC +Indicate that the write is to be issued with torn-write prevention. The +input buffer should follow some contraints: the total length should be +power-of-2 in size and also sizes between @code{atomic_write_unit_min} +and @code{atomic_write_unit_max}, the @code{struct iovec} count should be +up to @code{atomic_write_segments_max}, and the offset should be +naturally-aligned with regard to total write length. + +The @code{atomic_*} values can be obtained with @code{statx} along with +@code{STATX_WRITE_ATOMIC} flag. + +This is a Linux-specific extension. @end vtable When the source file is compiled with @code{_FILE_OFFSET_BITS == 64} the diff --git a/misc/tst-preadvwritev2-common.c b/misc/tst-preadvwritev2-common.c index 8e04ff7282..4556421a43 100644 --- a/misc/tst-preadvwritev2-common.c +++ b/misc/tst-preadvwritev2-common.c @@ -37,8 +37,11 @@ #ifndef RWF_NOAPPEND # define RWF_NOAPPEND 0 #endif +#ifndef RWF_ATOMIC +# define RWF_ATOMIC 0 +#endif #define RWF_SUPPORTED (RWF_HIPRI | RWF_DSYNC | RWF_SYNC | RWF_NOWAIT \ - | RWF_APPEND | RWF_NOAPPEND) + | RWF_APPEND | RWF_NOAPPEND | RWF_ATOMIC) /* Generic uio_lim.h does not define IOV_MAX. */ #ifndef IOV_MAX diff --git a/sysdeps/unix/sysv/linux/bits/uio-ext.h b/sysdeps/unix/sysv/linux/bits/uio-ext.h index ead7a09156..85ed21bac5 100644 --- a/sysdeps/unix/sysv/linux/bits/uio-ext.h +++ b/sysdeps/unix/sysv/linux/bits/uio-ext.h @@ -48,6 +48,8 @@ extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, #define RWF_NOWAIT 0x00000008 /* per-IO nonblocking mode. */ #define RWF_APPEND 0x00000010 /* per-IO O_APPEND. */ #define RWF_NOAPPEND 0x00000020 /* per-IO negation of O_APPEND */ +#define RWF_ATOMIC 0x00000040 /* Write is to be issued with torn-write + prevention. */ __END_DECLS From patchwork Tue Oct 8 18:45:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 833607 Delivered-To: patch@linaro.org Received: by 2002:adf:a1d9:0:b0:367:895a:4699 with SMTP id v25csp448273wrv; Tue, 8 Oct 2024 11:48:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVF4vGN3aZUkhptrhpbkrgODVhEm3xezn+oyBsxvlbAdil4O+UEGyTkTELRFkCxIaXDZW9aw==@linaro.org X-Google-Smtp-Source: AGHT+IErKgTYq4OiV5njANt1INdMkBLMVMXmdXbBfzjfETlqisz+nnhboqKKkG4yEh3cwe1QFSS+ X-Received: by 2002:ac8:5809:0:b0:458:3986:1970 with SMTP id d75a77b69052e-45d9ba4aa0bmr275188141cf.14.1728413281565; Tue, 08 Oct 2024 11:48:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728413281; cv=pass; d=google.com; s=arc-20240605; b=hRZhJ0fiQbJ/L6Csil/q40GHXem9XlzX2t+E96wFs4aDrqQJ4WiM4KUef1JIAbdnxK u+GcMvDhCsc6E+I/vgBFX6Aavq43qUrVPq937LfjG/878j7xUtboRS9Y16s1lPDj6VNM n/9ylK2VvtdiHsMGA0UIqfLyGB2/uN15TbzVixIlKm6nq+VPN7JS+R73iITQw7mK/mWB AbYCtARs7KSmXEhezCFrBkWekvwJT7vegYW2y4JYoWRsND6W6l2AddinVvkPWU3Tl0Sf DRqWgkcfp0lGU7ggJNOojnnNsrmo2vddo4jHHiBwXSZHbT4hLAth0hxW7pUqSvdWn84Y 8JhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=YbTu3sq3KXmLdKAR4lfF3Xj0FNZTDuXnsIdFquxPR8s=; fh=y8c+zjefmHK4fStUusN64Sx8n6mpTt8O9P1WOVzrReM=; b=hoo3L7Xgb4J8gAeVFp0gIxZJHiovLBLjw/JfvC2/TPa31+PV400HWiIIzTUAGzod8Y uUBD0M1e7S3ycau+SdVqGW6rMz9P7WAD4/fy8dbFryatjbaT/Sc1Ue3bmLsLxumbgXiS LBCu8rIChAD0jUYFZSddg+5xpk+Pa3NVZ5QoGhqCFCJoPomwDmAiX11EKmyyA9xD6iSA lAtVXCFYv0xiPDz8Gy8lyhFsRp8BjRiCOAADqDnmscB1Jw/LYw0cXt8u8ljK2RDg8XX9 1+D4l9w0Ml2eaKHIXtlIO7IwFhV1zLojfrzuI6X9MOivcAlXsDWZkKs0J/UIAP8kNsAr DNEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jf9ab+4J; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d75a77b69052e-45da75e1ce4si97252771cf.380.2024.10.08.11.48.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:48:01 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jf9ab+4J; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2A895384F00E for ; Tue, 8 Oct 2024 18:48:01 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id 2450D385020E for ; Tue, 8 Oct 2024 18:46:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2450D385020E 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 2450D385020E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::634 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413212; cv=none; b=iIg3AkUat3+iDSbFdkEbKB4TfMUYjb/db2zrT1izR/73E9cpyM5a7pIX51L/5JOpQ55rVw/TEH7sMiVKHDgW2w4yrDJz93yA/umkUJrOc29gYUDjbsmwwZzQcLAxe3L/5CWq49l6rTKQGkxp9QDfCwgsQf6CBokPqMdVtl8co4c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728413212; c=relaxed/simple; bh=clIk4qiMx/8JNCl/DmPgQUflOt1dPL50qQFkV9b2sfA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=KH0SjeeIN8FfiRXUT5wAUA2JQ3L4HHZruzK45LH/ci96QzziDpG/tzMFq9bEo2nPHVkx7w0rKK9X8dAirsbxm8vlOL4SNLznlLLV3UOcj1Yp+0m6xZixVeXDjF3nx4M72XprdGLA7FlBRZKgJvpF6cGIADnWAtJTDJoTWkocGd4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-20b95359440so51685405ad.0 for ; Tue, 08 Oct 2024 11:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728413210; x=1729018010; 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=YbTu3sq3KXmLdKAR4lfF3Xj0FNZTDuXnsIdFquxPR8s=; b=jf9ab+4JLvdJvbhJaeO6PSKDufXAU6TpEZbb5xgfEBCcUK/hAin0WnmnTfWpI+KWxn Z9Tid5K/a8FDC2DhcIuJMmLO5xvF7qsK8Alj6ZF4J65kaxv9bzg+oxPHZOBi5lNQCqWd NNit13LcJQ+AtZlZ+Jy9NAIpxrE/MUEzcIHsZ8EufHa/watJ7pQ0ubCfYHiAhWKeWp3g CxqOSxKIyFgJuCWMe9FwMvBMOP89x5z5A56QSODhWL1Cd+rCukG0bcsvCA48PfXcmuX9 M3DqPOwpIIJmWc0aD7B0a9hBA05t76W6XcSB4TMo9xRecaVelJoN58NzYjFBwhku7rxf pE0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728413210; x=1729018010; 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=YbTu3sq3KXmLdKAR4lfF3Xj0FNZTDuXnsIdFquxPR8s=; b=I+PQH69qLV4b3iAzDTHfMod9Dw99lJS871sU/fT0p51iadVTIvOLbqj/cq6OxxRPlR XJt17KQ3d/XxAT5Brc8wbLJ83SJTWfVNi/UjILrPHfeD0gk6Gtt8LJgHmkXtsYgbe7g+ cAVugYpHg/rQih5GtgtzmpWyWnkmrZLnCz96BBek78f23Coeof7hdYvhp0EoMVK0J+dM 7OgT0HI7Za9F3j4Mqisy0r407UomUNSs17LK1N3pZ6sbFZBAhvLBv8j3hQj/yK053uGQ hTY6ls/EBE/6U0LrJ1LByywyb51JVNFaxR/a/0ISWuxmm+kq4t/Ulu3pP04UVnczi/0W ILvA== X-Gm-Message-State: AOJu0YzZvtf4K+XslI7AGFez+HUS1GcHKlfFAQIOdaQOgUnrEMJfJEsD /r+SuKTOiKe6gH0LxJdiA71p8TxYAEjSamCHbgKl6tmKnzSWBWzqUwz7QWwOSY8LMGH7WPo9s7P 1OsI= X-Received: by 2002:a17:902:f70c:b0:20b:4bc6:1132 with SMTP id d9443c01a7336-20bfe496c1cmr250497245ad.46.1728413209810; Tue, 08 Oct 2024 11:46:49 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:68d6:61bb:ff14:bcb3:8ace]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c1395dc41sm58068535ad.217.2024.10.08.11.46.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:46:49 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers Subject: [PATCH v2 8/8] Add IPPROTO_SMC from Linux 6.11 to netinet/in.h Date: Tue, 8 Oct 2024 15:45:30 -0300 Message-ID: <20241008184634.245607-9-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008184634.245607-1-adhemerval.zanella@linaro.org> References: <20241008184634.245607-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org Linux 6.11 adds a define IPPROTO_SMC to its include/uapi/linux/in.h (commit d25a92ccae6b). Checked on x86_64-linux-gnu. Reviewed-by: H.J. Lu --- inet/netinet/in.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inet/netinet/in.h b/inet/netinet/in.h index f684be5beb..29fdd9b85e 100644 --- a/inet/netinet/in.h +++ b/inet/netinet/in.h @@ -93,6 +93,8 @@ enum #define IPPROTO_ETHERNET IPPROTO_ETHERNET IPPROTO_RAW = 255, /* Raw IP packets. */ #define IPPROTO_RAW IPPROTO_RAW + IPPROTO_SMC = 256, /* Shared Memory Communications. */ +#define IPPROTO_SMC IPPROTO_SMC IPPROTO_MPTCP = 262, /* Multipath TCP connection. */ #define IPPROTO_MPTCP IPPROTO_MPTCP IPPROTO_MAX