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=-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 E9F8FC33CB6 for ; Fri, 17 Jan 2020 15:27:09 +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 BFE0B214AF for ; Fri, 17 Jan 2020 15:27:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rg+PoX0y"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sirena.org.uk header.i=@sirena.org.uk header.b="w9Pji8Ai" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BFE0B214AF 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=XkW1yAZ2c9Dn2vz1PHdup6yIPqunj0tBzEqgDt5DL+U=; b=rg+PoX0y0yyW0C h0StXbq2/lGc0QMP/wluHuIdK/0KWeIaeZaEZ/XT8AsIHZnvLVFJgrYROdEfXyKH3TqaztJzZi7RU dmy4LLVd6nWiVzUr033PwUFLk6QuN3QFdSxxx/Y4EKHpdkThtVnqySMdDIeiDvd3bt0NSF/rtn0zl A3df49ueGCnaRDn6Z6ug0fzptiNIuaybPpZ17ILcROYWzKKfeVBtwXCgtwlX6+2oHiJyDATPiRnsy t8a6ARh/ZHkvdOV6ETz8KjOiYT4bPS4HIEd1MUMRaEEKsQUetu4TPA1Bf7uTrYgd8glCZvGQ7Y38M kxReNb5dtZKyfJuqbvNg==; 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 1isTWe-0006h2-F3; Fri, 17 Jan 2020 15:27:08 +0000 Received: from heliosphere.sirena.org.uk ([172.104.155.198]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1isTWL-0006WW-2V for linux-arm-kernel@lists.infradead.org; Fri, 17 Jan 2020 15:26:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=JqsXhTtFmDOlKwkY66SKGJnLrnhRl72CQRYrjKZdTwU=; b=w9Pji8Ai44XMGvKje2+pYAfut m/7My+nVqqy1HhjOLXPGFsTKdXHVD6XXyPIEXsGZpXa9sY2ZcFLGzzv9f1rjdF14BhqznYAUmtdl+ FE9MIp+0L3neA/Nn4NR1vyGRQzDuctiWMp6KUJW4zcb92lqsmvHqNPA/a0N5h3dtg38FY=; Received: from fw-tnat-cam4.arm.com ([217.140.106.52] helo=fitzroy.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1isTWF-0006mh-Rt; Fri, 17 Jan 2020 15:26:43 +0000 Received: by fitzroy.sirena.org.uk (Postfix, from userid 1000) id 346AFD02A2A; Fri, 17 Jan 2020 15:26:43 +0000 (GMT) From: Mark Brown To: Will Deacon , Catalin Marinas Subject: [PATCH v11 0/2] ARMv8.5-RNG support Date: Fri, 17 Jan 2020 15:26:40 +0000 Message-Id: <20200117152642.4905-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-20200117_072649_135329_D604E4C7 X-CRM114-Status: GOOD ( 11.27 ) 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. 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 | 67 +++++++++++++++++++ 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, 118 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