Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751701AbdHCI7m (ORCPT ); Thu, 3 Aug 2017 04:59:42 -0400 Received: from [183.91.158.132] ([183.91.158.132]:47040 "EHLO heian.cn.fujitsu.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751067AbdHCI7k (ORCPT ); Thu, 3 Aug 2017 04:59:40 -0400 X-IronPort-AV: E=Sophos;i="5.41,315,1498492800"; d="scan'208";a="22163564" Subject: Re: [POC] Get acpi table to limit memory scope chosen by KASLR to home SB when "movable_node" is specified To: Chao Fan , , References: <20170803085155.GE25014@localhost.localdomain> CC: , , , , , , , , , , "Rafael J., Wysocki" , "Zheng, Lv" , ACPI Devel Maling List From: Dou Liyang Message-ID: Date: Thu, 3 Aug 2017 16:59:26 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20170803085155.GE25014@localhost.localdomain> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: 2FED246B5FDF.AFA7D X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 992 Lines: 33 Cc ACPI maintainers and mail list At 08/03/2017 04:51 PM, Chao Fan wrote: > Hi all, > > Here is an issue about movable_node and KASLR. > Currently, KASLR works well with "mem=", by which we can limit the scope of > memory chosen by KASLR. But if we use "movable_node" independently without > "mem=", we don't know the scope of memory in the home SB, which will cause > the memory of hotplug SB may be chosen by KASLR. > To solve this problem, I want to do this job: > If "movable_node" is specified, try to get the acpi table and find the scope > of memory in home SB, then set "mem_limit". > > The order of getting table is: > boot_params > \-systab > \-efi tables > \-rsdp > \-rsdt or xsdt > \-acpi root table list > \-acpi srat mem affinity > > I am not sure if it's OK for community. > If there are any problems, please let me know. > Any comments will be welcome. > > Thanks, > Chao Fan > > >