From owner-p4-projects@FreeBSD.ORG Mon Sep 8 04:52:52 2014 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id DCECB13F0; Mon, 8 Sep 2014 04:52:51 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 420929F0 for ; Mon, 8 Sep 2014 04:51:22 +0000 (UTC) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [IPv6:2001:1900:2254:2068::682:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2ED891ED0 for ; Mon, 8 Sep 2014 04:51:22 +0000 (UTC) Received: from skunkworks.freebsd.org ([127.0.1.74]) by skunkworks.freebsd.org (8.14.9/8.14.9) with ESMTP id s884pM99027272 for ; Mon, 8 Sep 2014 04:51:22 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.9/8.14.9/Submit) id s884pMbt027269 for perforce@freebsd.org; Mon, 8 Sep 2014 04:51:22 GMT (envelope-from jhb@freebsd.org) Date: Mon, 8 Sep 2014 04:51:22 GMT Message-Id: <201409080451.s884pMbt027269@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin Subject: PERFORCE change 1199532 for review To: Perforce Change Reviews Precedence: bulk X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.18-1 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2014 04:52:52 -0000 http://p4web.freebsd.org/@@1199532?ac=10 Change 1199532 by jhb@jhb_ralph on 2014/08/29 17:49:33 Don't require MAP_SHARED or MAP_PRIVATE with MAP_ANON. Note that we can't simply for MAP_SHARED on for MAP_ANON as MAP_SHARED with MAP_ANON determines whether or not anon regions are shared with future children. Affected files ... .. //depot/projects/smpng/sys/vm/vm_mmap.c#106 edit Differences ... ==== //depot/projects/smpng/sys/vm/vm_mmap.c#106 (text+ko) ==== @@ -248,13 +248,10 @@ return (EINVAL); if ((prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_NONE)) != 0) return (EINVAL); - - /* Exactly one of MAP_SHARED or MAP_PRIVATE must be given. */ - if ((flags & (MAP_SHARED | MAP_PRIVATE)) == 0 || + if ((flags & (MAP_ANON | MAP_SHARED | MAP_PRIVATE)) == 0 || (flags & (MAP_SHARED | MAP_PRIVATE)) == (MAP_SHARED | MAP_PRIVATE)) return (EINVAL); - /* * Align the file position to a page boundary, * and save its page offset component.