From patchwork Tue May 12 23:39:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 1288842 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rockwellcollins.com Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49MDmN53Pkz9sSW for ; Wed, 13 May 2020 09:39:31 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9D5D8204F2; Tue, 12 May 2020 23:39:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dR6fCre4toCF; Tue, 12 May 2020 23:39:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id E8759204F9; Tue, 12 May 2020 23:39:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 73A0B1BF35C for ; Tue, 12 May 2020 23:39:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7084C861D7 for ; Tue, 12 May 2020 23:39:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aBV5ivd5cF0Z for ; Tue, 12 May 2020 23:39:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from da1vs03.rockwellcollins.com (da1vs03.rockwellcollins.com [205.175.227.47]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 8858185BF2 for ; Tue, 12 May 2020 23:39:25 +0000 (UTC) IronPort-SDR: vUXjxz4bFTKnq+uSXP8WBckDHdqZum62zrBnIx5vJYsko5VWzKsDdBRBaG0udySHArWN4TQs8o yv/yr9rtJ1H8/nIOKQmmyJBHv9N6j9meEQXeW9WELKPDJ6V2/YnA5+frtXZJF5YsRIWgaQmDiK XPMkgkbuZE7+dLMMqM48+jtKG5xW1P6l4WS5m1M8oyPtm+JiKOQE0uTDgsFoQ9r8HB2iwaZYFQ uDbxt/nGwa2D0Qro2J0rXpntPio/z9C2JICcgvbEyrHFcPuTUXOHoBNQKTVMq2GRxvFdW0lSIy LTk= Received: from ofwda1n02.rockwellcollins.com (HELO crulimr01.rockwellcollins.com) ([205.175.227.14]) by da1vs03.rockwellcollins.com with ESMTP; 12 May 2020 18:39:24 -0500 X-Received: from biscuits.rockwellcollins.com (biscuits.rockwellcollins.lab [10.148.119.137]) by crulimr01.rockwellcollins.com (Postfix) with ESMTP id 216996028A; Tue, 12 May 2020 18:39:24 -0500 (CDT) From: Matt Weber To: buildroot@buildroot.org Date: Tue, 12 May 2020 18:39:23 -0500 Message-Id: <20200512233923.20290-1-matthew.weber@rockwellcollins.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [Next] package/haveged: set write_wakeup_threshold to 2048 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Matt Weber , Peter Korsgaard MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Adjust the low water mark to wake-up the haveged daemon at the same time that rngd would wake-up when a hardware RNG is present. This supports the theory that rngd then can't dominate the entropy pool. Instead haveged and rngd would complete to fill the pool. https://tails.boum.org/contribute/design/random/#index5h2 If rngd isn't enabled or there isn't a hardware RNG, this change should not impact the behavior of the entropy pool other then the pool should be less likely to deplete and cause an entropy starve with haveged filling it earlier. Cc: Peter Korsgaard Signed-off-by: Matthew Weber --- Peter I believe this one also applys to 2020.02.x --- package/haveged/S21haveged | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/haveged/S21haveged b/package/haveged/S21haveged index 4b6e6ced4e..22b84e4f27 100644 --- a/package/haveged/S21haveged +++ b/package/haveged/S21haveged @@ -3,7 +3,7 @@ case "$1" in start) printf "Starting haveged: " - start-stop-daemon -S -x /usr/sbin/haveged -- -w 1024 -r 0 + start-stop-daemon -S -x /usr/sbin/haveged -- -w 2048 -r 0 [ $? = 0 ] && echo "OK" || echo "FAIL" ;; stop)