Received: by 10.223.148.5 with SMTP id 5csp6677881wrq; Wed, 17 Jan 2018 17:22:30 -0800 (PST) X-Google-Smtp-Source: ACJfBosRu+AjqUo1/nElRbZhjQobNAu8JKuuTyqBYWurvx1vPA0tSxm04ewHgaFbZXNkkgn2BO+y X-Received: by 10.98.223.196 with SMTP id d65mr33053423pfl.176.1516238549933; Wed, 17 Jan 2018 17:22:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516238549; cv=none; d=google.com; s=arc-20160816; b=MzFHZcTCOdtBCUnJ1bN0khYUU5/TxBNf8VRMXnZpbkzsl5LfdBP2HPlILG/1w/G0WK w8cnrHIBOw1/dOPs+LA9Ah7AiNrMw1j/YfLPIvAaOMfOEr3ctgptpIyb9NYfOGuFdqZk 7KBoY9byQNBYk6cZMFjiGjgRz+rZzVESwMmyQuMUOyJb2WSjJeD/jDK/RxZ5DUniTVjl dWMbPx4Kd3AJEBP8WVnTUfz/4A5/pqGgnH0BY7XLxgdIQnCws/rBrrfJtrWAanJQAVfG J/ORNhFAMEW5QzPQegTp100dZUf8jYYWyJFavSAetqMcKGKd21dxuusEDeoT8vnWe38S r2tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=udZlyZDYhqcU/zF5Lxtr4czQiuk8Rp58pJfoJwTAD7w=; b=Ua/whdClxw/DzZfbI+UjtqyC+BC8/cKYSvezI95RmoWFzhDsXn39ntnNCXpaTzmVWj /GsOtrBt+7lr7gZ0cL8Oc6S+l1++9vJ1P/t9rpmaHrkplO5cM7Jh+j0NSyc5Xe+y+HP1 0tBS9mymnGg1RKKtpxVvHmJe4cdYcYUSjrX94d6i0oL8KCDJY8DDmylqRt93VOrvh81C 4Qmx6FCgjkbLDGJpG0SsDcU3yP2yGuSqMvy3/JVkkpk/u2/5gG1YTCdYJUcfK/Cy9Ted IUR9KlsXqJlZflT+uyzXUGC6xFMm0HGRuDwe2MODIHqzFdTank8ia5jwicpzKg1GwOzr nH2g== 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 z90si5418896pfl.204.2018.01.17.17.22.15; Wed, 17 Jan 2018 17:22:29 -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 S1753023AbeARBV0 (ORCPT + 99 others); Wed, 17 Jan 2018 20:21:26 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:14548 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752588AbeARBVZ (ORCPT ); Wed, 17 Jan 2018 20:21:25 -0500 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="35427167" Received: from bogon (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 18 Jan 2018 09:21:25 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 5BBC3486A76B; Thu, 18 Jan 2018 09:21:21 +0800 (CST) Received: from localhost.localdomain (10.167.225.56) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 18 Jan 2018 09:21:25 +0800 Date: Thu, 18 Jan 2018 09:20:01 +0800 From: Chao Fan To: Baoquan He CC: , , , , , , , , Subject: Re: [PATCH v7 3/5] x86/KASLR: Give a warning if movable_node specified without kaslr_mem= Message-ID: <20180118012001.GC24593@localhost.localdomain> References: <20180117105351.12226-1-fanc.fnst@cn.fujitsu.com> <20180117105351.12226-4-fanc.fnst@cn.fujitsu.com> <20180117140248.GG2321@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180117140248.GG2321@localhost.localdomain> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [10.167.225.56] X-yoursite-MailScanner-ID: 5BBC3486A76B.ABB81 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: fanc.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 17, 2018 at 10:02:48PM +0800, Baoquan He wrote: >On 01/17/18 at 06:53pm, Chao Fan wrote: >> Since only 'movable_node' specified without 'kaslr_mem=' may break >> memory hotplug, so reconmmend users using 'kaslr_mem=' when >> 'movable_node' specified.. >> >> Signed-off-by: Chao Fan >> --- >> arch/x86/boot/compressed/kaslr.c | 10 ++++++++++ >> 1 file changed, 10 insertions(+) >> >> diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c >> index b200a7ceafc1..dca846b522fc 100644 >> --- a/arch/x86/boot/compressed/kaslr.c >> +++ b/arch/x86/boot/compressed/kaslr.c >> @@ -282,6 +282,16 @@ static int handle_mem_filter(void) >> !strstr(args, "kaslr_mem=")) >> return 0; >> >> +#ifdef CONFIG_MEMORY_HOTPLUG >> + /* >> + * Check if "kaslr_mem=" specified when "movable_node" found. If not, >> + * just give warrning. Otherwise memory hotplug could be >> + * affected if kernel put on movable memory regions. >> + */ >> + if (strstr(args, "movable_node") && !strstr(args, "kaslr_mem=")) >> + warn("kaslr_mem= should specified when using movable_node.\n"); > 'kaslr_mem=' ^be You have given me a large help for my poor English. Thanks, Chao Fan >> +#endif >> + >> tmp_cmdline = malloc(len + 1); >> if (!tmp_cmdline) >> error("Failed to allocate space for tmp_cmdline"); >> -- >> 2.14.3 >> >> >> > >