From patchwork Sun Nov 24 23:56:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 101813 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 AFB1F3858428 for ; Sun, 24 Nov 2024 23:57:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AFB1F3858428 X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id B40E83858CD9 for ; Sun, 24 Nov 2024 23:56:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B40E83858CD9 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bounce.ens-lyon.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B40E83858CD9 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.77.166.138 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732492595; cv=none; b=wUXemSp90dE2P/lY8+zHMVUgks5enxmpH7v3Cn13NeluScZINyvZGTJ7FVtIrFFdahWfUItoGOeyZkqbB46eeh1res7yAhb2P9c1kyRmZpUwYTzdIUn9H03mKHAjdVtcs0A59SDwEWz2TBuB1tP4cNoYO38KGzE3LG77cHeaGk4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732492595; c=relaxed/simple; bh=ZtniYKPF4fypb/mC1X/BIqIU0IdM3ZkI7wCH+9ixtW0=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=YcHFIzLuNjf0dREWmhBPO8oygZ+m96m5J3L47vVPSUm/5DOCidZF5lWUXJjMbCJwkxExlyHjIpaONDInbzrikNXjrQVSCZUJ0pjfu0RRk2mRBTylgqbfFVAlZLEnrUXKP+efDoebEY8cZwoTDiRIHZ+DcxP2R5Dvubs1ZN8At5A= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B40E83858CD9 Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 38CF6A1B58; Mon, 25 Nov 2024 00:56:34 +0100 (CET) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mIXnjKiIedNT; Mon, 25 Nov 2024 00:56:34 +0100 (CET) Received: from begin (aamiens-653-1-40-48.w83-192.abo.wanadoo.fr [83.192.199.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id 1B73FA1AB5; Mon, 25 Nov 2024 00:56:34 +0100 (CET) Received: from samy by begin with local (Exim 4.98) (envelope-from ) id 1tFMSv-00000000f2s-2iFN; Mon, 25 Nov 2024 00:56:33 +0100 From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [hurd,commited] hurd: Add MAP_NORESERVE mmap flag Date: Mon, 25 Nov 2024 00:56:33 +0100 Message-ID: <20241124235633.157769-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, 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 This is already the current default behavior, which we will change with overcommit support addition. --- sysdeps/mach/hurd/bits/mman_ext.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sysdeps/mach/hurd/bits/mman_ext.h b/sysdeps/mach/hurd/bits/mman_ext.h index d5a371e39e..6baee1ea74 100644 --- a/sysdeps/mach/hurd/bits/mman_ext.h +++ b/sysdeps/mach/hurd/bits/mman_ext.h @@ -24,6 +24,7 @@ # define SHM_ANON ((const char *) 1) # define MAP_32BIT 0x1000 /* Map in the lower 2 GB. */ +# define MAP_NORESERVE 0x2000 /* Don't check for reservations. */ # define MAP_EXCL 0x4000 /* With MAP_FIXED, don't replace existing mappings. */ # define MAP_TRYFIXED (MAP_FIXED | MAP_EXCL) /* BSD name. */