Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3732064ybg; Sun, 20 Oct 2019 20:36:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzejOIEaoKWDegWVkDAs1DJmY7SILUv0u32g2OtJGnWsMhWurFyOGi5YIfm5LpkaAluDesC X-Received: by 2002:aa7:d28d:: with SMTP id w13mr22376398edq.184.1571628993463; Sun, 20 Oct 2019 20:36:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571628993; cv=none; d=google.com; s=arc-20160816; b=K+9oiGaclBk1WkIh9D4oKJ0bxqX+lhwRp+7mu9CxWjnPcottglEojiSABVuEqY5wVt zGB8T05Go+/MhNNnxkj4c7KE4zvFGQppUppgN++kcI2dohvWSe40CFGroMCXwNEUrGrS pxjkdmcWdOLWj/Ny8cRuy6+F0wUOysYCU2KG43RHtkX6G4mh+uISYfgEOIkygGzxqQHU tSLhO+QnhW9+xqr9eWhCWrsYndxaJmf2yPL9INwdfxJS/PhzR6uIFytZ6Lfk9EQsnZXS QDAVSeYpW7KL0IwJwztZvDpRk8xQ3shu2iyzuJ4pwOBa2QamML8LXbQtunch+OWGfEjF ITKw== 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:cc:to:subject; bh=3WMQpd2sV2W9+suj6t3s8XTHHLwZMskliNuxfKH7cgM=; b=W4bgFqpdBYdb2lvfmI2F2l8UcPlq81Q20B/gCInfSnsFp+bXA1+v+3Nob4mUQmoLNT VihTQzqxGH2pQrvyFtqY48EFqFuA8sQfP+AyJFPwchgR4/GmINFIMy7oqp3y/WViBr1N aGAMr8AKtmAGVbTJK9E5aPLDD8i52zVzbHFQCGX4jQ3GH5uwPzvMA84PPUMfX5l3i83Q cc9XWAKhcBeEmduR49YkYL4VzIBPH5tPt5O5020Oj/amSemuybesylHP2nL4nRunrUmn itHXAbC7UzbBz8Kp2H826p/FKHY3kLo/KJLPqFL9t4SvVVXqkfBdcwkaxYmS0EtWIdkP yMZA== 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 w12si7573260ejb.303.2019.10.20.20.36.09; Sun, 20 Oct 2019 20:36:33 -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; 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 S1726987AbfJUDfN (ORCPT + 99 others); Sun, 20 Oct 2019 23:35:13 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59038 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726835AbfJUDfN (ORCPT ); Sun, 20 Oct 2019 23:35:13 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6D27770CA029068351AD; Mon, 21 Oct 2019 11:35:11 +0800 (CST) Received: from [127.0.0.1] (10.177.96.203) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Mon, 21 Oct 2019 11:35:00 +0800 Subject: Re: [PATCH v7 00/12] implement KASLR for powerpc/fsl_booke/32 To: Scott Wood , , , , , , , , , CC: , , , , , 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> <34ef1980887c8a6d635c20bdaf748bb0548e51b5.camel@buserror.net> From: Jason Yan Message-ID: <0543af6f-df4a-81ff-41fe-c81959568859@huawei.com> Date: Mon, 21 Oct 2019 11:34:59 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <34ef1980887c8a6d635c20bdaf748bb0548e51b5.camel@buserror.net> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.96.203] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/10/10 2:46, Scott Wood wrote: > 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. > Hi Scott, any more cases should be tested or any more comments? What else need to be done before this feature can be merged? Thanks, Jason > -Scott > > > > . >