Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4214239rwo; Tue, 25 Jul 2023 02:27:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlGrPDYJUzqNpf7HRsa6XAPvSpJMi0ZCuxqDPLU5J8V48eX+vhMPbqW4907kuTCSmvuKwPTu X-Received: by 2002:a17:906:3196:b0:991:c67d:87a2 with SMTP id 22-20020a170906319600b00991c67d87a2mr12502457ejy.28.1690277261802; Tue, 25 Jul 2023 02:27:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690277261; cv=pass; d=google.com; s=arc-20160816; b=B5nT0nDEDnoS8y+twf7l1MoVrStCOBo2mRmB8ilptxP6qazTqOKEfYYowXlvjrbza4 imEnzMPph6XNUVL4aiI8BFgFOJW5O8rEVc0Wf5WVCP6Tcizpoo/A4tQntpG7v0xcwePV qSdLdIaz5n86q9EiRosY9oHZY4yxdFjmkWbWgnf2J3KHVxeUsAZjzmZMHiflS7NEHq2W GBjxzhoIYaAUHWaZgBLqWmCgexxzs/cLjL2UHcZXtErXg2WBrqzLVJtQlz4P+BSNnYir FxaxBx2bp1vYfvBnTsVHymzVKEr6dj/WzRhnTYGQ7Pv+P0jPukx0PRI5q/9E56QnE8Fb 78Rw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=5Ty3actpIKOzXOT3h43HeDnVLX2pUdaRur3TOP3VrlQ=; fh=KG0C2sb0pUfhv/KWhK+mQf5aOdyrey42o24u9W4h4Ic=; b=QbwYh/Pd1WO0rCFm64Gc0ZsGSpzbd4TqBaIo9aBDnmg/pJRZnfr9ZHK/CXqI7uGdvq dWW1D8FSY6Bv6t4s5Ov5mUh7zFeOgMX8JW0mNVJN2BE6OLc7sZw5RIbRKWiNSwrNrvSu +JWpqjL78c9UO2NJ2YKxCcUvL/IXiz/3sgeJYU+o9GR2TilzotYdYBrUuGPeTCHERC0S ROhhvktlmJ22eJ7v/Dp1z7vbwyN4834upYy1PKiHylKSnS10hkJqCi+akzlN+cgL72Lo /+h+AYSOiDV1WvMIchofD7k3tfiGvL0YyFYjHYt/9+OV91afKzFSpZtuJM3WIKi5tfj2 m0Yw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chronox.de header.s=strato-dkim-0002 header.b=kdjlezXO; dkim=neutral (no key) header.i=@chronox.de; arc=pass (i=1); spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f17-20020a170906085100b0098e1bbc3daesi7537679ejd.731.2023.07.25.02.27.12; Tue, 25 Jul 2023 02:27:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chronox.de header.s=strato-dkim-0002 header.b=kdjlezXO; dkim=neutral (no key) header.i=@chronox.de; arc=pass (i=1); spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230271AbjGYJPV (ORCPT + 99 others); Tue, 25 Jul 2023 05:15:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjGYJPU (ORCPT ); Tue, 25 Jul 2023 05:15:20 -0400 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [81.169.146.167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09AEE8E for ; Tue, 25 Jul 2023 02:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690276504; cv=none; d=strato.com; s=strato-dkim-0002; b=R4rIuvP7QwugOCU1XGx4gXzv1wfAJwpLm9jazWPws19B1VCZ84d2Kc0zwoAcuO8amu PI/elMetMUPjkKKONYxxc7hhlFL4s9hlvssF4HxhrbzmngC+0kZ3/cNDPQ/vXdO5ODGj zRRkoWil61go1kSnXMKwnKGyFoVGhy8+kFwZPgtc3PnUC9NpQyZwiE2DuBKZKfqaQK6F OlI2m6BR2qXm8rXxlaibcvP/Odm3lnA9w2qgt8q44Og0luVQawAKjdyhPHy7Q0bmztZS VbCb6FVH8xRKI7jQ/6ceu5FqE9QBoYtbr0HrcoMAVrD/Yvj3iFOgIcmJ7M/B/goxj5VL wMhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1690276504; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=5Ty3actpIKOzXOT3h43HeDnVLX2pUdaRur3TOP3VrlQ=; b=RX/xRj6mXG6HwHvybubpfPASn24r51soS0U07L4AmfFiyK2jrK7gT2pjhDvnVnCG6N TI6WuN+1AXRTNkCgrKIiG/UEwMGzGBSD31GcnIUtnxGK+AmWian7Ark2BNX2WENUVHCx MVMlh+bO0al52eKL9He+3dNHDm4MkiT6Q3W345BBkJENknrz2NOn4d0o2nK9e9jHy2qN 9rEbPMxrxLqavqARX4zST5kjmqkTL1gFKFEGPlBCOlGm9q4pky3y9vzk5Yxd7qr823kO gcMTPEs88lZXIsXr+mxkqDRu0RxxoqXWdV8/ZuRPe1qVMZdV6kBhs5Xn7Q4B4hWw3Hds 5WUQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1690276504; s=strato-dkim-0002; d=chronox.de; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=5Ty3actpIKOzXOT3h43HeDnVLX2pUdaRur3TOP3VrlQ=; b=kdjlezXOkWo+yuN1YTbMxvvw7FuDQ1mLJHU5Vy7CMdLCTcAQ+mkm5C1NIjpbIcyPWf kgNhEw9j1Hade5Os5KUSE3W8MOSRRGlOdo9y0zcorocQC0hDbZl87vBPgkSyN4Z8rd1Q xFA02G0Tc8DVPYfbSAqvYJHa/lfzVcP3Yo8pieTcRewh6XPgSJgxFK7mXrxAwgO1LVRG 46gkMr8NgkXmpViY4GYXLEn9CEpApkmarnvpWhOdxOr28GobV2rMtkLeMps+mZmngM6R NUnYJ5oHN8Tm7xb3PJJa50B1t5l353llMC67TIrhpGE5Kbby/oqGVLzGI0EYYqyY+Sv0 cIRw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1690276504; s=strato-dkim-0003; d=chronox.de; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=5Ty3actpIKOzXOT3h43HeDnVLX2pUdaRur3TOP3VrlQ=; b=1RTfSd7Jqs8a3sm0kUnDPdeHURdyLjrXg4fwpSCXQA89HwVXLrYqqkKSyOOID99Q5t R0ht2lUovtCcxtfhtrCA== X-RZG-AUTH: ":P2ERcEykfu11Y98lp/T7+hdri+uKZK8TKWEqNyiHySGSa9k9zW8BKRp5UFiyGZZ4jof7Xg==" Received: from tauon.chronox.de by smtp.strato.de (RZmta 49.6.6 AUTH) with ESMTPSA id N24d58z6P9F250Q (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 25 Jul 2023 11:15:02 +0200 (CEST) From: Stephan Mueller To: Herbert Xu , Stefan Wahren Cc: linux-crypto@vger.kernel.org, Vladis Dronov , Marcelo Cerri , Joachim Vandersmissen , John Cabaj , Linux ARM , Florian Fainelli Subject: Re: Bug: jitter entropy health test unreliable on Rpi 4 (arm64) Date: Tue, 25 Jul 2023 11:15:02 +0200 Message-ID: <1951595.QhWbZbYsJX@tauon.chronox.de> In-Reply-To: <68c6b70a-8d6c-08b5-46ce-243607479d5c@i2se.com> References: <68c6b70a-8d6c-08b5-46ce-243607479d5c@i2se.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Am Freitag, 21. Juli 2023, 14:28:29 CEST schrieb Stefan Wahren: Hi Stefan, sorry for the delay. > Hi, > > i recently tested Linux 6.5-rc2 on the Raspberry Pi 4 (arm64/defconfig) > and noticed the following message: > > [ 0.136349] jitterentropy: Initialization failed with host not > compliant with requirements: 9 > > Since Linux 6.5-rc2 this message occurs in around about 1 of 2 cases > during boot. In Linux 6.4 this message i never saw this message. This system has not that much entropy. A short-term fix would be to set the oversampling rate to a higher value than 1, the current value. See jent_entropy_collector_alloc: /* verify and set the oversampling rate */ if (osr == 0) osr = 1; /* minimum sampling rate is 1 */ The osr could be set to 3, for example. This makes the Jitter RNG slower, but it can now handle lower-entropy environments. Let me see how this can be fixed. Thanks for the report. Ciao Stephan