Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2736290pxb; Mon, 31 Jan 2022 03:14:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqhAfGL1pyQEwK/q6lFEYKU3Xdlr0ZHs+tWLAPU9n6chWGRAmcCQgZeJA7WPeNiN4m2D6d X-Received: by 2002:a63:6c83:: with SMTP id h125mr3403813pgc.342.1643627644873; Mon, 31 Jan 2022 03:14:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643627644; cv=none; d=google.com; s=arc-20160816; b=wLpX08iitnLvxZPExu5ZHS7E4xH71+DKBK/IHfrrinPY7M7TJ6/JCROUxEEdUzNGpb dFd4p24TZO4uwuIMyQzzjSlJ6ox1yB84DoCQgcsJZrSyNoswuftNCGYbGLNLDISTEdLJ pw0bIG+9Unfe9jVCpiSNOMaxJmHwP3wr4+1m763/ThdapxLZrIgBPjqY2UT5jgq4h6og vtXBqkm0+MQnc/oJtLndxHDbMOUxFUx8//7xCgkgtEgHWwDJonkOmg67tJW3AD77UZ67 ai2m53Xf/Mn9ZjRw+rvMKkiBBKHwlPd+HGREbf5EIMKvtZcnFthmQH3b32yNfg/jo8tk 2kJA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=Y2SzC0yUOVfIVcM+MxRaqK8qU1jwTL1syaAIVFYo+U0=; b=nEUixgGbiTHis2OX3jyTzPZPeiGKtwHSbwPgF0WdITDyuU3GE03rGq89R8eOd3c57U R50fVSb18RCgEUAOUesbgS88xlnSxhgMZZA2jT8MNxiWEeZ52H6oVwORSCNiLtJEChFr DXFhAxm8rQYsdrZ44Atr5yvSd5kVkfSg3uuiXX4dpwGye6j5dMynGFkGINC9ROEaExEB HUEAcgIRUGOkxq6fUy0fsmB4KZMGNLahy4jc3oL56l3I8pW6P7ShQxNgLpHz2VZDs82f 1G9HtvzB5zOv2eVqJ0tHsojAEbBP5t0y1wPdyNh1AMSo1+kiEUi1G65iNPDvPE67b40Z zUtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QmtA4Llq; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u22si9357067pjx.70.2022.01.31.03.13.53; Mon, 31 Jan 2022 03:14:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QmtA4Llq; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349641AbiA1Po0 (ORCPT + 99 others); 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: linux-kernel@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