Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3211681pxb; Fri, 4 Feb 2022 03:59:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwG4fMbp02u34S82IZpNIQJMnrVPYMK2EAZSt2YPFjkaxX8hGqulu4IzCwOFGdHPTquIgvm X-Received: by 2002:a17:906:c5b:: with SMTP id t27mr2176441ejf.317.1643975965830; Fri, 04 Feb 2022 03:59:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643975965; cv=none; d=google.com; s=arc-20160816; b=iDHKUKhuHsHqiNrh/98HfrNQCSZn4y8SENmMkaLegp4SS+wtOuuSTl+USTI2O9QcIK 1q+jw9DPszkXjM29qWS/owAKnZIvdwumURlDDbfJwjpM5istcMYWlCzAGIxNyXnRuI9Z 74ybhdjn7YuVzeFGlzV1lGkY+WMQj/UkGUu3dB7bVmJ3v+rbVytTMyf3Yc2OCdR5fuwA XZj8M/E9TkihoSQ+iy/8eED5yx4qe94Qdkogp//j73rk+9KTQrb4AW8s58BigI8JU8qp bgqUmYsvQ92SNDqGcau9HRytf3y2ga3r9P1aYPQnrFzqJ4rWnxDuIL1wlZ9qkFcz7fjm M8zg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=b9MRTqB0n9ccPXPwZOj3EH+x5hdIJMCMAmpD+JN93Ng=; b=oFw5M6nAKgVdFJqaJqkaF8U3ZB139hC0z4IrfLZiz3nKtnnQkKIQLT21rfq9yJjdsd ZHNcIbKPt83k0Pq5OkkkomlvthWMGm9y4bQ1qAgYALuN3xfomt+yMOi0qlQ5thtdTIy2 l8HpCqaK6j1sXGvaErtMP18t2BalKY/AjvjpX90yS0NOsFUpaQyYlaTfzSZ3i12svb0T 039SGYvxznUju/jVf3wYPYQknNpc5fwFSlosmrRFT9N/ARAudi4X1BHb/ZJ8ugaX19HI /oElKoOaP3qq8fhCra0jI86E6328rqTUYWUt83dCgjBjydVxZu6818qXXXsezuKD+qYU RLZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=oc1hOTQR; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb8si1239588ejc.941.2022.02.04.03.59.00; Fri, 04 Feb 2022 03:59:25 -0800 (PST) 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=@linutronix.de header.s=2020 header.b=oc1hOTQR; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355150AbiBDLKS (ORCPT + 99 others); Fri, 4 Feb 2022 06:10:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233079AbiBDLKS (ORCPT ); Fri, 4 Feb 2022 06:10:18 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0196AC061714 for ; Fri, 4 Feb 2022 03:10:17 -0800 (PST) Date: Fri, 4 Feb 2022 12:10:13 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1643973015; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=b9MRTqB0n9ccPXPwZOj3EH+x5hdIJMCMAmpD+JN93Ng=; b=oc1hOTQRI9eJR1sii2obCVj4iRkVhy2ikIhKFz5DkqpsX6eKVH+6GLY7JPMJDo0nsCD4gc m4FUwFkitlIS+JU6xwXtabK3b23NZWh1TRLAvfNwWIjl5IWicWyZz4fRc/c4AlXRExB3+z NxZFkHL3ImhmCI0GG4OfJDxnO/Wy+VOEX0X5vOx5vXWhXzMFn9WZZ1Is1Mave7FVuMToWs 7QoZNirJmnbYhAqeFsHCj40KDmS6zAp1ytdcvUqixmlR48NkouSOF+73SSvqmzIVq8PkJ4 52uW1ldIcQs0T8e63UdcH5dK78OS++wYI98BvsjSerCVJGplh0ODhUqscxVfBg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1643973015; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=b9MRTqB0n9ccPXPwZOj3EH+x5hdIJMCMAmpD+JN93Ng=; b=XLWZl/vD9OSiIFjekcSk4adN5cuzfH/mH/NgqeOAKV0EZ+6OxwhJnpgn4gYyy1WeynnmWc xTRYOBi3RBDEn7BA== From: Sebastian Andrzej Siewior To: "Jason A. Donenfeld" Cc: Andy Lutomirski , Boqun Feng , Will Deacon , Peter Zijlstra , Ingo Molnar , Waiman Long , Sultan Alsawaf , Theodore Ts'o , Andy Lutomirski , Jonathan =?utf-8?Q?Neusch=C3=A4fer?= , LKML , Thomas Gleixner Subject: Re: [PATCH v2] random: remove batched entropy locking Message-ID: References: <20220128223548.97807-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-02-04 01:27:55 [+0100], Jason A. Donenfeld wrote: > Hey Andy, >=20 > Think I could bug you to review this patch? The general idea is based > on your original patch, and I think this fits what we talked about on > IRC. I figure we'll probably both page this out of our minds after > another week or two of not thinking about it. >=20 > It's here on cgit if that's easier to look at: > https://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git/commit/?h= =3Djd/no-batch-lock Please don't merge this: - This splat only occurs with CONFIG_PROVE_RAW_LOCK_NESTING enabled. This option has this in its description: =E2=94=82 NOTE: There are known nesting problems. So if you enable this =E2=94=82 option expect lockdep splats until these problems have been ful= ly =E2=94=82 addressed which is work in progress. This config switch allows = to =E2=94=82 identify and analyze these problems. It will be removed and the =E2=94=82 check permanently enabled once the main issues have been fixed. - The problem identified by the splat affects only PREEMPT_RT. Non-RT is not affected by this. - This patch disables interrupts and invokes extract_crng() which leads to other problems. If this patch is the way then it should be merged together with the other outstanding issues. > Thanks, > Jason Sebastian