Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2286859rwd; Fri, 16 Jun 2023 01:41:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Qq5rQ8OThhsfrmQ9kINIl8RjoZbBWC9i+4mkC/Fg48IF64zr0kdCiE5F/KNjJI8211qEA X-Received: by 2002:a05:6a20:7d9c:b0:116:e1cf:1158 with SMTP id v28-20020a056a207d9c00b00116e1cf1158mr2094396pzj.6.1686904903208; Fri, 16 Jun 2023 01:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686904903; cv=none; d=google.com; s=arc-20160816; b=QzYLfPpWNBw5USOHRPRJM7//pve3PHXKMCs5xpxsdmxJ92m2+RaTP69L3Iy/zPPTVa dxJHP6EMQKOFD4O+H6o9NfwMfa3XhO0d3L+KEputxXeYjBEtRtOvpa5E54FmrK6V8xCW Z7CHQ6Hgk61IOpHRXhl1lrJeZHHoVaY1HI6TyKZyIq1klNAjgH5qcDsNfKqqB3Z3O1D4 3Yv/cXglIRyYusKmHajLDGyzOF/i9tl5poFsy4qpKIiY0ziLXcnt5ChfNypRFWZ5/hNc /WHWRtLBOE8GAVVY6hhlWpLjpuVt4anaqiLT2aqOuPXxAjXgXOA6z+BosaBzUago5pmA 7qhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Bdsi7GFOH/UvLxSVMksKEO0ecjMzwDFwbSnDgZiBt3s=; b=oTnS34LQaUJLoWASO6SmkZ+e6vP445BBA9tOLP7/oyDBGbpAYw5jQkHsm0w77KubhO vBeKpuPTxBTrTYa9sQEOuwX9BRDnqLmJwwRwGDHIl4AG5TiC0Ad3POgvGTc8wfC88Qiu DAOrG1P/KrzwhEbGbRYK/zVTr0ikaJsGili58D++S84vqo2tEeflo8veH8mxizm7aOr3 44neDzybpkb7cOaSLLIycKAjEds9QPZkC1ycWyr80kU0LTOL92PBI7EaIHgaVqneHecW LYpjVJJ8olzcaJj4jPSCSdsr6WWIsZyxCcZRtfwJupdRGBW+NjxDGBA+YyuPGq9KZARv LBjw== 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 z26-20020aa79f9a000000b00666ad5bcfa0si1926810pfr.285.2023.06.16.01.41.04; Fri, 16 Jun 2023 01:41:43 -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 S245565AbjFPIhk (ORCPT + 99 others); Fri, 16 Jun 2023 04:37:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242697AbjFPIhj (ORCPT ); Fri, 16 Jun 2023 04:37:39 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CF51196; Fri, 16 Jun 2023 01:37:37 -0700 (PDT) Received: from [167.98.155.120] (helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1qA4xa-0000Wd-9R; Fri, 16 Jun 2023 10:37:34 +0200 From: Martin Kaiser To: Herbert Xu Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 0/2] hwrng: st - fix potential race condition Date: Fri, 16 Jun 2023 09:36:16 +0100 Message-Id: <20230616083618.1320824-1-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Fix a potential race condition in the st-rng driver. There's a short timeframe where the driver is still registered but its peripheral clock is disabled. Add support for compile-testing the driver. I do not have any hardware that supports st-rng. Martin Kaiser (2): hwrng: st - support compile-testing hwrng: st - keep clock enabled while hwrng is registered drivers/char/hw_random/Kconfig | 2 +- drivers/char/hw_random/st-rng.c | 18 +----------------- 2 files changed, 2 insertions(+), 18 deletions(-) -- 2.30.2