Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1532361ybk; Thu, 14 May 2020 11:15:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDIu3yWshdGQG+ApmEc/4CK8Gq3+O/bxi9wQm50CQnCQiv2HC23C0b836XYKoOon3SkxNU X-Received: by 2002:a05:6402:2208:: with SMTP id cq8mr5328283edb.293.1589480101843; Thu, 14 May 2020 11:15:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589480101; cv=none; d=google.com; s=arc-20160816; b=IRtqUK/u4fLr+ix8sz8IsdD76m2wfVDzV9LJOti+DwZBDtgYCwSixEuZy1M0RlC0mw ua7tuAI9kY9j/3aDmR1zQGL0cSdaAFn8iNBIwteSPTFIl5HDEWN3gHt8M6I+d7QfA7AH MtoF5OK0Cb7FzdjUwu282smJOz0YGuSRzajRetpkRBUliJXZvqSkmqjLA4qwqQkN9tF1 Fbx0Ak6BxksdGyBCYJKC0kQog4Wzjsb4s0Lg9vyxWOBe0JnEJO0pYqf4anFeppw8HA6q HaymOhJvOR1bZlADqjksCncRNUX7/7lBoQqKAGxvPvFVEIgyCAh6Q4XlFBisyWF3NRdn 2VKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=cCLb9L7a/H1SCEeKweVSVriXTcNmHTqrsEaRAfjOB3U=; b=EeB+z1rzy8zTHm0Jq4tWpSJSBOqCua18hlipCSHPd5qOf4NVtWWB7gY2crE26MGem1 /KH46wbM6OtjOTCDS6+kaSYMrgP0CJFXTvlDvnLqD2c4CyQz7IabPxOseatCph1IDEhT vD0tMOomVdaoclCEM3ZLoYsv/7ezRprwaPGj94HNhWJzT+wR/j02ZHT63NaaqNTLe5dc O3N0/GaSSP49tbYzQN4065lHCSwkqgBrFjOos7lV8L853K3BFiV2gQU0X2rLCMf9JrjM KH5Ixc3xWX0k92is0+MqBbQtqTB45D6H5vqOXXgA/sMp0cKRcqCGFKzaFdZUz44nHQIH 55NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=d1aPOCTN; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r23si1877307edp.515.2020.05.14.11.14.37; Thu, 14 May 2020 11:15:01 -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=@kernel.org header.s=default header.b=d1aPOCTN; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726265AbgENSNI (ORCPT + 99 others); Thu, 14 May 2020 14:13:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:59236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbgENSNH (ORCPT ); Thu, 14 May 2020 14:13:07 -0400 Received: from paulmck-ThinkPad-P72.home (unknown [50.39.105.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 852782065D; Thu, 14 May 2020 18:13:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589479986; bh=K6NKA083JKcvBkEFVEjRKQHwmmMVK7aiJCAoZ7eOmPc=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=d1aPOCTNwyHeaHG+iWHrF7E5IEnHDZ9yqNqPDhmaywtwCiK6dUsAeOL88r96MJ8Kf QjTMsb6UqmRbcmSQpStcJhOkJ2UY9WXErwxnMEnW27qbq1+xF64ZrvkP6V12VM07f5 E/26dgoExPmjEz/8fAYOseLEnfQ8QuUWfEg1O5Bw= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id A9E2835229C8; Thu, 14 May 2020 11:13:05 -0700 (PDT) Date: Thu, 14 May 2020 11:13:05 -0700 From: "Paul E. McKenney" To: Qian Cai Cc: Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , Madhuparna Bhowmik , Amol Grover , Dmitry Vyukov Subject: Re: Default enable RCU list lockdep debugging with PROVE_RCU Message-ID: <20200514181305.GT2869@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200514222535.259cb69e@canb.auug.org.au> <20200514133328.GG2869@paulmck-ThinkPad-P72> <20200514135402.GI2869@paulmck-ThinkPad-P72> <20200514153400.GJ2869@paulmck-ThinkPad-P72> <6089C62B-52AA-47CB-BCA0-9096B3482509@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6089C62B-52AA-47CB-BCA0-9096B3482509@lca.pw> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 14, 2020 at 11:46:23AM -0400, Qian Cai wrote: > > > > On May 14, 2020, at 11:34 AM, Paul E. McKenney wrote: > > > > On Thu, May 14, 2020 at 10:03:21AM -0400, Qian Cai wrote: > >> > >> > >>> On May 14, 2020, at 9:54 AM, Paul E. McKenney wrote: > >>> > >>> On Thu, May 14, 2020 at 09:44:28AM -0400, Qian Cai wrote: > >>>> > >>>> > >>>>> On May 14, 2020, at 9:33 AM, Paul E. McKenney wrote: > >>>>> > >>>>> On Thu, May 14, 2020 at 08:31:13AM -0400, Qian Cai wrote: > >>>>>> > >>>>>> > >>>>>>> On May 14, 2020, at 8:25 AM, Stephen Rothwell wrote: > >>>>>>> > >>>>>>> Hi Paul, > >>>>>>> > >>>>>>> This patch in the rcu tree > >>>>>>> > >>>>>>> d13fee049fa8 ("Default enable RCU list lockdep debugging with PROVE_RCU") > >>>>>>> > >>>>>>> is causing whack-a-mole in the syzbot testing of linux-next. Because > >>>>>>> they always do a debug build of linux-next, no testing is getting done. :-( > >>>>>>> > >>>>>>> Can we find another way to find all the bugs that are being discovered > >>>>>>> (very slowly)? > >>>>>> > >>>>>> Alternatively, could syzbot to use PROVE_RCU=n temporarily because it can’t keep up with it? I personally found PROVE_RCU_LIST=y is still useful for my linux-next testing, and don’t want to lose that coverage overnight. > >>>>> > >>>>> The problem is that PROVE_RCU is exactly PROVE_LOCKING, and asking people > >>>>> to test without PROVE_LOCKING is a no-go in my opinion. But of course > >>>>> on the other hand if there is no testing of RCU list lockdep debugging, > >>>>> those issues will never be found, let alone fixed. > >>>>> > >>>>> One approach would be to do as Stephen asks (either remove d13fee049fa8 > >>>>> or pull it out of -next) and have testers force-enable the RCU list > >>>>> lockdep debugging. > >>>>> > >>>>> Would that work for you? > >>>> > >>>> Alternatively, how about having > >>>> > >>>> PROVE_RCU_LIST=n if DEBUG_AID_FOR_SYZBOT > >>>> > >>>> since it is only syzbot can’t keep up with it? > >>> > >>> Sound good to me, assuming that this works for the syzkaller guys. > >>> Or could there be a "select PROVE_RCU_LIST" for the people who would > >>> like to test it. > >>> > >>> Alternatively, if we revert d13fee049fa8 from -next, I could provide > >>> you a script that updates your .config to set both RCU_EXPERT and > >>> PROVE_RCU_LIST. > >>> > >>> There are a lot of ways to appraoch this. > >>> > >>> So what would work best for everyone? > >> > >> > >> If PROVE_RCU_LIST=n if DEBUG_AID_FOR_SYZBOT works for syzbot guys, that would be great, so other testing agents could still report/fix those RCU-list bugs and then pave a way for syzbot to return back once all those false positives had been sorted out. > > > > On that, I must defer to the syzbot guys. > > > >> Otherwise, “select PROVE_RCU_LIST” *might* be better than buried into RCU_EXPERT where we will probably never saw those false positives been addressed since my configs does not cover a wide range of subsystems and probably not many other bots would enable RCU_EXPERT. > > > > Yet another option would be to edit your local kernel/rcu/Kconfig.debug > > and change the code to the following: > > > > config PROVE_RCU_LIST > > def_bool y > > help > > Enable RCU lockdep checking for list usages. It is default > > enabled with CONFIG_PROVE_RCU. > > > > Removing the RCU_EXPERT dependency would not go over at all well with > > some people whose opinions are difficult to ignore. ;-) > > I am trying to not getting into a game of carrying any custom patch myself. > > Let’s see what syzbot guys will say, and then I’ll enable RCU_EXPERT myself if needed, but again we probably never see PROVE_RCU_LIST to be used again in syzbot for this path. I surely have no cycles to expand the testing coverage for more subsystems at the moment. Fair enough! And yes, the Linux kernel is quite large, so I certainly am not asking you to test the whole thing yourself. Thanx, Paul