Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2870671ybv; Mon, 24 Feb 2020 13:20:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwsJYZIsX8mJvPBDqPcedwvZRnRubTm381Ep/ASLPFueklOkmUVpkH/lllffAZszzTwzmYS X-Received: by 2002:a05:6830:1447:: with SMTP id w7mr7160728otp.368.1582579225095; Mon, 24 Feb 2020 13:20:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582579225; cv=none; d=google.com; s=arc-20160816; b=tDausIdYCkg0JxSDvVVDDSZHSv202bsPbavIsciUMgm+ge9YfUk5N59swizVHrNmFu lYRVclzfpaqSMjRSMc6DJyeL9nBQsVwSnCuXkDyYYx0EeaSmeNTMwXMimSE8MOx4mHdg ipCX8Tspgn2qcHx6hAOTWQms0z7zN5+IZk/5FNCXUPVwXta6D245OwtvyZZtrR0DgVu0 LXT0uQCRF53gz3TCJ1lRxlhRQ2Cu6n5xCX9AWJGKNsI+4p318b213VLijAjj7zx+ZUie mHWo3wbD/y+dbtC16WAcf8FIiNB6jaCiH9qZ03cWAwcxLTXZZ1RNZBVSqRAauqhd9eTb G3Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=JsHGKFZA280rFVNdFxn6Vm0Rar2zkBPMBXwLPRDgN1M=; b=pEfjx/nKwRxh8CE0Qzzj0ksbRfL0AlBW5MBYoeBAz9ysAGetZaT3+zf6Z62wnsztag 7WfL8d91edm6ShPJ4AUDwgwrVJTh9tOt5m0chVZSbRNKtlBZz0PM7EQQhR0Gviymr2OY AAYhgHDm702Dh5igfXP7kkZ6QNbtGfNkeG2eFRkl1XnIXNOMIdck9xnaP/AgP0ourBy2 5eS8KsGjUGgNjEWEScqI/JZ+DTiXueE7AoUp1MYBPsuWfyoHjv15P+rZpVT9qHQZlrpd SiFXp44KyC9KNa6Hc9LxuIOFD5dzkAdYyd3bJ2x5Lw1UJCjLhdXODn7z+YjQzw2IxG8N mCMQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si7065835otg.128.2020.02.24.13.20.12; Mon, 24 Feb 2020 13:20:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727926AbgBXVTn (ORCPT + 99 others); Mon, 24 Feb 2020 16:19:43 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:38564 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726651AbgBXVTm (ORCPT ); Mon, 24 Feb 2020 16:19:42 -0500 Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id B142A121A82C6; Mon, 24 Feb 2020 13:19:41 -0800 (PST) Date: Mon, 24 Feb 2020 13:19:41 -0800 (PST) Message-Id: <20200224.131941.1864899496346758786.davem@davemloft.net> To: frextrite@gmail.com Cc: kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, joel@joelfernandes.org, madhuparnabhowmik10@gmail.com, paulmck@kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] ip6mr: Fix RCU list debugging warning From: David Miller In-Reply-To: <20200222165726.9330-1-frextrite@gmail.com> References: <20200222165726.9330-1-frextrite@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 24 Feb 2020 13:19:42 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Amol Grover Date: Sat, 22 Feb 2020 22:27:27 +0530 > ip6mr_for_each_table() macro uses list_for_each_entry_rcu() > for traversing outside an RCU read side critical section > but under the protection of rtnl_mutex. Hence add the > corresponding lockdep expression to silence the following > false-positive warnings: > > [ 4.319479] ============================= > [ 4.319480] WARNING: suspicious RCU usage > [ 4.319482] 5.5.4-stable #17 Tainted: G E > [ 4.319483] ----------------------------- > [ 4.319485] net/ipv6/ip6mr.c:1243 RCU-list traversed in non-reader section!! > > [ 4.456831] ============================= > [ 4.456832] WARNING: suspicious RCU usage > [ 4.456834] 5.5.4-stable #17 Tainted: G E > [ 4.456835] ----------------------------- > [ 4.456837] net/ipv6/ip6mr.c:1582 RCU-list traversed in non-reader section!! > > Signed-off-by: Amol Grover Applied, thanks.