Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp170390pxv; Wed, 30 Jun 2021 02:50:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxAUL/UY3dRwWBg6/PfpH4zeime0uBcJbTwN+Zw3ntBiHwzZ7w9jwOsKX57wjkf2sZkZZI X-Received: by 2002:a05:6602:188:: with SMTP id m8mr7107247ioo.201.1625046646003; Wed, 30 Jun 2021 02:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625046645; cv=none; d=google.com; s=arc-20160816; b=hRl2Ry26sHlzgbkqcxnY9OVe9Phn2DXx5T3de6WqsZz4Sf9P6oAej2A/2/0s5S/99F 3J9ZLTQsX6SjKMs6OWNk+GZ6EgI6bydXRhwk26uuYHTIhqTaVeQ7GFH6OrXwvIVJQpyb mLEDLwNUhcxghzBMRo44x7q7yO0tOrGtM30TAYleOJB0qh/Cnc/6d21yRP/pKNwTRCuI 1BwPL4q/zz1kDW/niHeUes8SV1G3mafm9Nm8ziKt1U+5//D8PzY4W+mx+lot/C5+vGeC oH/fMsH8Esx7qk0GzvdAgDrhiOLsR7miJgI5LSIZClNpxhEwIrs8QZGrhnLA9IT1hUVD Is2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=hWnMEVQZV4KDjjAmE+8+oYpYNF2n+4Cg9qWG/U2p4eE=; b=lsInwJcLUdBlZpy6p0fc1e6kfdz9AQ60oayJUwfbdUs1yik2LqmS/P1qUSAoJFqBbo BxnE3HRJYaE8F5YbPgQ0Sg+CnAFFWL8jzZKbZaG/0sO580Jli5XS5HCT8xsxCz4LDmv9 x3lNhuPYSVQWC0rGhh03NOzuFRh+qHFa+MlNo02DjttSlwJ5AGeg0SyuJZMGX5Y7rNes 99WPUTfgyYoUXSJD+ZSXQsVs+WklzuJkx8W6GLSBXeccPsto+TSc0Tl4yFbq176FsN/W I7sSF5dOOEsiAh4mpBnz+FrV0eQSJ2vzCZmt4VG9NP2QDAMyKCaiCIT0mGDyCchPz85/ x33A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m17si20186657ili.68.2021.06.30.02.50.32; Wed, 30 Jun 2021 02:50:45 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233928AbhF3JwZ (ORCPT + 99 others); Wed, 30 Jun 2021 05:52:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233541AbhF3JwY (ORCPT ); Wed, 30 Jun 2021 05:52:24 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:12e:520::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FBB4C061756; Wed, 30 Jun 2021 02:49:56 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1lyWqr-0008HK-CP; Wed, 30 Jun 2021 11:49:49 +0200 Date: Wed, 30 Jun 2021 11:49:49 +0200 From: Florian Westphal To: Vasily Averin Cc: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Taehee Yoo , Julian Anastasov , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH NETFILTER] netfilter: nfnetlink: suspicious RCU usage in ctnetlink_dump_helpinfo Message-ID: <20210630094949.GA18022@breakpoint.cc> References: <65205a04-f1a3-9901-f6b7-eab8f482f37f@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <65205a04-f1a3-9901-f6b7-eab8f482f37f@virtuozzo.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vasily Averin wrote: > Two patches listed below removed ctnetlink_dump_helpinfo call from under > rcu_read_lock. Now its rcu_dereference generates following warning: > ============================= > WARNING: suspicious RCU usage > 5.13.0+ #5 Not tainted > ----------------------------- > net/netfilter/nf_conntrack_netlink.c:221 suspicious rcu_dereference_check() usage! Reviewed-by: Florian Westphal