Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753235AbdIDDI5 (ORCPT ); Sun, 3 Sep 2017 23:08:57 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:3496 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753124AbdIDDI4 (ORCPT ); Sun, 3 Sep 2017 23:08:56 -0400 X-IronPort-AV: E=Sophos;i="5.41,473,1498492800"; d="scan'208";a="25172815" Date: Mon, 4 Sep 2017 11:08:49 +0800 From: Chao Fan To: Baoquan He CC: "Rafael J. Wysocki" , , , , , , , , , , , , , , Subject: Re: [PATCH v2] kaslr: get ACPI SRAT table to avoid movable memory Message-ID: <20170904030847.GA10604@localhost.localdomain> References: <20170903143123.22031-1-fanc.fnst@cn.fujitsu.com> <2895411.GR6mzpbNLk@aspire.rjw.lan> <20170904022619.GB30906@x1> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20170904022619.GB30906@x1> User-Agent: Mutt/1.8.3 (2017-05-23) X-Originating-IP: [10.167.226.75] X-yoursite-MailScanner-ID: C119046BA660.AA416 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: fanc.fnst@cn.fujitsu.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1100 Lines: 35 On Mon, Sep 04, 2017 at 10:26:19AM +0800, Baoquan He wrote: >On 09/04/17 at 12:55am, Rafael J. Wysocki wrote: >> On Sunday, September 3, 2017 4:31:23 PM CEST Chao Fan wrote: >> > KASLR should choose the memory region of immovable node to extract kernel. >> > So get ACPI SRAT table and store the memory region of movable node which >> > kaslr shold avoid. >> >> Please elaborate. >> >> This is far too little information on what problem you are trying to address >> and why you are trying to address it in this particular way. > >Agree with Rafael. > >Why don't you try specifying those regions in cmdline and process them >in kaslr.c? Your colleague, Liyang has tried this way, just he only >considered the region in the first node. In this way, you don't need to Hi Baoquan, Yes, but if the region is not only in the first node, we can get the detail information about the memory scope and whether it's hotpluggable only by the ACPI table. The lines of code are so many, but we can get more information. Thanks, Chao Fan >touch ACPI tables with so many lines of code. > >Thanks >Baoquan > >