From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71431C47404 for ; Wed, 9 Oct 2019 18:51:07 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E11A520679 for ; Wed, 9 Oct 2019 18:51:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E11A520679 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=buserror.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46pNbC63B7zDqdb for ; Thu, 10 Oct 2019 05:51:03 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=buserror.net (client-ip=165.227.176.147; helo=baldur.buserror.net; envelope-from=oss@buserror.net; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=buserror.net Received: from baldur.buserror.net (baldur.buserror.net [165.227.176.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46pNXs2yMrzDqBM for ; Thu, 10 Oct 2019 05:48:59 +1100 (AEDT) Received: from [2601:449:8480:af0:12bf:48ff:fe84:c9a0] by baldur.buserror.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iIGyv-000329-9o; Wed, 09 Oct 2019 13:46:41 -0500 Message-ID: <34ef1980887c8a6d635c20bdaf748bb0548e51b5.camel@buserror.net> From: Scott Wood To: Jason Yan , mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, diana.craciun@nxp.com, christophe.leroy@c-s.fr, benh@kernel.crashing.org, paulus@samba.org, npiggin@gmail.com, keescook@chromium.org, kernel-hardening@lists.openwall.com Date: Wed, 09 Oct 2019 13:46:38 -0500 In-Reply-To: <90bb659a-bde4-3b8e-8f01-bf22d7534f44@huawei.com> References: <20190920094546.44948-1-yanaijie@huawei.com> <9c2dd2a8-83f2-983c-383e-956e19a7803a@huawei.com> <38141b946f3376ce471e46eaf065e357ac540354.camel@buserror.net> <90bb659a-bde4-3b8e-8f01-bf22d7534f44@huawei.com> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2601:449:8480:af0:12bf:48ff:fe84:c9a0 X-SA-Exim-Rcpt-To: yanaijie@huawei.com, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, diana.craciun@nxp.com, christophe.leroy@c-s.fr, benh@kernel.crashing.org, paulus@samba.org, npiggin@gmail.com, keescook@chromium.org, kernel-hardening@lists.openwall.com, wangkefeng.wang@huawei.com, linux-kernel@vger.kernel.org, jingxiangfeng@huawei.com, zhaohongjiang@huawei.com, thunder.leizhen@huawei.com, yebin10@huawei.com X-SA-Exim-Mail-From: oss@buserror.net Subject: Re: [PATCH v7 00/12] implement KASLR for powerpc/fsl_booke/32 X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on baldur.buserror.net) X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: wangkefeng.wang@huawei.com, linux-kernel@vger.kernel.org, jingxiangfeng@huawei.com, zhaohongjiang@huawei.com, thunder.leizhen@huawei.com, yebin10@huawei.com Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Wed, 2019-10-09 at 16:41 +0800, Jason Yan wrote: > Hi Scott, > > On 2019/10/9 15:13, Scott Wood wrote: > > On Wed, 2019-10-09 at 14:10 +0800, Jason Yan wrote: > > > Hi Scott, > > > > > > Would you please take sometime to test this? > > > > > > Thank you so much. > > > > > > On 2019/9/24 13:52, Jason Yan wrote: > > > > Hi Scott, > > > > > > > > Can you test v7 to see if it works to load a kernel at a non-zero > > > > address? > > > > > > > > Thanks, > > > > Sorry for the delay. Here's the output: > > > > Thanks for the test. > > > ## Booting kernel from Legacy Image at 10000000 ... > > Image Name: Linux-5.4.0-rc2-00050-g8ac2cf5b4 > > Image Type: PowerPC Linux Kernel Image (gzip compressed) > > Data Size: 7521134 Bytes = 7.2 MiB > > Load Address: 04000000 > > Entry Point: 04000000 > > Verifying Checksum ... OK > > ## Flattened Device Tree blob at 1fc00000 > > Booting using the fdt blob at 0x1fc00000 > > Uncompressing Kernel Image ... OK > > Loading Device Tree to 07fe0000, end 07fff65c ... OK > > KASLR: No safe seed for randomizing the kernel base. > > OF: reserved mem: initialized node qman-fqd, compatible id fsl,qman-fqd > > OF: reserved mem: initialized node qman-pfdr, compatible id fsl,qman-pfdr > > OF: reserved mem: initialized node bman-fbpr, compatible id fsl,bman-fbpr > > Memory CAM mapping: 64/64/64 Mb, residual: 12032Mb > > When boot from 04000000, the max CAM value is 64M. And > you have a board with 12G memory, CONFIG_LOWMEM_CAM_NUM=3 means only > 192M memory is mapped and when kernel is randomized at the middle of > this 192M memory, we will not have enough continuous memory for node map. > > Can you set CONFIG_LOWMEM_CAM_NUM=8 and see if it works? OK, that worked. -Scott