Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5930229ybf; Thu, 5 Mar 2020 09:40:39 -0800 (PST) X-Google-Smtp-Source: ADFU+vsSfa03ejRpM1kKLdkdu+Q5v6VFCTfW5rODSwH9mHKO266/ZPV2ChDpTm9DiUkU9vgCu+iG X-Received: by 2002:aca:d509:: with SMTP id m9mr152852oig.136.1583430039171; Thu, 05 Mar 2020 09:40:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583430039; cv=none; d=google.com; s=arc-20160816; b=NAGGwsrxfowHWD5maXKZX3QthYkkg4WB5m2L5n/achAXrAZh9kRJzXE45We1HqpSKW O4hS9/epYbzBKIFtpNXeQhXl9tLoff2P+p2IGSr7dd8F6jGK8fG5OFlUx+da+XAwD/j2 ZlC3IpFQhYMuRurwrMVabbij7zaWxPHFsYsZwcHt0cnSQG3Mta2fuU7gruCWe8a7/o7d Q2OetO/PshKiYr23EdaoO3k8WBXZ7BrvFLtguX3rBOyoj/85xMnt0nuJnYJllF3v/864 A43/XRu4K+tKimSN6QIRLfb3gro4br5bx7/ngE0jYVUTeAyK8wWSMWXApMtnRVb2Qiu8 +QgA== 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-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=Fwow6K7jsM635u4hX7uuA9k3vOkPSqTTypNUyW6/TUY=; b=a16ofcayYWVYzGQshBCdsLX2khf2V3YYrvOTRU9W6XmN39D6wvGrOZuO8DbHNAMayO 7QhNBVWC6oEKkh8eg5ugltDarsMq+QfPfS9ziaMICRhZpLvmS+wfvzUKJNPusuP1L5K7 Wkc3M9Rwqz6IjTa5zxkqN7R52Jdd+2EZUDr4Y1fTzKj6Am2Yv+Jld6CZQI07KGZy9mnQ 2sX/OP+rmE3MG8tgMZLX2HIgcIdzG+dTi2yNdRgksgL2h7hvNZUfH8CXXHH9yPDprZww 2B2IIe/62DZ8czk7KIl2C+haWxyCLwy/wEdEvMpUrYkU8CdFZqT9X0qexdEjgpLasvSW AaFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qMqAXVvp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j68si27286otj.56.2020.03.05.09.40.25; Thu, 05 Mar 2020 09:40:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qMqAXVvp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726036AbgCERkE (ORCPT + 99 others); Thu, 5 Mar 2020 12:40:04 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:46762 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725938AbgCERkE (ORCPT ); Thu, 5 Mar 2020 12:40:04 -0500 Received: by mail-pl1-f194.google.com with SMTP id w12so2769680pll.13 for ; Thu, 05 Mar 2020 09:40:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Fwow6K7jsM635u4hX7uuA9k3vOkPSqTTypNUyW6/TUY=; b=qMqAXVvphxubq/lxkcZ85TqcPWB9iEOe7HMOwCW0BoGX157x/CVL9Bmy5s0JRX44j1 1BA2lRXB0a4OJqQo3McZFfbhbU63nhep8v9tfp8T7KMErGp/N6jZXZFHAHB9ojJzw3RL lYAQB6JT1FsqgJjQGkjZ3OY9Rczgbq94Oemnxkj9Yx+8/TR4jnoRycjJ3DCehlKgss9r KdYG7gw/vEe+hnsa7JGbkqgVgSBn5QG2fYyx37bJq8TqnDvTV0bIoTG8cdlL1iBbeqhg 8KDdIhmJryfaxjXNzebYoXuiCtohwx/D/yOQdIiZ0yF2k2SReOgY7jH3fN1+dQEEFiTJ rRog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Fwow6K7jsM635u4hX7uuA9k3vOkPSqTTypNUyW6/TUY=; b=sDELOVTdnmyc12jDNY+h1GiB1YDRJpl/H2xIDfm/1GooU97rTOMudxMyvfr+G0+acP cwwOe9L2p+Wo+iqLlO+XJE3iviOzOfMOjM+hDVrCcKCQDbQTPdm5E0O681x4Tkizr2MJ A7DlPggoGjT6tR/uB7+Aq2wytfOScnVNT64hNvGAyqiy98ZFAc6GlYInjwYjp9mnlzQK 1Xnix9JF2KcOYyquSdwGIcv9KS9Zl68agx4NKrACzQrQcDj8dVwji8tlzQh+nECySJZz tj/yXOfC77T7IQi8kGsd5g9mt8g1d886mQxNFSC0isLX439ai8YszgpoYUdsPGxgNYYK /nxw== X-Gm-Message-State: ANhLgQ0kvEN4Tq+9ebA25jgKOoUQZFyPUTeO4N26/nbU4xpQpN7QgruY 8aQy9WU9KsGIxoOLvY214m8sCCI= X-Received: by 2002:a17:902:8b8a:: with SMTP id ay10mr9372833plb.288.1583430001634; Thu, 05 Mar 2020 09:40:01 -0800 (PST) Received: from madhuparna-HP-Notebook ([2402:3a80:1ee0:fa4c:45f1:8421:bfd8:b0fb]) by smtp.gmail.com with ESMTPSA id y18sm31808475pfe.19.2020.03.05.09.39.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Mar 2020 09:40:00 -0800 (PST) From: Madhuparna Bhowmik X-Google-Original-From: Madhuparna Bhowmik Date: Thu, 5 Mar 2020 23:09:54 +0530 To: Guenter Roeck Cc: madhuparnabhowmik10@gmail.com, paulmck@kernel.org, josh@joshtriplett.org, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, joel@joelfernandes.org, linux-kernel@vger.kernel.org, Amol Grover Subject: Re: [PATCH] Default enable RCU list lockdep debugging with PROVE_RCU Message-ID: <20200305173953.GA10538@madhuparna-HP-Notebook> References: <20200228092451.10455-1-madhuparnabhowmik10@gmail.com> <20200305155238.GA8669@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200305155238.GA8669@roeck-us.net> 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, Mar 05, 2020 at 07:52:38AM -0800, Guenter Roeck wrote: > On Fri, Feb 28, 2020 at 02:54:51PM +0530, madhuparnabhowmik10@gmail.com wrote: > > From: Madhuparna Bhowmik > > > > This patch default enables CONFIG_PROVE_RCU_LIST option with > > CONFIG_PROVE_RCU for RCU list lockdep debugging. > > > > With this change, RCU list lockdep debugging will be default > > enabled in CONFIG_PROVE_RCU=y kernels. > > > > Most of the RCU users (in core kernel/, drivers/, and net/ > > subsystem) have already been modified to include lockdep > > expressions hence RCU list debugging can be enabled by > > default. > > > > However, there are still chances of enountering > > false-positive lockdep splats because not everything is converted, > > in case RCU list primitives are used in non-RCU read-side critical > > section but under the protection of a lock. It would be okay to > > have a few false-positives, as long as bugs are identified, since this > > patch only affects debugging kernels. > > > > Co-developed-by: Amol Grover > > Signed-off-by: Amol Grover > > Signed-off-by: Madhuparna Bhowmik > > Who is going to fix the fallout ? > > fs/btrfs/block-group.c:2011 RCU-list traversed in non-reader section!! > kernel/kprobes.c:329 RCU-list traversed in non-reader section!! > net/ipv4/ipmr.c:136 RCU-list traversed in non-reader section!! > Hi, There is already a patch for fixing the warnings in kernel/kprobes.c : https://lore.kernel.org/lkml/157905963533.2268.4672153983131918123.stgit@devnote2/ Same for net/ipv4/ipmr: https://lore.kernel.org/patchwork/patch/1198934/ Can you please send the warning with the stack backtrace and locks held for btrfs/block-group.c, I will work on it. Thank you, Madhuparna > This is just from my boot tests. I'll keep PROVE_RCU enabled for the > time being, but unless the noise is addressed I'll have to disable it > because otherwise the real problems disappear in the noise. > > Guenter