Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1120703pxb; Thu, 19 Aug 2021 21:12:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyM12JMD1TDKFlZEaA4xaTsSstDVZaptlV1ckwKxWO9r/L0PmTSKmXyzr7AHFwR39Aa5Eia X-Received: by 2002:a92:740f:: with SMTP id p15mr8627159ilc.181.1629432757923; Thu, 19 Aug 2021 21:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629432757; cv=none; d=google.com; s=arc-20160816; b=PMAwecJIpQBaDEKgWf6Fw/P4beFjk02tjxdOtgJfHqF79ESg/SfP6bJeKb5WYYmcCu Fjkog091bO+ODXjPxQVmbzOX54vG8bWbGFakDOQHvGV61V0cOfsowxEDB5UKyvQeV/6k dyW80n5/hU29TbfdTOkobOvzBANb8qXp2nMg9YT7JB66FcJKatfz7SxaGHIX/qQRQsdF OtEJMgm0sys9hMZuWkkSnucbomkTt0wNtIg3K+z9Y5KQA8XkefTy+Sdx9HRwq7+sjXrI mIV1YVEIfIR53LmOrX4S3xuGD5jfDrxhQYNFmIWchCLy+c+l60bqCNvOe34WQMGdyNUP dDNA== 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:organization:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=0XvUZ+5BWgTwpJh88VGaw844XRBWGMqqjISDFqgaRlY=; b=MXJrXeBB8QvcNhsL7z1muAVfaq5A8FYCTjeoHW+beRNjcwi8YsPEiEPuRVbYmZ+51H crMDWTgHn8h+W5DP2qaXZrTP4/UQVZtrJtHp4dzEqkxVeKJuFallrIwCMZfzz6JnfboU O5zNTMvMh+xdBvRNq1XbqWT5Dc5vEwPsc8MFX6hL9ZiO+WYST1mYF1dQBjdCcfscaI5E 2IBPe4cQ/mSTB5ep0hhv5X26rPPxRR6jPMKEzK/m12ST74rSA+c4H8T8Xzjo7JveHDZe QH6ALlw+lct3BPRFjBv2yUjGZcP4qGb0lmvgRH+dQhaWMIUCNdB1QAaJ1TQaPiDdyhZ0 mUPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MDaRtGfU; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si6880392jat.85.2021.08.19.21.12.25; Thu, 19 Aug 2021 21:12:37 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=MDaRtGfU; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231701AbhHTEML (ORCPT + 99 others); Fri, 20 Aug 2021 00:12:11 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:51185 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbhHTEML (ORCPT ); Fri, 20 Aug 2021 00:12:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629432689; 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=0XvUZ+5BWgTwpJh88VGaw844XRBWGMqqjISDFqgaRlY=; b=MDaRtGfUx9y8afzMzDRRb5sw1oNK6h2Tuyes/5wt+kfONyLCIrCkSvgH0f7il7n5ft7sih YcngGfpEL5qhGyoL0J9mn7yzy5cxlVU4/ZqZ7m+fHXwCLDV+QsLHuJTxbLUD4mk+GkB3jt +TwtRTJ9MJ7UjNzutn3viel+uZmZpsI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-240-Ux-jbRLdMxOdAUcuOKHHpg-1; Fri, 20 Aug 2021 00:11:22 -0400 X-MC-Unique: Ux-jbRLdMxOdAUcuOKHHpg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CF6911008070; Fri, 20 Aug 2021 04:11:19 +0000 (UTC) Received: from ovpn-113-78.phx2.redhat.com (ovpn-113-78.phx2.redhat.com [10.3.113.78]) by smtp.corp.redhat.com (Postfix) with ESMTP id EA11A189C4; Fri, 20 Aug 2021 04:11:12 +0000 (UTC) Message-ID: <561ab28b18c31fbc221f4cb0c4df6db9b0538675.camel@redhat.com> Subject: Re: [PATCH] rcutorture: Avoid problematic critical section nesting on RT From: Scott Wood To: paulmck@kernel.org, Sebastian Andrzej Siewior Cc: Valentin Schneider , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rcu@vger.kernel.org, linux-rt-users@vger.kernel.org, Catalin Marinas , Will Deacon , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Steven Rostedt , Daniel Bristot de Oliveira , Frederic Weisbecker , Josh Triplett , Mathieu Desnoyers , Davidlohr Bueso , Lai Jiangshan , Joel Fernandes , Anshuman Khandual , Vincenzo Frascino , Steven Price , Ard Biesheuvel , Boqun Feng , Mike Galbraith Date: Thu, 19 Aug 2021 23:11:12 -0500 In-Reply-To: <20210819182035.GF4126399@paulmck-ThinkPad-P17-Gen-1> References: <20210811201354.1976839-1-valentin.schneider@arm.com> <20210811201354.1976839-2-valentin.schneider@arm.com> <20210817121345.5iyj5epemczn3a52@linutronix.de> <20210817131741.evduh4fw7vyv2dzt@linutronix.de> <20210817144018.nqssoq475vitrqlv@linutronix.de> <20210818224651.GY4126399@paulmck-ThinkPad-P17-Gen-1> <20210819153927.clqxr4f7qegpflbr@linutronix.de> <20210819154708.3efz6jtgwtuhpeds@linutronix.de> <20210819182035.GF4126399@paulmck-ThinkPad-P17-Gen-1> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-08-19 at 11:20 -0700, Paul E. McKenney wrote: > On Thu, Aug 19, 2021 at 05:47:08PM +0200, Sebastian Andrzej Siewior wrote: > > On 2021-08-19 17:39:29 [+0200], To Paul E. McKenney wrote: > > > + /* > > > + * Ideally these sequences would be detected in debug builds > > > + * (regardless of RT), but until then don't stop testing > > > + * them on non-RT. > > > + */ > > > + if (IS_ENABLED(CONFIG_PREEMPT_RT)) { > > > + /* > > > + * Can't release the outermost rcu lock in an irq disabled > > > + * section without preemption also being disabled, if irqs > > > + * had ever been enabled during this RCU critical section > > > + * (could leak a special flag and delay reporting the qs). > > > + */ > > > + if ((oldmask & RCUTORTURE_RDR_RCU) && > > > + (mask & RCUTORTURE_RDR_IRQ) && > > > + !(mask & preempts)) > > > + mask |= RCUTORTURE_RDR_RCU; > > > > This piece above, I don't understand. I had it running for a while and > > it didn't explode. Let me try TREE01 for 30min without that piece. > > This might be historical. There was a time when interrupts being > disabled across rcu_read_unlock() meant that preemption had to have > been disabled across the entire RCU read-side critical section. > > I am not seeing a purpose for it now, but I could easily be missing > something, especially given my tenuous grasp of RT. Yeah, I think this was to deal with not having the irq work stuff in RT at the time. -Scott