Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2830969ybz; Sun, 19 Apr 2020 10:40:04 -0700 (PDT) X-Google-Smtp-Source: APiQypLQxtrSj1U09bXdHuZp/6mL/A20P4zygic2j6wRQQK6CQhtVCcoRNnYNmCPs/fNjpOeug91 X-Received: by 2002:a17:906:359b:: with SMTP id o27mr12720578ejb.282.1587318004109; Sun, 19 Apr 2020 10:40:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587318004; cv=none; d=google.com; s=arc-20160816; b=lT/PEEZJKVHnOyfcAqCHimTiRk+/1WfOsu1nBsuanEivsrLhyRUIPNctS5M+pcswiy qG4cU22VY51P59rB8xdwlPypRBe7WqjQfgteKWgWfgmVm8m7lT7Xs0kegzudKbU6sQzZ 8wo5Cbtsz4VH78Bz12aZjZQ1G31/jzp5YS3vzW6+55QEjNSsvyFILXaXVlte9CJotZnc NrzZiohNto9SeGqpmnveUVXh8flNfPlsuOxn9Zs3SBSgTieibUxZZ7y7LAHZvPTwXUQf tMHld7qUL9bBn51IVlb80sRdElult1f8g8jG+Px1IgXcHgrk/khSeMZkCiymmzbdxxCG +DBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/TqDWfB8cUBXogmz2+ksGks4wWKUG39YBeLr7SZP+ks=; b=lunrpDuCNN1BevP3OE86qIZMZm4tlp5D+n/HqpWwcg/lulKMXckzS185TVGG6D7Vtc izZ1oKZtXRVzYpwOM3KlfP9PbpHRcIjAR5+rMH+arES3g9BHD36hmFFfCNWHu3khDYYa RtloyQdtI78+Io7Drr7+6dO+u7efNobh9J5BJk9OG9r6f4kZjzPeCLS/Hq6QsvDnWZuC 7M1HM1PGGu2XtbGP/PuTPgt9O3i2CemY1G6tauHKnyuEVqpDQydh5EH235UX0i3xMESW uHpaM9dke0Zo4jghwFmrJ3MAbK7DIc8c5M+E30Gopb1Vv4/3TVAIpwlVsXu8kr2Yzwh0 XXzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pHtaVDFt; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x99si15852904ede.439.2020.04.19.10.39.41; Sun, 19 Apr 2020 10:40:04 -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=@gmail.com header.s=20161025 header.b=pHtaVDFt; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726385AbgDSRcn (ORCPT + 99 others); Sun, 19 Apr 2020 13:32:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725969AbgDSRcm (ORCPT ); Sun, 19 Apr 2020 13:32:42 -0400 Received: from mail-vk1-xa43.google.com (mail-vk1-xa43.google.com [IPv6:2607:f8b0:4864:20::a43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92187C061A0C; Sun, 19 Apr 2020 10:32:42 -0700 (PDT) Received: by mail-vk1-xa43.google.com with SMTP id x9so276973vkd.4; Sun, 19 Apr 2020 10:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/TqDWfB8cUBXogmz2+ksGks4wWKUG39YBeLr7SZP+ks=; b=pHtaVDFtydBeKDed2OkXR74O6lwGCWGCPOpMyFaMnoTbYzVb9LOxEELnsnyU5gNI7n vxJu8pj/jiyo0ihToGPpMbeH6qhYy0NuPfwppmILjJs/7T6CiG70FNEOnxce9+aN2Zoe ZZd7XDyWTYT28pPN8Y6k5IC2kPaJCnbPWweKSPzVEgw3ueiqTV22ZXdNgpX7w9Qdl7/w NrtR55HklfXY8sd8wskRbN8C9nmfTVhxpxubKATjpDH9iAJMJAeONSmGD9aI+UaHV0sc rXP5BOuf6YyW1DGimSjbtJPNp9RmIPuYbfbCzIoSuxtnPviC1OBfip2GpgGMeLLbTItv A9Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/TqDWfB8cUBXogmz2+ksGks4wWKUG39YBeLr7SZP+ks=; b=jxYj+to1ec5nnd5KYDPfWHcwc7I9w31QF5YA4WP7bbGc1B3hNv58IgezrLQXRXQ7HQ O21IBNmT8EItiw8hdnse1r6pj9zAexuL9QwXtP+Z+fKGDCZOSLMmx9kMJrgCT57zDgbo lB+PbZgfDU8OKllftNZ0NBikC8tut9r/MuBjiX4ZVD4/rzPOhHVAw1d55N33Seau208c VbR2y1p+W40ckD53THc0eT8/zo9/EETDHfzsES+TByeVF37lhXeuvm8MqwvYU9ahjlHC FzZVpPg0K3b9fqpZYOI+nGTkCrcR2uo9kEv/W5shBf1EmqCRcuuNmoXmhbvrKUlIXt8+ lBqA== X-Gm-Message-State: AGi0PuZWuou+T92MbtajAHeoXMxTR+AHokO+28Kd2OZHfk3+RlKvMK9F 0+8DRu1DpjNIeiei0eiW1B+rCh76JlYeinlXniceTZgS X-Received: by 2002:a1f:9541:: with SMTP id x62mr8357446vkd.82.1587317561712; Sun, 19 Apr 2020 10:32:41 -0700 (PDT) MIME-Version: 1.0 References: <000000000000e642a905a0cbee6e@google.com> <1587063451-54027-1-git-send-email-xiangxia.m.yue@gmail.com> In-Reply-To: <1587063451-54027-1-git-send-email-xiangxia.m.yue@gmail.com> From: Pravin Shelar Date: Sun, 19 Apr 2020 10:32:30 -0700 Message-ID: Subject: Re: [PATCH] net: openvswitch: ovs_ct_exit to be done under ovs_lock To: Tonghao Zhang Cc: syzbot+7ef50afd3a211f879112@syzkaller.appspotmail.com, "David S. Miller" , ovs dev , kuba@kernel.org, LKML , Linux Kernel Network Developers , syzkaller-bugs@googlegroups.com, Yi-Hung Wei Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 19, 2020 at 1:44 AM wrote: > > From: Tonghao Zhang > > syzbot wrote: > | ============================= > | WARNING: suspicious RCU usage > | 5.7.0-rc1+ #45 Not tainted > | ----------------------------- > | net/openvswitch/conntrack.c:1898 RCU-list traversed in non-reader section!! > | > | other info that might help us debug this: > | rcu_scheduler_active = 2, debug_locks = 1 > | ... > | > | stack backtrace: > | Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.0-0-ga698c8995f-prebuilt.qemu.org 04/01/2014 > | Workqueue: netns cleanup_net > | Call Trace: > | ... > | ovs_ct_exit > | ovs_exit_net > | ops_exit_list.isra.7 > | cleanup_net > | process_one_work > | worker_thread > > To avoid that warning, invoke the ovs_ct_exit under ovs_lock and add > lockdep_ovsl_is_held as optional lockdep expression. > > Link: https://lore.kernel.org/lkml/000000000000e642a905a0cbee6e@google.com > Fixes: 11efd5cb04a1 ("openvswitch: Support conntrack zone limit") > Cc: Pravin B Shelar > Cc: Yi-Hung Wei > Reported-by: syzbot+7ef50afd3a211f879112@syzkaller.appspotmail.com > Signed-off-by: Tonghao Zhang Acked-by: Pravin B Shelar Thanks.