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 59910C2D0DB for ; Mon, 20 Jan 2020 13:46:34 +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 1DBBE217F4 for ; Mon, 20 Jan 2020 13:46:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="onObiXDR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1DBBE217F4 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=ZHFBBQkSr40TRJK3Vm0fD+kwC+NIhz4gU40XA6vQyEA=; b=onObiXDRhJuJrL hIbPvwwCSS71JsgsW0E2alaGWGHHuRt99fruyk27e/3LRYUTVPyhdiLsEC4Wof8FOeKAQ3qZ+snFH 0CuTeGh3o+MRPReaJsUP7J8M2jRJfb3SMq8GG0Jw46mnYQtp2llv8yKE/RjRnTiDiPAEpsA++pe8y 0EHHzNCRRCcf7RMZK1pQRAfaKgsHbcu3AHofokFa3b6coOgQUcK1D75xgcVh66QNC14bT0v69loaV grAlS9kt3ZQBSQu0FUeHG1dfsRKc14xyqc9MCglRwolKIeFc26MzUYy2ZYDFE4QrmovmjNvlW1x3O 9FgDHgobqyD4xHKup0AQ==; 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 1itXNx-0007Mm-AT; Mon, 20 Jan 2020 13:46:33 +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 1itXNq-0007Lr-Re for linux-arm-kernel@lists.infradead.org; Mon, 20 Jan 2020 13:46:31 +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 571E530E; Mon, 20 Jan 2020 05:46:25 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C9FE73F52E; Mon, 20 Jan 2020 05:46:24 -0800 (PST) From: Mark Brown To: Will Deacon , Catalin Marinas Subject: [PATCH v12 0/2] ARMv8.5-RNG support Date: Mon, 20 Jan 2020 13:46:19 +0000 Message-Id: <20200120134621.43531-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-20200120_054626_937585_07E31064 X-CRM114-Status: GOOD ( 12.25 ) 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. 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 + arch/arm64/Kconfig | 12 +++ arch/arm64/include/asm/archrandom.h | 75 +++++++++++++++++++ arch/arm64/include/asm/cpucaps.h | 3 +- arch/arm64/include/asm/sysreg.h | 4 + arch/arm64/kernel/cpufeature.c | 13 ++++ arch/arm64/kernel/kaslr.c | 11 +++ 7 files changed, 119 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