From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Subject: Re: [PATCH v25 12/12] LRNG - add interface for gathering of raw entropy Date: Tue, 19 Nov 2019 09:17:55 -0800 Message-ID: References: <6157374.ptSnyUpaCn@positron.chronox.de> <2787174.DQlWHN5GGo@positron.chronox.de> <3610406.x8mDjznOIz@positron.chronox.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <3610406.x8mDjznOIz@positron.chronox.de> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: =?UTF-8?Q?Stephan_M=c3=bcller?= , Arnd Bergmann Cc: 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" List-Id: linux-api@vger.kernel.org Hi, On 11/16/19 1:38 AM, Stephan Müller wrote: > diff --git a/drivers/char/lrng/Kconfig b/drivers/char/lrng/Kconfig > index e6ca3acc1e48..4ccc710832ef 100644 > --- a/drivers/char/lrng/Kconfig > +++ b/drivers/char/lrng/Kconfig > @@ -169,4 +169,20 @@ config LRNG_APT_CUTOFF > default 325 if !LRNG_APT_BROKEN > default 32 if LRNG_APT_BROKEN > > +config LRNG_TESTING > + bool "Enable entropy test interface to LRNG noise source" > + select CONFIG_DEBUG_FS That should be spelled as DEBUG_FS and preferably would be "depends on" instead of 'select'. > + help > + The test interface allows a privileged process to capture > + the raw unconditioned noise that is collected by the LRNG > + for statistical analysis. Extracted noise data is not used > + to seed the LRNG. > + > + The raw noise data can be obtained using the lrng_raw > + debugfs file. Using the option lrng_testing.boot_test=1 > + the raw noise of the first 1000 entropy events since boot > + can be sampled. > + > + If unsure, say N. > + > endif # LRNG thanks. -- ~Randy