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=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 02536C33CA4 for ; Fri, 10 Jan 2020 07:49:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CA9A92084D for ; Fri, 10 Jan 2020 07:49:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=chronox.de header.i=@chronox.de header.b="EdWDeVOX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726697AbgAJHtc (ORCPT ); Fri, 10 Jan 2020 02:49:32 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.82]:12443 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726383AbgAJHtb (ORCPT ); Fri, 10 Jan 2020 02:49:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1578642569; s=strato-dkim-0002; d=chronox.de; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=pcvtRMbzQeKjX8VK6T3YxfN1eTZUyf6gjoO45RlPAAM=; b=EdWDeVOX03zzqym/0sFGoCil9l2pndZrWbjVoeH7qBAuM6kxu5sY7MZ8Y56saZ8asP dBCcFjSKd5n0xTGx9XF6y0eudjkDUk+4jpPh+exGVUAW/KdKTR+2hu3avK3BfvjPrMxP YBGVxKsQjhn2asqgm0JDQ27R9F9CcZDy6v7HRSZ+Hf3ZCnDWqKPMd5AgCUvkWJDY7O0i RjiSQoGLam+9a83iIFu/9bYfcWeTXIJLCh8pqt3dHk0bj7Ft9zbucLG9F/3SFQ5nzmYU lhTKPYDCgl2aWdS5NeqIBE+Y4hQSaXwsOzRhllZMTnIblHtGR25a6ZhEQ2uZgiEKDSXR fSkQ== X-RZG-AUTH: ":P2ERcEykfu11Y98lp/T7+hdri+uKZK8TKWEqNyiHySGSa9k9xmwdNnzGHXPZJPScHivh" X-RZG-CLASS-ID: mo00 Received: from tauon.chronox.de by smtp.strato.de (RZmta 46.1.4 DYNA|AUTH) with ESMTPSA id u04585w0A7mN7ic (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Fri, 10 Jan 2020 08:48:23 +0100 (CET) From: Stephan Mueller To: Randy Dunlap Cc: Arnd Bergmann , Greg Kroah-Hartman , linux-crypto@vger.kernel.org, LKML , linux-api@vger.kernel.org, "Eric W. Biederman" , "Alexander E. Patrakov" , "Ahmed S. Darwish" , "Theodore Y. Ts'o" , Willy Tarreau , Matthew Garrett , Vito Caputo , Andreas Dilger , Jan Kara , Ray Strode , William Jon McCann , zhangjs , Andy Lutomirski , Florian Weimer , Lennart Poettering , Nicolai Stange , "Peter, Matthias" , Marcelo Henrique Cerri , Roman Drahtmueller , Neil Horman , Julia Lawall Subject: Re: [PATCH v27 12/12] LRNG - add power-on and runtime self-tests Date: Fri, 10 Jan 2020 08:48:22 +0100 Message-ID: <4114256.cnP6sY5xnJ@tauon.chronox.de> In-Reply-To: <2f225250-c1e1-c6e1-026c-9c63853ab7d1@infradead.org> References: <6157374.ptSnyUpaCn@positron.chronox.de> <2355906.JbblJTOqSk@positron.chronox.de> <2f225250-c1e1-c6e1-026c-9c63853ab7d1@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, 10. Januar 2020, 01:22:51 CET schrieb Randy Dunlap: Hi Randy, > Hi, >=20 > On 1/9/20 12:35 AM, Stephan M=FCller wrote: > > --- > >=20 > > drivers/char/lrng/Kconfig | 25 ++ > > drivers/char/lrng/Makefile | 1 + > > drivers/char/lrng/lrng_selftest.c | 418 ++++++++++++++++++++++++++++++ > > 3 files changed, 444 insertions(+) > > create mode 100644 drivers/char/lrng/lrng_selftest.c > >=20 > > diff --git a/drivers/char/lrng/Kconfig b/drivers/char/lrng/Kconfig > > index 394066aa5a86..e9827e7df715 100644 > > --- a/drivers/char/lrng/Kconfig > > +++ b/drivers/char/lrng/Kconfig > > @@ -175,4 +175,29 @@ config LRNG_TESTING > >=20 > > If unsure, say N. > >=20 > > +config LRNG_SELFTEST > > + bool "Enable power-on and on-demand self-tests" > > + help > > + The power-on self tests are executed during boot time >=20 > self-tests =46ixed in all occurrences. Thank you. >=20 > > + covering the ChaCha20 DRNG, the LFSR processing and the > > + time stamp management of the LRNG. > > + > > + The on-demand self-tests are triggered by writing any > > + value into the SysFS file selftest_status. At the same > > + time, when reading this file, the test status is > > + returned. A zero indicates that all tests were executed > > + successfully. > > + > > + If unsure, say Y. > > + > > +if LRNG_SELFTEST > > + > > +config LRNG_SELFTEST_PANIC > > + bool "Panic the kernel upon self-test failure" > > + help > > + If the option is enabled, the kernel is terminated if an > > + LRNG power-on self-test failure is detected. > > + > > +endif # LRNG_SELFTEST > > + > >=20 > > endif # LRNG Ciao Stephan