Received: by mail.netbsd.org (Postfix, from userid 605) id 6909D14A206; Thu, 13 Jun 2013 19:18:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 89EB414A203 for ; Thu, 13 Jun 2013 19:18:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 9pSYzhMYAbC5 for ; Thu, 13 Jun 2013 19:18:00 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id A2E6514A1EB for ; Thu, 13 Jun 2013 19:18:00 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 753F996; Thu, 13 Jun 2013 19:18:00 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 13 Jun 2013 19:18:00 +0000 From: "Thor Lancelot Simon" Subject: CVS commit: src/sys/kern To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20130613191800.753F996@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Thor Lancelot Simon" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: tls Date: Thu Jun 13 19:18:00 UTC 2013 Modified Files: src/sys/kern: kern_rndpool.c Log Message: Correct use of entropy estimate when data are extracted from the pool. The "threshold" value was being inappropriately used to limit how many bytes could be output even after the estimator said enough bytes had been put in to meet our minimum security guarantee. This fixes a panic observed with the automatic test harness and by msaitoh, where it was not possible to extract the full estimate's worth of bytes even holding the pool lock across the estimate and extract calls. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/kern/kern_rndpool.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.