Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2736277pxb; Mon, 31 Jan 2022 03:14:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPMZj/5xL5z9pcqX9kGOT/kyyJH/GOttBQSqlwjqDG7D3wx0klGzLc7hvRVuH0Uqw1mqVQ X-Received: by 2002:a17:90b:249:: with SMTP id fz9mr33375852pjb.99.1643627644544; 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=WM6Ub8HO6HoJrSxvF1YD0H3ERut0QbfZLTs36Cz2ibz85hC82dwkJ/hiOd0CNU264W DdDhsveVpXIHG0UnD47KtU1M45z8xPhkLffYxS2bJEAzYrntue+ksR9x/xKXVKz4cvf+ SuG4/mOQdrPU1smbA7ZOrRHlmqhLV151aCmnwVNYmVirI6fgjH4xAzxRIKM/HJp9v68K c+sxQkXuhSLnX/bOsflwP253uW8F5NDPTjIPRGc5f7r3zmpamxVaKJU+RQo4GkQPYnQK XmCLsW4vgs/UCLAouH3fSaUIMe2vUq6rJuESt8M4SL4MmXdVubLrFIm0DgeO19eBsUdm aDVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=IrsMD9OsKnJJ5L2qqq1WV5CMlphc6Ingdz/kQiF3QcQ=; b=UX/JFyWMk4dXA+7szuab/hZhE6JwNP36fF9AkMSBGLi7AzRFJnc8jBCXERgVHTZW5v dpB9wjf9SrDwwUiBZsUO88LHjTqDg29jSigP9oExjqipyUiFCuKll92rwn9J9lljuIZa 4XwtRRCWgJKT16SXMQif45vP+vTbn9lKva5tr7zzsuJOX1ojmU2IhSNLrEfXJ7s+Vuko 8nNtndlludbuiKSmN3rtyfFzi7ZCeM9NfrZtOXGANrVLdOiTtuLlcSHjTQAJ+4W+cezm I7njyBNjD0kMQwk+LF+ne3H3Bc1W6RaukN6GM0PtHFyqou9dUBbO9MJI9LrA5gFGmUDN UKwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=EKRHKL+b; 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=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ng18si9839838pjb.150.2022.01.31.03.13.54; 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=@zx2c4.com header.s=20210105 header.b=EKRHKL+b; 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=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349709AbiA1PyY (ORCPT + 99 others); Fri, 28 Jan 2022 10:54:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243235AbiA1PyX (ORCPT ); Fri, 28 Jan 2022 10:54:23 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDDF2C061714; Fri, 28 Jan 2022 07:54:22 -0800 (PST) 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 802E760EE2; Fri, 28 Jan 2022 15:54:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9402CC340EA; Fri, 28 Jan 2022 15:54:21 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="EKRHKL+b" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1643385259; 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=IrsMD9OsKnJJ5L2qqq1WV5CMlphc6Ingdz/kQiF3QcQ=; b=EKRHKL+bbc7MI4YgCyb3InTqglzkXHpilwRMb/jA71BbCD70Izf+VA5yL9jE+xB445nS1p 4+zpnSDTATTfRj9nno35fxSKgUf6Or1nY0EAW4lU0de7DdYokzkfe6lq3LmfEgWr1zfwuL JeimoivF/QDg0F3i3ewBtUFLkh/SqOc= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 416aa0ab (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 28 Jan 2022 15:54:19 +0000 (UTC) Received: by mail-yb1-f178.google.com with SMTP id r65so19629923ybc.11; Fri, 28 Jan 2022 07:54:18 -0800 (PST) X-Gm-Message-State: AOAM532RgbxPWqXkNTV0V/ZU6LNoshsHoZbOhJVxZ/kFTO9WXgR79kT4 e6T9IGz/Lad19yVjcXqa+iB6b2ereOeE9AOrwUU= X-Received: by 2002:a25:bd08:: with SMTP id f8mr5998167ybk.121.1643385257209; Fri, 28 Jan 2022 07:54:17 -0800 (PST) MIME-Version: 1.0 References: <20220128153344.34211-1-Jason@zx2c4.com> In-Reply-To: From: "Jason A. Donenfeld" Date: Fri, 28 Jan 2022 16:54:06 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] random: remove batched entropy locking To: Sebastian Andrzej Siewior Cc: Andy Lutomirski , =?UTF-8?Q?Jonathan_Neusch=C3=A4fer?= , "Theodore Ts'o" , LKML , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Andy Lutomirski , stable , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sebastian, On Fri, Jan 28, 2022 at 4:44 PM Sebastian Andrzej Siewior wrote: > NO. Could we please look at my RANDOM patches first? > I can repost my rebased patched if there no objection. I did, and my reply is here: https://lore.kernel.org/lkml/CAHmME9pzdXyD0oRYyCoVUSqqsA9h03-oR7kcNhJuPEcEMTJYgw@mail.gmail.com/ I was hoping for a series that addresses these issues. As I mentioned before, I'm not super keen on deferring that processing in a conditional case and having multiple entry ways into that same functionality. I don't think that's worth it, especially if your actual concern is just userspace calling RNDADDTOENTCNT too often (which can be safely ratelimited). I don't think that thread needs to spill over here, though, so feel free to follow up with a v+1 on that series and I'll happily take a look. Alternatively, if you'd like to approach this by providing a patch for Jonathan's issue, that makes sense too. So far, the things in front of me are: 1) your patchset from last month that has unresolved issues, and 2) Andy's thing, which maybe will solve the problem (or it won't?). A third alternative from you would be most welcome too. Jason