From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92432C433F5 for ; Fri, 28 Jan 2022 15:44:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235309AbiA1Po0 (ORCPT ); Fri, 28 Jan 2022 10:44:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232764AbiA1PoZ (ORCPT ); Fri, 28 Jan 2022 10:44:25 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C939C061714; Fri, 28 Jan 2022 07:44:25 -0800 (PST) Date: Fri, 28 Jan 2022 16:44:22 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1643384664; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Y2SzC0yUOVfIVcM+MxRaqK8qU1jwTL1syaAIVFYo+U0=; b=QmtA4LlqGWJnBQPatE0PIf4JTssg9DE3CLbOwclIVW7Q1YDxY7tgqPjedICyozn/IfzzAY /V3FBVO8KCerpCOqeTj4XV13IW1fj2nRVKkxkIMW+ezTwnl62bjHqjMrFgauK+5MKicKT7 xpiPoFgsl1u8Zxr9fDgefE9cvpaDZjxyXEXroTTCClMI3gVxpA24V4a4LFPoefrVZLvn76 /MaLeY1d/5RWW9K5Wn8/Y2fEqAMGSw4C7J6Nw6YZQvkVCq72GoUy3/dM9AmOXRJRDPudnT zf4skOdSgPEmRXTwzY5Tmj2ITU7IRr6ax1WEfB7DlOS9Be+8XW5zreTufwgZ2w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1643384664; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Y2SzC0yUOVfIVcM+MxRaqK8qU1jwTL1syaAIVFYo+U0=; b=AiQa3oW5xtiOzJegxYWsSUSqEfGfhVkkPMhXBQLQymtKKBxh0sqBtHgpoEweIlpXYnvyra NRj2/1jFMMf/bgCg== From: Sebastian Andrzej Siewior To: "Jason A. Donenfeld" Cc: Andy Lutomirski , Jonathan =?utf-8?Q?Neusch=C3=A4fer?= , Theodore Ts'o , linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Andy Lutomirski , stable@vger.kernel.org, Thomas Gleixner Subject: Re: [PATCH] random: remove batched entropy locking Message-ID: References: <20220128153344.34211-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220128153344.34211-1-Jason@zx2c4.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On 2022-01-28 16:33:44 [+0100], Jason A. Donenfeld wrote: > From: Andy Lutomirski > > We don't need spinlocks to protect batched entropy -- all we need > is a little bit of care. This should fix up the following splat that > Jonathan received with a PROVE_LOCKING=y/PROVE_RAW_LOCK_NESTING=y > kernel: NO. Could we please look at my RANDOM patches first? This affects PREEMPT_RT. There is no need to stuff this in and tag it stable. I can repost my rebased patched if there no objection. This patch invokes extract_crng() with disabled interrupts so we didn't gain anything IMHO. Sebastian