Received: by 10.223.176.5 with SMTP id f5csp2646506wra; Mon, 5 Feb 2018 07:34:15 -0800 (PST) X-Google-Smtp-Source: AH8x227ANgZM9NnF62aRYfqPUv+uqtOBxXNQhZLbArDW0LzxFDsA4p80xlOuYb2+NsLdlNeJf1J2 X-Received: by 2002:a17:902:4683:: with SMTP id p3-v6mr35694840pld.408.1517844855509; Mon, 05 Feb 2018 07:34:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517844855; cv=none; d=google.com; s=arc-20160816; b=nsCgx93SjCaW+82y9ywpRYBLrzSe93wta6YsfYVcgD+5wCngVyGkJ8xwD1a6s67/OR pLOWzJScqTXVW0CmQkJk4YeRtg3VIB0f85HiFW6X9lvj1OwVS7q+wiuKE/D/GKugzqrZ GSGGsO/lIiy1Gl038zcB15ku2LUxperKZsCBIAynIcKXE95pnS8MXuYmDxgMHLt+rkAh L+yCpxEn9hvz1CYD607aYRFyUlW/BbWrWfn47SsJqt3WMENfub+xErjdstAEtmvdBnc3 jZeZesCAuqGZ2lXfa9N3xyJnso2YEPHq5MtRNsc2aTtqbdEcXWiHletOT97vxglcZXAW zbaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=mzQlAY2G7F9aU4iiTCO6WgjBTpMdYzHruZgW9l6dq4o=; b=JrVUnXsC5F6chzBvnCdoki9RPWJtbH6tlCUOQEF0XmD5O/ENyHcHhLYZ6F2nHCykmg UUpdN1r6oiEGacBvue4ywHirF1k15+TD4hMpcLnhdGVk0Gab4feFmyc63mk5TqW5LPX0 LUnrVJeYFDzZ1MonlEaoCK5Q1X88mDZpXjWcbRcxAzNAoybYcaDCnzKeo+vHpsIWrPvK m/8r65ZdXnsDQigJZiywpX+MtCRr3UG2GNc/9Af1DaJ8YF9n2ITkbCaBU/YIPvoyGGFw kurLuGzFpea996Q7fAvClJh9BKPNIqtQP1DALRNEfWk++FbeFlDYCFzgiig0Km0qvM9v Ms8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w29si3152567pgc.375.2018.02.05.07.34.00; Mon, 05 Feb 2018 07:34:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753227AbeBEPdZ (ORCPT + 99 others); Mon, 5 Feb 2018 10:33:25 -0500 Received: from resqmta-ch2-08v.sys.comcast.net ([69.252.207.40]:58216 "EHLO resqmta-ch2-08v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752925AbeBEPdR (ORCPT ); Mon, 5 Feb 2018 10:33:17 -0500 Received: from resomta-ch2-02v.sys.comcast.net ([69.252.207.98]) by resqmta-ch2-08v.sys.comcast.net with ESMTP id iikuefvSLvd8riilgeP7M3; Mon, 05 Feb 2018 15:33:16 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-02v.sys.comcast.net with SMTP id iilfecImrtbS7iilfeSecT; Mon, 05 Feb 2018 15:33:16 +0000 Received: by gentwo.org (Postfix, from userid 1001) id 17925116038E; Mon, 5 Feb 2018 09:33:15 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 15CF8116012A; Mon, 5 Feb 2018 09:33:15 -0600 (CST) Date: Mon, 5 Feb 2018 09:33:15 -0600 (CST) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Igor Stoppa cc: jglisse@redhat.com, keescook@chromium.org, mhocko@kernel.org, labbott@redhat.com, hch@infradead.org, willy@infradead.org, linux-security-module@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Subject: Re: [PATCH 3/6] struct page: add field for vm_struct In-Reply-To: Message-ID: References: <20180130151446.24698-1-igor.stoppa@huawei.com> <20180130151446.24698-4-igor.stoppa@huawei.com> <48fde114-d063-cfbf-e1b6-262411fcd963@huawei.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfFsg+1P23kR6l++/k/rJ1pGlheiXCgrGRUOwlYLUBBLsN8b5pvofkUt8X63HJbyWieFQB94ttmbcUn2j+bpFO3CDZ/LQsMUqNpLB3r6VN86rQihSVa1Z 18W3jpsLCQQqZK8sFTmwGOWS/Cxj2corM/u4gqFN0tNGcYIx5gNInAbW10tp+fKebF60pKwJ28auPPPDZBhtUqTY6XB5b5BBo0qDyf8jPtuklDsp3yDeveku HHAlIP6uY7bthq0bJFRkiE7lTBizswCgyxENzAJnwnSZANJQJUpBPdg9S/CHOR/bsDLwd1Lw8h5HH6sTWUumAKocpMR4VQNOT/GHVVEhzEN+RXbXZYfN0zhf 3ijwtrFRPE1EhFgYT08qWb7Q71gY4WW9ECDppAyskVS2jrjzLAT/W2INfJUfdVYAphKB64NimnHwlrYi5toy0EZ3Zhyc7QWjnUKzayw/HotiXw5yUvClFp81 Ah+jlU+XTmVl7FEmXNCj4VmGpvmxLaAe4IJ1jEuHmzsvK2935YnrkKWtYaI= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 3 Feb 2018, Igor Stoppa wrote: > - the property of the compound page will affect the property of all the > pages in the compound, so when one is write protected, it can generate a > lot of wasted memory, if there is too much slack (because of the order) > With vmalloc, I can allocate any number of pages, minimizing the waste. I thought the intend here is to create a pool where the whole pool becomes RO?