Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2010056rwd; Fri, 2 Jun 2023 03:36:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7LMwQZib/vHR2tpe+C0uNInhIMRqebM2t6i2e6BQmPLXU9Xcv/ouHtm2aGmfFq/C0rfjNc X-Received: by 2002:a17:903:41cf:b0:1ae:7ba2:1a7e with SMTP id u15-20020a17090341cf00b001ae7ba21a7emr8876140ple.6.1685702214304; Fri, 02 Jun 2023 03:36:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685702214; cv=none; d=google.com; s=arc-20160816; b=Gw4DFa+aaLyO4JHSndHrQjykm4L8WEzEQv0gveCCf193eBFQMyHAdIw3jNVnTbKwR/ Tzij0ZjV+HA2juQDzEmg3jQLLQAPPqMzHhqr6zGE1+6HhIa34lgST7NTMw7bwbnTNDv2 qRy39tXQkywUAqYv91HCz/9JLFMZuG+/j+GcgR8AoGBT+P4leEZYzPzgAzpT7SYyQDOJ a0qo/YvhGWTh3/0+hIGLRnp3j+6ukeZKbYWl7Xtbtc/Sh2+F58YsxTFohkfCsckbK4il ex0f61j1Wr0sVXsTRQbO4xLQLtnJAeYl2zHAPNFGxD82iHTJe2eRHl+xPnqJmz/z/Lj5 sgYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=u8XLlZO/yU+kEqDngLp8njUzfzUl+HG/VewHOoLUtKA=; b=c/EMSJUuf/K9uvPj5d+Skx8725ZdASCITbvioGJD2RP9Y6F3uwG8Q5Z9IP4LPe+xze 5sxC7i3wGkI78/qE7oX/sDPrWSlSbl0r8M4SmTmMHXBuj/jxh1/QGZkUaKcAfwbMP917 DRDlMFs3q0fEjW0AJe1ka0cAewA1DvBJ/5w1epMVAQkYAc2VAOVRi+9sElqQ92g7eNXr CSeqBOh6IF0BinLjoohxuWHBTqEf32botQ97sjQ2sJeqE//3/5IIUX8fvUY1WyCXZ4sv V7FScP9/EPlIUnXq4WHUXoyoGpE6F28L8PzPLyi7aElgG8DAfpLuBT1N5cfPQei2UkUh SPww== ARC-Authentication-Results: i=1; mx.google.com; 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 jj6-20020a170903048600b001ae5fcecb49si723685plb.25.2023.06.02.03.36.28; Fri, 02 Jun 2023 03:36:54 -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; 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 S235615AbjFBK1K (ORCPT + 99 others); Fri, 2 Jun 2023 06:27:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235616AbjFBK0p (ORCPT ); Fri, 2 Jun 2023 06:26:45 -0400 Received: from 167-179-156-38.a7b39c.syd.nbn.aussiebb.net (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F6FB1710 for ; Fri, 2 Jun 2023 03:25:02 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1q51xo-00G33s-N9; Fri, 02 Jun 2023 18:24:57 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 02 Jun 2023 18:24:56 +0800 Date: Fri, 2 Jun 2023 18:24:56 +0800 From: Herbert Xu To: Stephan =?iso-8859-1?Q?M=FCller?= Cc: linux-crypto@vger.kernel.org, Vladis Dronov , Marcelo Cerri , Joachim Vandersmissen , John Cabaj Subject: Re: [PATCH] crypto: jitter - correct health test during initialization Message-ID: References: <12219330.O9o76ZdvQC@positron.chronox.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <12219330.O9o76ZdvQC@positron.chronox.de> X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00,HELO_DYNAMIC_IPADDR2, PDS_RDNS_DYNAMIC_FP,RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS,TVD_RCVD_IP, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** 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 On Thu, May 25, 2023 at 07:00:05PM +0200, Stephan M?ller wrote: > With the update of the permanent and intermittent health errors, the > actual indicator for the health test indicates a potential error only > for the one offending time stamp gathered in the current iteration > round. The next iteration round will "overwrite" the health test result. > > Thus, the entropy collection loop in jent_gen_entropy checks for > the health test failure upon each loop iteration. However, the > initialization operation checked for the APT health test once for > an APT window which implies it would not catch most errors. > > Thus, the check for all health errors is now invoked unconditionally > during each loop iteration for the startup test. > > With the change, the error JENT_ERCT becomes unused as all health > errors are only reported with the JENT_HEALTH return code. This > allows the removal of the error indicator. > > Fixes: 3fde2fe99aa6 ("crypto: jitter - permanent and intermittent health errors" > ) > Reported-by: Joachim Vandersmissen > Signed-off-by: Stephan Mueller > --- > crypto/jitterentropy.c | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt