Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6141370iog; Thu, 23 Jun 2022 12:12:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vKnFr/9odk7HM+PaMDt5RHaufMwYoDrufxDz9UiejXlW+koZKWzIJiVLSoMPn0xAbq5n+U X-Received: by 2002:a17:902:d48a:b0:16a:3e7f:db21 with SMTP id c10-20020a170902d48a00b0016a3e7fdb21mr13332695plg.50.1656011539095; Thu, 23 Jun 2022 12:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011539; cv=none; d=google.com; s=arc-20160816; b=0V/E7xiYrWtMPZG59155BSs3p9D6xQx0FuhusmKA1AyijP/c8XhHBQd/xkhf/VDncB B6yHHf2pUA6nRE7fpOmpRBYZBXtG5lP42S7qsnZyvjuKwcE+ZtOd1R+R4+j6maawL3gx zGrbBYglD/J/EGXDvNxzUK9R5nE41nX58TWJ87KAfq4HB4DsH0xwo2Mqs134tioKAdSl BvRI2kjYkI2SCPQeTdNM+K152j8I4unuAe9Acj6Ee8l4e3duhJBjyBJeWTxnumMR7cof AbC13mbC73eKAA8/h7SS4TzXiOZ1En2Ma6i77uJGjMISsDtYZo/cVxCBrc5Wx9dYWOeY hlHQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oDX/1ezcE369nkwcIlKFsE6dtzLa0XZg470PoP6RqNM=; b=WOKVxKrmoBb2DMq+sAP6/zsx8mhhAhhYfgUzgHoGb2PQy2ZSjBx15T3SDu6F4gNwF2 xokXcR3k5UQx7A3eh4QrdtKCFGI4xV4AJbnJk6RWETvmyn0JaBDrvuWrq1rPFWa3pPmf E3RFu+aOReT4cBaIqehaAIDqsCZLZQs5+0MSPKR/yrAAQ8lTJCwt7ZAOlKw6inUrZNUa gcsgYZv5nWGaBv2Qc8HZ5h/SrR99WquhFWJR/X/Bs/nsUG9Gd4CjHQ2cq7hvMgk1i5Pu aeAKkDHxVYIHzAH3KJsRW877umzImAYlz7r9hz4t06M7aG71QsdNl2ZSegWFMrEXtSSo HC9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LHtX5w5I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a1709026ac500b001678adeceecsi316852plt.384.2022.06.23.12.12.06; Thu, 23 Jun 2022 12:12:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=LHtX5w5I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235373AbiFWRyH (ORCPT + 99 others); Thu, 23 Jun 2022 13:54:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235272AbiFWRwJ (ORCPT ); Thu, 23 Jun 2022 13:52:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43EB7F38; Thu, 23 Jun 2022 10:12:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7EB7C61CD9; Thu, 23 Jun 2022 17:12:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64C89C3411B; Thu, 23 Jun 2022 17:12:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656004361; bh=sivh1AXAIVf1MuR0+UdKNkj6eNlCUAhnZJOWSaHp8Y4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LHtX5w5IKHtKT50BfphS+IyZ/Y5XVsLby/BpYasqcUGbyDzuPPWQq3Qi364WYDwGG VuwBBuE10hPPloKnnFHIBsfWeH0W0nEP3B3h4BN+fGSAuwqGmwioqgl90NmeN3odXy gsbvLBBxaIA7al8tMXBucHtHa95fXVdILGESE+co= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Herbert Xu , "Jason A. Donenfeld" Subject: [PATCH 4.19 014/234] Revert "hwrng: core - Freeze khwrng thread during suspend" Date: Thu, 23 Jun 2022 18:41:21 +0200 Message-Id: <20220623164343.463759777@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164343.042598055@linuxfoundation.org> References: <20220623164343.042598055@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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-kernel@vger.kernel.org From: Herbert Xu commit 08e97aec700aeff54c4847f170e566cbd7e14e81 upstream. This reverts commit 03a3bb7ae631 ("hwrng: core - Freeze khwrng thread during suspend"), ff296293b353 ("random: Support freezable kthreads in add_hwgenerator_randomness()") and 59b569480dc8 ("random: Use wait_event_freezable() in add_hwgenerator_randomness()"). These patches introduced regressions and we need more time to get them ready for mainline. Signed-off-by: Herbert Xu Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- drivers/char/random.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -327,7 +327,6 @@ #include #include #include -#include #include #include #include @@ -2494,8 +2493,7 @@ void add_hwgenerator_randomness(const ch * We'll be woken up again once below random_write_wakeup_thresh, * or when the calling thread is about to terminate. */ - wait_event_freezable(random_write_wait, - kthread_should_stop() || + wait_event_interruptible(random_write_wait, kthread_should_stop() || ENTROPY_BITS(&input_pool) <= random_write_wakeup_bits); mix_pool_bytes(poolp, buffer, count); credit_entropy_bits(poolp, entropy);