Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp355058ybl; Tue, 27 Aug 2019 22:01:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVcoy8YBGbc5RgNSIHcYwZ3ul3NEj/JHUCzS7vz0WUuCaSJ5aAiCZHU8pQQ89QFOc8F/p4 X-Received: by 2002:a63:a35e:: with SMTP id v30mr1756419pgn.129.1566968487718; Tue, 27 Aug 2019 22:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566968487; cv=none; d=google.com; s=arc-20160816; b=vXQ3OyjTuC/KSMMTpz3wymZqrnGWguBlkPTFlNLAUlQC+P2V4Cl6z0of227Y9nXlHT mcKPdlw7ChS8s5ooVk0eijH3MgYMOJkasKA9+Z54lkaVnnQApglJLD1KKHvzHCUFcyEt s4tQfxGFU8GX8QQBC22qUqBoqvbLDy9c4gkzUGSnvpdy0NbdyOc5ZDHc29ylsREqDZ2M Sac6vEyGOo6E1KEfZ122iO91zixJVuBi8nsUvSI4CN/TqKhXJjGVsW5Cg0pTn3ph60D7 Jup3qwPMnkslxMdgw3CrfRR/Q9Lvn3hVN56FTnPEm9yl7WZmFt3NzvzrMoRN6VXiNGlM sJag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:organization:references:in-reply-to:date:cc:to:from :message-id; bh=wNUFbbNcXfIsLG+ySfTsep1H6XHyn1LSigtlPVmcnts=; b=UAyOmQe9O4FuXWjCpoSQkKRPL9VXI6N8ZIjJ1wkap0sGgvthA95XU7Y7PymJHBsAmg 3n+0APxqpnNjJ6w3JI4KgQDnKPaQNL7N35unK4wYw4V2SBQstIinb8qFZbCklzYSR0O8 8K9Sxd4Lnb+6HD5RucjJK2i92XEom+/RjpvDI8QRsjzh98ETKbPj/sQTa7wa5UUgpahN 3a9H2sRNvsxeGne0wy496wK7xTKxV2r8EVzEezF4x9fPNnVVhqNA/TpfQiA/LBmg/4hy fgYAtjf6Ii3v1Yj7E9CLJXlCt1IiMWOHVHoaJ+oNJ9jgH7ZbNRKxWPpiUHTa4aMjVic/ qy0Q== 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 28si1252063pgk.331.2019.08.27.22.01.12; Tue, 27 Aug 2019 22:01:27 -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 S1726227AbfH1FAK (ORCPT + 99 others); Wed, 28 Aug 2019 01:00:10 -0400 Received: from baldur.buserror.net ([165.227.176.147]:49230 "EHLO baldur.buserror.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725865AbfH1FAK (ORCPT ); Wed, 28 Aug 2019 01:00:10 -0400 Received: from [2601:449:8400:7293: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 1i2q3p-0007Ry-Si; Tue, 27 Aug 2019 23:59:58 -0500 Message-ID: <143e5a85bc630d2bb0324114e78bedec8fbeb299.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 Cc: wangkefeng.wang@huawei.com, linux-kernel@vger.kernel.org, jingxiangfeng@huawei.com, zhaohongjiang@huawei.com, thunder.leizhen@huawei.com, fanchengyang@huawei.com, yebin10@huawei.com Date: Tue, 27 Aug 2019 23:59:56 -0500 In-Reply-To: References: <20190809100800.5426-1-yanaijie@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:8400:7293: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, fanchengyang@huawei.com, yebin10@huawei.com X-SA-Exim-Mail-From: oss@buserror.net X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on baldur.localdomain X-Spam-Level: X-Spam-Status: No, score=-17.5 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -15 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -1.5 GREYLIST_ISWHITE The incoming server has been whitelisted for * this recipient and sender Subject: Re: [PATCH v6 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-08-27 at 23:05 -0500, Scott Wood wrote: > On Fri, 2019-08-09 at 18:07 +0800, Jason Yan wrote: > > Freescale Book-E > > parts expect lowmem to be mapped by fixed TLB entries(TLB1). The TLB1 > > entries are not suitable to map the kernel directly in a randomized > > region, so we chose to copy the kernel to a proper place and restart to > > relocate. > > > > Entropy is derived from the banner and timer base, which will change every > > build and boot. This not so much safe so additionally the bootloader may > > pass entropy via the /chosen/kaslr-seed node in device tree. > > How complicated would it be to directly access the HW RNG (if present) that > early in the boot? It'd be nice if a U-Boot update weren't required (and > particularly concerning that KASLR would appear to work without a U-Boot > update, but without decent entropy). OK, I see that kaslr-seed is used on some other platforms, though arm64 aborts KASLR if it doesn't get a seed. I'm not sure if that's better than a loud warning message (or if it was a conscious choice rather than just not having an alternative implemented), but silently using poor entropy for something like this seems bad. -Scott