Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp324761pxa; Wed, 5 Aug 2020 02:03:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyzAhsoGVMOP2fhRvkKSjOal3+wOF4N76fENUP7HAeN9j8C7rORTcEtw8Ic037ullaRgev X-Received: by 2002:a50:d697:: with SMTP id r23mr1781950edi.223.1596618201877; Wed, 05 Aug 2020 02:03:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596618201; cv=none; d=google.com; s=arc-20160816; b=mTE4S4w1GjDHpIpxQXOGOVVvWyg6cOhaEnORjIlkTqizOI2wiTxnBPlXlYPIaYpMUc vPLk1ShufqOZ6MKW8nyewfHNsuV5by1vHubeCqMMvrYMcgarhHMFR7CP/FaBmUl6bGRV DSD2qN8UeQeHil98vkTSjPJL4isZTU3KY/qgL3rsyphpzma4LpgaTmFOmSicXZkTfkZA 0ETQ+8bxoCWo107BsB/GlLmpI5Pkq+E5GvbHxf96meanQqIaO2HhQ0O9QUXiZDUguf3B j8t/Wei/gxoUBxFYCh8/yX1JmKdCdFEKlqcBqHrXMN60guGmlxBqoJa5HPsKsGpKCJmg hnbg== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=ZSDQ7oldb8iII0VqxQ1pyiHwiNqGB3oUlAZtt9Ry2qQ=; b=mmyachhAG7upibzfhrkuFuCkPlmoKWQYnhFnT0vwak5QYjJV74A/S1el4z9TJJt4HA uNBF56xLAySPq6IjQG3LrUClNaABdB1bQR4qgqpP2NYc3jyuhkNzmhHKsSHKpAwTaQSt om8iAmBjO5ydyqAa8fd3pU/U4ghXT9ozDD6E6HaNtyjOfihata6pSDAw6TA9mFjRTm+V kwkjMQiwX+bGBjpn/VuQlcrtTpem8DJv1S8S9lTn9aRkC4T1nrbSwLrsf3xd+bxuud3E /CdINTgvWZFDhSMwJuHK3KOs6jtciHVPXit6bONceFkqn1ajWBDHujbter0o0v3rHs/x r9/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="eB/tWOJX"; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e26si1063953edv.66.2020.08.05.02.02.58; Wed, 05 Aug 2020 02:03:21 -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=@redhat.com header.s=mimecast20190719 header.b="eB/tWOJX"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726524AbgHEJAq (ORCPT + 99 others); Wed, 5 Aug 2020 05:00:46 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:24791 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726191AbgHEJAp (ORCPT ); Wed, 5 Aug 2020 05:00:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596618044; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZSDQ7oldb8iII0VqxQ1pyiHwiNqGB3oUlAZtt9Ry2qQ=; b=eB/tWOJXn9+yW/7ASDTI3Blngt0tDCqL+WTXNuPvOCjFEu1OP6Q97Unp0NtIz87oUrMHR+ 1qYF2LX1rKdMEE4ZVr3izqWbxmaGMDbKpoXSFRQSQBf6hli5s6Abu+4D1WaeYWEdo5PQhJ t7WM7yIHnag8EAtxrqQMmfja4xl3jTQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-276-iK3VVNtWMhWCex7zMWHdBg-1; Wed, 05 Aug 2020 05:00:43 -0400 X-MC-Unique: iK3VVNtWMhWCex7zMWHdBg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 610091005504; Wed, 5 Aug 2020 09:00:41 +0000 (UTC) Received: from ovpn-114-157.ams2.redhat.com (ovpn-114-157.ams2.redhat.com [10.36.114.157]) by smtp.corp.redhat.com (Postfix) with ESMTP id D8D0771797; Wed, 5 Aug 2020 09:00:38 +0000 (UTC) Message-ID: <62165f6af630ec134713a7fa2c136ec60a67d2f2.camel@redhat.com> Subject: Re: [PATCH] net: openvswitch: silence suspicious RCU usage warning From: Paolo Abeni To: xiangxia.m.yue@gmail.com, davem@davemloft.net, echaudro@redhat.com, kuba@kernel.org, pshelar@ovn.org, syzkaller-bugs@googlegroups.com Cc: dev@openvswitch.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Date: Wed, 05 Aug 2020 11:00:37 +0200 In-Reply-To: <20200805071911.64101-1-xiangxia.m.yue@gmail.com> References: <20200805071911.64101-1-xiangxia.m.yue@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.4 (3.36.4-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-08-05 at 15:19 +0800, xiangxia.m.yue@gmail.com wrote: > From: Tonghao Zhang > > ovs_flow_tbl_destroy always is called from RCU callback > or error path. It is no need to check if rcu_read_lock > or lockdep_ovsl_is_held was held. > > ovs_dp_cmd_fill_info always is called with ovs_mutex, > So use the rcu_dereference_ovsl instead of rcu_dereference > in ovs_flow_tbl_masks_cache_size. > > Fixes: 9bf24f594c6a ("net: openvswitch: make masks cache size configurable") > Cc: Eelco Chaudron > Reported-by: syzbot+c0eb9e7cdde04e4eb4be@syzkaller.appspotmail.com > Reported-by: syzbot+f612c02823acb02ff9bc@syzkaller.appspotmail.com > Signed-off-by: Tonghao Zhang Acked-by: Paolo Abeni