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=-4.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 073C4C2D0CE for ; Tue, 21 Jan 2020 12:59:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 B954B2051A for ; Tue, 21 Jan 2020 12:59:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IZt3r5ZW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B954B2051A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=3bJPt6TiEbcSbWIXj8WB8EG+l5uyRVoIUrghP3y2PtI=; b=IZt3r5ZW25wbod TGwgi4MzeBoCTGXU6/ST+y9DcTV1BKAdZqDWsrjYoHRcxztEvNG11snySPr53/SlIIyZHeQWnY6Dd MMd/2HZk6vN6prvX+j8pW5oGpwV5iGWbpjtGV2I1kZfpgvDHu92qMBKYz7w4nIsciO5KOb4dfd/1c YcDDWBsE7LQXSpkjDHvz+nLUWVRJ991QuxGuR/DG9uvAKFhI7wdZy3MyBe+Ay9OdKZxLHPnsdRoXX apvV5gtpQdyXZc6XeuacGmM/wsiK8VGRO8+4dgiiq5l4xynqHx7egAsH6lRRqx2PI1R+nqWOs6mWp bls3Nk9cYWcHoMvTlXrw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1itt86-0000H6-QH; Tue, 21 Jan 2020 12:59:38 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1itt7q-00007K-T8 for linux-arm-kernel@lists.infradead.org; Tue, 21 Jan 2020 12:59:26 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 65F3530E; Tue, 21 Jan 2020 04:59:20 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D756F3F52E; Tue, 21 Jan 2020 04:59:19 -0800 (PST) From: Mark Brown To: Will Deacon , Catalin Marinas Subject: [PATCH v13 0/2] ARMv8.5-RNG support Date: Tue, 21 Jan 2020 12:58:51 +0000 Message-Id: <20200121125853.28825-1-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200121_045922_984339_1688A2D9 X-CRM114-Status: GOOD ( 12.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Mark Brown , Richard Henderson , linux-arm-kernel@lists.infradead.org, Ard Biesheuvel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series is based on Richard Henderson's previous v7, it addresses review comments from that version by dropping the boot time RNG support and adds a new change that uses the v8.5-RNG extension to seed KASLR when ARCH_RANDOM is enabled. The boot time support will be re-added later, there are awkward potential interactons with CPU feature enumeration which need a bit more thought. v13: - Re-add the hwcap code which was accidentally dropped from v12. v12: - Move definition of __early_cpu_has_rndr() into KASLR patch. v11: - Add a hwcap for v8.5-RNG. - Drop the addition of data to the pool, it's of questionable value and we need to go back and get the addition of actual entropy working anyway. v10: - Spell out that we're adding data not entropy from setup_arch() in the commit message for patch 2. v9: - Make another static inline helper for early feature checks. - Add init annotations. - Use xor to add RNDR output to seed for KASLR. Mark Brown (1): arm64: Use v8.5-RNG entropy for KASLR seed Richard Henderson (1): arm64: Implement archrandom.h for ARMv8.5-RNG Documentation/arm64/cpu-feature-registers.rst | 2 + Documentation/arm64/elf_hwcaps.rst | 4 + arch/arm64/Kconfig | 12 +++ arch/arm64/include/asm/archrandom.h | 75 +++++++++++++++++++ arch/arm64/include/asm/cpucaps.h | 3 +- arch/arm64/include/asm/hwcap.h | 1 + arch/arm64/include/asm/sysreg.h | 4 + arch/arm64/include/uapi/asm/hwcap.h | 1 + arch/arm64/kernel/cpufeature.c | 14 ++++ arch/arm64/kernel/kaslr.c | 11 +++ 10 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/include/asm/archrandom.h -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel