Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp39085imm; Fri, 21 Sep 2018 09:57:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYUDULmapAa2lCu+gnNy7bX4t5MGjHHrFwVL2JY598+mEltnzkAJtuMla4Ap1DexKcrAioo X-Received: by 2002:a17:902:47c2:: with SMTP id d2-v6mr45811677plh.317.1537549058051; Fri, 21 Sep 2018 09:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537549058; cv=none; d=google.com; s=arc-20160816; b=OOJLcVJmBiM01/WfUIO1OFgcj8Fzv09iAL369hkirN0wXeR2y5COl3XDnVASyS9xFu uodUs1mDCwuMYr/t3w1SlnKUdkzjSGUHy2GjzVFbFh07CG+zVbVqpg4H34TSuhHj14+6 d6R6UPga1rJ7qySfQ1CsIeJoo3cj8VhXFIeHpi2nz86myzkV9AgPf1Agmg+xDpgti0JD QgsIYJ8Z1KrCi+HNcAnwOQ2y6KQ9fTZYTv7KQleTxad05cdIrFiwYiid97d6YUwXw1VR SuNrj07d3Ytsm0tQqUrLcIq51TdwgMl6K1rpLQyYDBvBsBZuXx57icPeIpgJKMLJ6vCA F8kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=08oZhVAsrOzYwrbCYvThD4RKeGUmXuT6FdhAm1zidfg=; b=RsbsuW7EXkKv8ok/54PGRQcAzbF9cuGjmHX2Dh/3IfWxZYgs66PsIGOXd7INr6qEfq EW+vyVff6lSU4C5seY5wtATUARlvTqUNYF7LnE9X3L/qwXBRy2DaFsZBmX18mcMIW4Du pnX5UMfIOhRYntkOfRVnv+pezJK7m0Xc57mtmQZJ+4rl/4PhqSdPQGNLyUpsPZgDl9gK v4RELQ7G3t26ZUqNNrW0AreJLto6XXnaecvMONo4pFcC11/ZaC0+cXaEyBI8+m4UFMXM g0iTA+L27SXDfTfsw+f5a6Fs/VWagD2M3iD4y4aPjzictyLQY//i411SWJHc/ktM8sXB 9lcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Gh9jgvOZ; 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 x29-v6si7541042pga.674.2018.09.21.09.57.20; Fri, 21 Sep 2018 09:57:38 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Gh9jgvOZ; 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 S2390688AbeIUWpT (ORCPT + 99 others); Fri, 21 Sep 2018 18:45:19 -0400 Received: from merlin.infradead.org ([205.233.59.134]:42052 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388909AbeIUWpT (ORCPT ); Fri, 21 Sep 2018 18:45:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=08oZhVAsrOzYwrbCYvThD4RKeGUmXuT6FdhAm1zidfg=; b=Gh9jgvOZdui0JxmUTjjL3k/9xc vxmNrOdGb2RF9ekhRD+RV8BaebwXs4tARAFXqWT1Zam0zf3i+f11Pqvggqe51+MzPwTb+E6KwiOil 8tF8ZTZjXA3UwsnpG2azt6qVUz1UGb3y0ne0mx9vWfqZ8Wjyrpq2f3fJVOkDZbY0xVmeVoU4/+m+V KkszmlW8RGn6P8HSW8HbqS/O0oHKYZoa3Y4GDZg3O9MyA/xsL8QxfmcIQvFUAvEdz8hA4Vfjvq1k3 9DpAKx0Uilf+ZDupwvsM/t0kUt4c9F1ElZrBZLG08PCNjzPvZMJ1CUuxRBk48F7OZs6VTsGMHbnzt +Og0SnnA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g3Ohx-0000xV-97; Fri, 21 Sep 2018 16:55:09 +0000 Subject: Re: [RFC PATCH v4 23/27] mm/map: Add Shadow stack pages to memory accounting To: Yu-cheng Yu , x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , "Ravi V. Shankar" , Vedvyas Shanbhogue References: <20180921150351.20898-1-yu-cheng.yu@intel.com> <20180921150351.20898-24-yu-cheng.yu@intel.com> From: Randy Dunlap Message-ID: <8c18fabf-170f-9010-3075-238e34c9f09b@infradead.org> Date: Fri, 21 Sep 2018 09:55:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180921150351.20898-24-yu-cheng.yu@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/21/18 8:03 AM, Yu-cheng Yu wrote: > Add shadow stack pages to memory accounting. > Also check if the system has enough memory before enabling CET. > > Signed-off-by: Yu-cheng Yu oops. typo above. > --- > mm/mmap.c | 5 +++++ > 1 file changed, 5 insertions(+) -- ~Randy