Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1063443rdh; Fri, 27 Oct 2023 03:53:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE3NzQKH+J0YFWX0m5VVQNtOI7Zh8mufWxoY9/7IT/BnAPqD3Cu16IF3xiq4kG+xCmCkLgk X-Received: by 2002:a25:b1a7:0:b0:da0:d018:b88b with SMTP id h39-20020a25b1a7000000b00da0d018b88bmr1589102ybj.42.1698404017168; Fri, 27 Oct 2023 03:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698404017; cv=none; d=google.com; s=arc-20160816; b=0r+WAhQtyxnFcO5f8OvohNDUMpTbFTG9Y0NUn5HnnfzKkydaDlvwXbEGYOFeuXFhDM DAdgdkkW1osPBVpZRBuHY+I/AuE/X2ttV2JEFdVsM+Ca9vO8iGx9bv+vmMxXxHxoLttQ 0f9w0bQu8QOaXWsaHOXGsXTQVICrdr7PLRmp/1fDn5PnTV7D2y2Mh+MOvqLTBrSxcee8 /OZowfO0wGgYjA5gmeB8cyjEfPSmbdvuTBfMmOIaeRSgAeFjTVTlGi6dUK56R0phGpGl quApfBfRWe9f/Um6X8Wawf4xCc8wa2TZj3xfDUQuQE08UdUQ78oRt3PNIRP+4f3Uy4LZ P8+Q== 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=vY/3h4vF/Yay1vz0GoDoBC8LMMuJktvBPlfkcKl/tu0=; fh=BNKpRCHaYKL4zH+LSyR8l8RaL3Y1gbFquB88ZcuNc5w=; b=VmnonZWifXyGWItjHoCn7Xpc4PsPORrnchgFropFPiv0Dh6rBWFsr70KS5dXicAHqD bi/niDTfLaWueS8OBJ+FRWXzN8Kd8ZTw4g0EhnCZN/xLKaBNiaHV0/HaK6ctrHcmGVpL 0jZW0K14lVpS8rK7/+GB42nxJqlbWhlOKjak6HLG9m/RmOPPfGz03gE4qllfVdYbSR28 RPkd1OYFWO8dKxk+rniwhBlwzVTrsTg01A/7vC/QuO4GC4WPhVpE9gZW4ijXPpxnWNXS DVk1Gi8qdusYYyHzfZAQt3n0I8526fQ7Tm4FnMPRXeECVaoDtxctKor2gwiu3g+h4t5N xqPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id 204-20020a2503d5000000b00da1c6c86120si1274221ybd.560.2023.10.27.03.53.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 03:53:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id EFED0809EE10; Fri, 27 Oct 2023 03:53:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345598AbjJ0Kxe (ORCPT + 99 others); Fri, 27 Oct 2023 06:53:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345488AbjJ0Kxd (ORCPT ); Fri, 27 Oct 2023 06:53:33 -0400 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A582C9 for ; Fri, 27 Oct 2023 03:53:31 -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 1qwKT0-00BeWK-1p; Fri, 27 Oct 2023 18:53:27 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 27 Oct 2023 18:53:32 +0800 Date: Fri, 27 Oct 2023 18:53:32 +0800 From: Herbert Xu To: Stephan =?iso-8859-1?Q?M=FCller?= Cc: linux-crypto@vger.kernel.org, "Ospan, Abylay" , Joachim Vandersmissen Subject: Re: [PATCH v2] crypto: jitter - use permanent health test storage Message-ID: References: <5719392.DvuYhMxLoT@positron.chronox.de> <2706159.mvXUDI8C0e@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: <2706159.mvXUDI8C0e@positron.chronox.de> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 27 Oct 2023 03:53:34 -0700 (PDT) On Thu, Oct 19, 2023 at 09:40:42AM +0200, Stephan M?ller wrote: > Changes v2: > > - mark function jent_health_failure as static > > ---8<--- > > The health test result in the current code is only given for the currently > processed raw time stamp. This implies to react on the health test error, > the result must be checked after each raw time stamp being processed. To > avoid this constant checking requirement, any health test error is recorded > and stored to be analyzed at a later time, if needed. > > This change ensures that the power-up test catches any health test error. > Without that patch, the power-up health test result is not enforced. > > The introduced changes are already in use with the user space version of > the Jitter RNG. > > Fixes: 04597c8dd6c4 ("jitter - add RCT/APT support for different OSRs") > Reported-by: Joachim Vandersmissen > Signed-off-by: Stephan Mueller > --- > crypto/jitterentropy.c | 125 ++++++++++++++++++++++++----------------- > 1 file changed, 74 insertions(+), 51 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