From patchwork Tue Oct 31 16:32:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 739588 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1744708wrt; Tue, 31 Oct 2023 09:33:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENiqpkiLTl7XL2Rl6mgMVIoACUDBZCnAM2yTVGGQT91wl6io0ib3ZVLWo4bWFR4ItVCASC X-Received: by 2002:ac8:5d06:0:b0:41b:7759:2a9a with SMTP id f6-20020ac85d06000000b0041b77592a9amr18317318qtx.13.1698769983361; Tue, 31 Oct 2023 09:33:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698769983; cv=pass; d=google.com; s=arc-20160816; b=hCQ0iw/ok72c6vVW7JV5egiNMWkBryod4cVcWxAU41Ap6J55Xz9XYV1IFxGIt6Rbjf d31fn3FrMGy07Ud1RG/THZvC2VkApq2OQhr5Purr2/0ZhZIweYpuXNHT+wYfheGiyD6Z gBhXq6z/tHy50MNjrI4uwlAtRycGfDoSydM5n3Zgy7UyKdReuhBrpyzWNsoX4wEuYL2L QLG8BffuA/3sXBnGCdV0CndJmuDmUDh10+xequtSk9OgIKA8wufq44gjFaIJ8/nKwpgF JDzIAfTZbUrPvB/zuvxHJvAcKQOnbF9ZXe/6jsTZLEfoK/LcymdjD7dRHfZpUor6eZ6g JNFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=ftaBgK/wmDDfARZNpeo+ZL9B0c9+yoaQG3X0kTKooAs=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=dJHusFTMxyWyX4qiPdSUtTQl6PfbGQvyZoLbsvRo3jqj0MRXWkszcbrzIqYQuI0TMB 2cnl0pdOuYAWWqmNjxnN8I8m/+txEtxKAi8+PDkGHgddXp90v5BeCWGEabem972paSBY mLcm0MjbI/qSptHMCMnbqZ9A0oEN4PG3RsCdIjCX45uHtF8h/CLKoIPSg3bUgBptyb1h pyy6KfRpCfw4CP867yZmOqyal0mwM9Ql4oqQ/vucwiAIlnDyurqGT8wVE5//su8Qcz4q tLoazmKQyBbozQGm53jkMp0nCRzCX0qzlJIxPdd+3EKpiUsYITDVZA+SvbjYsJUMjAWe CRWg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zivmEABP; 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 i19-20020ac85c13000000b00403b84a6bbasi1419095qti.385.2023.10.31.09.33.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:33:03 -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=zivmEABP; 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 0A9393856DDF for ; Tue, 31 Oct 2023 16:33:03 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by sourceware.org (Postfix) with ESMTPS id 55E07385770B for ; Tue, 31 Oct 2023 16:32:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 55E07385770B 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 55E07385770B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1134 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769971; cv=none; b=gbl7XXI0yTcYdXt0IMnQJul4xX+g2csHjQxVIYs679njdYzcRC2hfp2ZwktslbQRSjzkZbG+CzvL5NjJ17KCeG/87Yl5ZrljvzZZW7t3NQtRaRh4lbXpbWZ5wwTpx4Tb32woo/gBMw7o5QaRBEUmlkan3AO1d1RFg0RuGnC4K5U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698769971; c=relaxed/simple; bh=djASid44KlMAhF9A3RfgywpJnw+iDgMN8hZafjjuiBk=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=GWjkfNiTnihxhpOiaiT36xQjgM1QWHgf/LnTpdThol46s+PcSTkypaIlqrJVNevZR5W/6TBBpYSP+8smhNcwm6PvgMBoEPlpWpYjsL3VDmAD11oHfkhGAgiWJHQJN/XBoOXcrnvylvMS1NsFAJFbA6vb3g5v1RAxX/hrUXm38GU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-5b31c5143a0so11799227b3.3 for ; Tue, 31 Oct 2023 09:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698769969; x=1699374769; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ftaBgK/wmDDfARZNpeo+ZL9B0c9+yoaQG3X0kTKooAs=; b=zivmEABP1xD+I0TuhJpGTYwzc5VpBFaBIIdEX9EEx+9zJogC1KCjfzoPMQqZr1Z1Se 0I2wcAQ9XNDTJcnDW9qNV3qkULsbQqz6eAmynKxtsDv0nJyVPwTk3KezlG9Ad5Mn5PTh ptNSiCEi8JwZpSoE4qtM3gAjYFI8VtEh/xZ+3VOzE0x5P3CU0u5Vu0sSkjqRDneqjwCf /G0lXGEj0nAiMQZcInleD0BTxuPnit/skCXAxHtz/oKHSCQgDabPCpZ6ZKhHM6kFBNz8 gusA8N0rBGiZ9pb1nqaoBtvqX3goNbjmTh+/Kkv0EbAaqSvGg8nsoyWUwEECGtU6xM6a 2jMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698769969; x=1699374769; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ftaBgK/wmDDfARZNpeo+ZL9B0c9+yoaQG3X0kTKooAs=; b=bcPuA4j9QZnDo96T+UUIUChN8sLdtRNvpZXmE0y4OxtJ9rEfGzRXapu/XrHQ96hX0e le3BrbbbsbJHXHLyB+R5CFTSXBoBQDN5cMPUYqoEFspuQdpT1yRDUrRNY4WrNiFikJ94 YxToUd9Dsbhd/LLI11qQ1l5b3ZXo67QTjwpgVFcSwvk6V5WXLh0KhV8FJoTb4296KI9j YGCUilcThiWZA9yqV/Lbr7Sp7u2ScIOOrDk+wieH1KiLWL2DlhcOK+fkfdSS6MccGzlw Zs8nMbMiBWCjOOEtPSr8OHl93/nCXLoIht41c6MKP73n1YYS74nMURe4tfqCejHqu4Lj MyMQ== X-Gm-Message-State: AOJu0YwyQ/kdAl3Nw/hiwAVd8Lh+EYbaMbXuyUkHOnc/7EBNgqEAXC12 6oANcwF4FQ464mwhfjcsl+CtaDlGFRM+efDzE58TLA== X-Received: by 2002:a81:4895:0:b0:589:fad6:c17c with SMTP id v143-20020a814895000000b00589fad6c17cmr13310492ywa.45.1698769968992; Tue, 31 Oct 2023 09:32:48 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:3d3c:6c87:9be3:8cfc:976d]) by smtp.gmail.com with ESMTPSA id z76-20020a814c4f000000b0059f650f46b2sm1003638ywa.7.2023.10.31.09.32.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:32:48 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH v2 3/7] linux: Add MMAP_ABOVE4G from Linux 6.6 to sys/mman.h Date: Tue, 31 Oct 2023 13:32:35 -0300 Message-Id: <20231031163239.4020952-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231031163239.4020952-1-adhemerval.zanella@linaro.org> References: <20231031163239.4020952-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, T_SCC_BODY_TEXT_LINE 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 x86 added the flag (29f890d1050fc099f) for CET enabled. Also update tst-mman-consts.py test. --- sysdeps/unix/sysv/linux/tst-mman-consts.py | 2 +- sysdeps/unix/sysv/linux/x86/bits/mman.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/tst-mman-consts.py b/sysdeps/unix/sysv/linux/tst-mman-consts.py index e85ea41ee4..8186d7e178 100644 --- a/sysdeps/unix/sysv/linux/tst-mman-consts.py +++ b/sysdeps/unix/sysv/linux/tst-mman-consts.py @@ -33,7 +33,7 @@ def main(): help='C compiler (including options) to use') args = parser.parse_args() linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc) - linux_version_glibc = (6, 5) + linux_version_glibc = (6, 6) sys.exit(glibcextract.compare_macro_consts( '#define _GNU_SOURCE 1\n' '#include \n', diff --git a/sysdeps/unix/sysv/linux/x86/bits/mman.h b/sysdeps/unix/sysv/linux/x86/bits/mman.h index b335ceff43..3d356e86a0 100644 --- a/sysdeps/unix/sysv/linux/x86/bits/mman.h +++ b/sysdeps/unix/sysv/linux/x86/bits/mman.h @@ -25,6 +25,7 @@ /* Other flags. */ #define MAP_32BIT 0x40 /* Only give out 32-bit addresses. */ +#define MAP_ABOVE4G 0x80 /* Only map above 4GB. */ #include