Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp792536ybc; Tue, 19 Nov 2019 09:20:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxopImqzQ4r6TyhC4xxU3pG6256g5BFtHLV2JUzu/P4zc/0D59LwtVLcVora3YOGVk+LXpM X-Received: by 2002:a17:906:fad4:: with SMTP id lu20mr36735279ejb.9.1574184006502; Tue, 19 Nov 2019 09:20:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574184006; cv=none; d=google.com; s=arc-20160816; b=RVinzM4B2wvwRXeNHhRvUVVLv6smDuDiXcy37hfZdlLmlnR2I3mf6sYIESHS7n66+4 vnKUThtkC10Cin+h91lEqxNQMVs9t/SvpkgAaR8jqiM0DaKJpDPssQNJxeTaroKdcfpi nbWArgjXH2RfwGSTkTJATve/au/IDgn1gcj5X+E4QiN94L+AcF4N+lUsBgio/aMRLUOY Rh9yYX7wseKPdTldLQMWxhvLeytX39ByRscTj+vpsMezwFSacb/yDhF9204Egato6tYC /sYwD06J9Dy4suldtPpMJ9iZibiy661WPHQRcEekrE/z92LrpvVAw3KR8RAVCaWPxBJA R7uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=aYmtuEFF+xOPB8Y3q63c5aivou+rssRsl1ZruqJR3YQ=; b=AFMytzR+B0vU6Kp5jbMygJsYPrPW9qInQqFe7iiSc27YOc/cAC+vjpQRDMrAgnm0V6 lDlmfWWjebj96N/Bw9chTO7vBckbyDutrTcAmDYWHddpCV/JmLJXlpcq1GGZ7dgUwo2x kIDgzOGzV9ssi2qVrJ8B/vLowWupmvC8TKqZvSQ1d8Hy3HXvbyOSA5eWmiutXmGEj/My VZCdRrywWiL3cTUzPfJ2R8pjw/hgV4eRRKljCzppE3c/+Emlk0TljLsCoDgGB3HvTpV0 0bFws06ML2tfsVw/zgGTFQrpasFCrTa5iVtZJhCQ2RAuDQwmvIywrWt40JuM/DBfH3Te CzzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Xhk2Ba4R; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a25si14406758ejb.285.2019.11.19.09.19.40; Tue, 19 Nov 2019 09:20:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Xhk2Ba4R; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727822AbfKSRSi (ORCPT + 99 others); Tue, 19 Nov 2019 12:18:38 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:38746 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727805AbfKSRSi (ORCPT ); Tue, 19 Nov 2019 12:18:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=aYmtuEFF+xOPB8Y3q63c5aivou+rssRsl1ZruqJR3YQ=; b=Xhk2Ba4RE5sQp6Xhrisp9yAdb a6kScEfJGorN4s9IyqONGBGD5r+WATKiUvRdIQnzS4br3J7RnbMIEnrmIoCld00T/GpT5aE+5LiR/ OF0sbcikg0yYYpSsoFudFBK83cuHjU1DclZiT5VgYYIZjvaVzDFWAYZM2kUJwu8RVQBZ49L/gAe/2 3DDhaEO00s4S+UoRQUxXfGpNwb1jdI/bH94DFda+jGmReOHtsJZCUs8Q9d1GofxsE7vY2xNFWLj2K 7wEQzVjFDeoSY8altim3LTauF4vMSWHneoYWT9269fKCOZXOjCWjWBkuJwLNcFoNs3TUW6rBFrxA0 Tc7YVGxBw==; Received: from [2601:1c0:6280:3f0::5a22] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iX78X-0002YZ-J1; Tue, 19 Nov 2019 17:17:57 +0000 Subject: Re: [PATCH v25 12/12] LRNG - add interface for gathering of raw entropy 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" , Marcelo Henrique Cerri , Roman Drahtmueller , Neil Horman References: <6157374.ptSnyUpaCn@positron.chronox.de> <2787174.DQlWHN5GGo@positron.chronox.de> <3610406.x8mDjznOIz@positron.chronox.de> From: Randy Dunlap Message-ID: Date: Tue, 19 Nov 2019 09:17:55 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <3610406.x8mDjznOIz@positron.chronox.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@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