Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp484758rwb; Thu, 10 Nov 2022 03:43:01 -0800 (PST) X-Google-Smtp-Source: AMsMyM69HlfOSELtLIbASAhzSF3ZwRvYMo/uCzssNNnoX6PPAx14B/7SDiECeATCwHjEHRN1YCAp X-Received: by 2002:a17:906:7c0c:b0:7ae:c2c:e55a with SMTP id t12-20020a1709067c0c00b007ae0c2ce55amr2412567ejo.214.1668080580646; Thu, 10 Nov 2022 03:43:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668080580; cv=none; d=google.com; s=arc-20160816; b=jigQQTS7g3LMBM5B1aaQ3jbOW6XTxCFyLxSGeAuWKfvDgtbM1MW5TnEVd79XdosEil ysPs4pNz2r0DV3M6/jKVXl/MJ0oSVsfHueyV9hAWBmLJXIqxLcLY25JGlrN0vRFATOTu 6wvJnxm6DTCN+VJ94JJnNN6xIlVIMBZJAfjO9+eWKu5fbWi1Sl3d7RjNwVBjdh/DEwLh 6+o7cZFR8BUpScQDFEzendZq8zfj9gWMpf0FcsEIJLtd4K5SeJLRXBmMVb5FyA2XslgN qKqV5SIH7ls73sYkY/rusfhUtl8VBoMpUKfovCHXcojd33jXR6QSOSMg5/mzLgjWBRnB 436Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=eBtvbRmOjTNlNNYrnr0uoJa+eJPhqmUrF3eWNBDAcyE=; b=CDj7N62ejt6fSCwVY3ilsFPCqmJgh64w6jmSMMPjkVlTcW2JQzvgm7v4TXWeDBhvqy RFWMizPRWsNunJrGpL11Jfz5PkbsmZWP7o+qRW4WiJx6OaV2DBP5qmEfFayN5nStdOa5 ZIpvaHP/Xdq8XPJI7ibkkijXtjtORkwBieOBdVZcXFsIiEYy0dIVHc1bKO/3uBi+iyRE uQCSw8ibNhU0wxA40Fgm9XO3Le0yF9SBEofepSZ4EaWQkRjV5gVtKevl4TJAbFvYSbuv 3byZW+eFOfOq3KZW4+0OrPL4S8IABdZm+7HAlO9CnTGc1GtD7MNbxEp+i5v8aQkvmddR 9Iag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=B9mKf68Y; 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=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw5-20020a1709066a0500b007a8beb3aa4csi19557213ejc.872.2022.11.10.03.42.02; Thu, 10 Nov 2022 03:43:00 -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=@gmail.com header.s=20210112 header.b=B9mKf68Y; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229982AbiKJL2H (ORCPT + 92 others); Thu, 10 Nov 2022 06:28:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbiKJL2E (ORCPT ); Thu, 10 Nov 2022 06:28:04 -0500 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE9436315B; Thu, 10 Nov 2022 03:28:03 -0800 (PST) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-367cd2807f2so12721257b3.1; Thu, 10 Nov 2022 03:28:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=eBtvbRmOjTNlNNYrnr0uoJa+eJPhqmUrF3eWNBDAcyE=; b=B9mKf68Yt785zBcI1HE09Ms4Qjrx18S1LVKV3TfOE/XeBeQmx3Uw4NhLW0ZYQ2tr07 7gFtY6/LT0+EnbBMITWPAwKuD5MCMDQoMeTswz7Q0SgeRssy4Yt/SABkPFnwPLeoEutx 99k1nDB9wjb2csRWQTdzSJl52+WhgQzJVDkzcMCmHImehAk87EYgGzTcd2YZyCMy5qBk 6ayERXa2ZV/rKLURWfTy7NkiSEaa67z80VBb+oWbkKc0+Uz0jBA8FWJhVRzL1vqifHs9 WnHbtFAOgz9ExAy5D+cqSLFg2O4M8s34qTQId3EUhPEpf/P5O6D894HH651U3Tp6/sZm mPag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eBtvbRmOjTNlNNYrnr0uoJa+eJPhqmUrF3eWNBDAcyE=; b=rolCdbvwIvmvEb/gZ3eOo0zjcxlnuHTg5nvRiget8xe8hwFHe1cN42exdgDaXRVMGQ rP+UyqDCQfCktA7nP/nFhCv4WHrr7PjVmgogFhSuaQwk3vktDDiW0w1Y6TdahehyPfAm 17KkkgHfVxlVJgFD2qd/NylQ7UDN1QtwGmwGVaroMSioxAdT+9L9GSp2qWPEam9urrLm y5WAXLhmvQSC/hM1ezctW5joZqICf/zrXwsNNRTvSGgcWLGcYAwU2q4hPuvb3s5txjKg 059djvNLsB5w68HQla2ftv+K2l7ibqWps/qbD21brbzmPxtyk+Q6UxFGEP0HbIow2mEq xa2w== X-Gm-Message-State: ACrzQf3YJK9F6b/3uuJ50sRAuUu4JqnKP1yY7hCtfKZcsbQzAK6HROOb aalutZpf2cKRolesbg2D3Tzl/R7bogOrX9M5gIU= X-Received: by 2002:a81:7485:0:b0:369:1a99:d437 with SMTP id p127-20020a817485000000b003691a99d437mr61967710ywc.406.1668079683107; Thu, 10 Nov 2022 03:28:03 -0800 (PST) MIME-Version: 1.0 References: <20221108125254.688234-1-nashuiliang@gmail.com> <63f95025240ce6fa9d9c57ac26875d67dfd2bc71.camel@redhat.com> In-Reply-To: <63f95025240ce6fa9d9c57ac26875d67dfd2bc71.camel@redhat.com> From: Chuang W Date: Thu, 10 Nov 2022 19:27:52 +0800 Message-ID: Subject: Re: [PATCH v1] net: macvlan: Use built-in RCU list checking To: Paolo Abeni Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Nov 10, 2022 at 6:57 PM Paolo Abeni wrote: > > Hello, > > On Tue, 2022-11-08 at 20:52 +0800, Chuang Wang wrote: > > hlist_for_each_entry_rcu() has built-in RCU and lock checking. > > > > Pass cond argument to hlist_for_each_entry_rcu() to silence false > > lockdep warning when CONFIG_PROVE_RCU_LIST is enabled. > > > > Execute as follow: > > > > ip link add link eth0 type macvlan mode source macaddr add > > > > The rtnl_lock is held when macvlan_hash_lookup_source() or > > macvlan_fill_info_macaddr() are called in the non-RCU read side section. > > So, pass lockdep_rtnl_is_held() to silence false lockdep warning. > > > > Signed-off-by: Chuang Wang > > The patch LGTM, but IMHO this should target the -net tree, as it's > addressing an issue bothering people. Sorry, can I sincerely ask if the -net tree is git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git or git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git ? > > Can you please re-submit, specifying the target tree into the subj and > including a suitable Fixes tag? ok, I will add a suitable Fixed tag and resubmit. Thanks. > > Thanks! > > Paolo > >