Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp262793pxx; Thu, 29 Oct 2020 01:53:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsOYOJgs1ldqBtMp9VafsyCzTZfFHzuP/dIbwc+yWAUDEvGXFE/8JuIGYzZivGo+1WmuBE X-Received: by 2002:a50:d805:: with SMTP id o5mr2896807edj.142.1603961624473; Thu, 29 Oct 2020 01:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603961624; cv=none; d=google.com; s=arc-20160816; b=XitLKQHT+5IcCkQ8BbWDtcfzA/8aquzxGp8au1WxJhorx6OP46v6IWWS3U8XMHFpUc Pg0HHe63DK6zsZKPqMDTWEgcEA/HUWjOFeL1W8FJNpX/+dfFJ2PGQQM+LD15hG6sch7C ndqn7pAkov/vTOGdLQ8U2EWBkUYQsjVs8pEY8OktU/dt9iJwnKEdXA0xTo0HjxkWooi9 o3bsOkFxsNPgJcKmTVqxTuLr3Wfb8Vkizoxy8ohtIRoHq4bw4lHrSn6jFOZoEXyQBNCj bWnO3dSevNh+RzsSFgavDTeg1XW4CDYTxUN6MKHQ2FS5jv7DETticOFV2e6pNH/B0xVR etrQ== 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=wjoE+tzypCEtS7yiBCk3OWZo4ySiRdknqbsS3rd6Koo=; b=UR+cx9GhT3pLQ7TTtRO3z+hT/nbRx0XEnuuEw0fAFSX3q+9SK+dEkbKXH8NrGDp0KQ TsVuSp2PmhFGfwmcjGGtavk6hQURk+/9rg796J1AtovH8o2i/CgtHGYNlEanAORp9tc5 zJS4YTtSu/Eg3w17zn6kXWn7sQT+FDAqANTn8CQn6xXq1fy0KEm1LnyPS7R0EMoDAfAy ld/NpbD85M1M7pp+SZJU9aurhDTfb6m+hrXPomWvAXmYg5FerWDPAIAYglocekG6iP1L ZHm25jkCa51I2fuEas/M/1TmPz8D4JjuZn4AV18yFo9cLk4TI4xJCbM3NYH4ibkYghy+ 0XOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UA74odV1; 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 qq8si834019ejb.359.2020.10.29.01.53.22; Thu, 29 Oct 2020 01:53:44 -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=UA74odV1; 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 S1729067AbgJ2CDr (ORCPT + 99 others); Wed, 28 Oct 2020 22:03:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726394AbgJ1VsC (ORCPT ); Wed, 28 Oct 2020 17:48:02 -0400 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4731C0613CF; Wed, 28 Oct 2020 14:48:02 -0700 (PDT) Received: by mail-il1-x141.google.com with SMTP id f16so1035472ilr.0; Wed, 28 Oct 2020 14:48:02 -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=wjoE+tzypCEtS7yiBCk3OWZo4ySiRdknqbsS3rd6Koo=; b=UA74odV1u8y9zCYz8HDLWk1kqif5HPQIVEIyAElhXPzDJj9YaPWe4yr54HQr9E6Fv0 J3c0cYVoGqVIJQ2R3Vxq/kN5+/VreCwqrOqFohd3rJmmCoOB9cP/f+m2yybD7Flz9JBT xIElODi0UXPVftikztKD4fWKvoYbOcM7v87wa0hKc6dLfjZErPRogYrzJBf6LaPVr3L5 PF3zHCe7JLLdHImOH7wrMxQFripMSw3h5auobKKdB3FmQoddNeKBE7kyEi4i463AYlLy lgllkUyQePNsGRkQrKicWTWP+tJLU6J6YE93Ueji/PTnjFN8u/PxH5QvE1iu6jpZRQRh QU6g== 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=wjoE+tzypCEtS7yiBCk3OWZo4ySiRdknqbsS3rd6Koo=; b=XbV0grSU3y14vWqJdIE1A7aXnBz3FBP03C1JNugsnKd8vZoRZwZtxMjR1rFisO0QWv DG5Q+TdV1svW6oDWTZbteoguesh3zsoQkrfBpf/deAedEcVqZJfDip1+WEbHulkNeQK2 GVIVIcbnh+l+EtTBNjOJG81jipyvTaz5J4pbmaW+36n99UiG8ElcFOBQ4tMIQRuriKcz uBB1Mra+rHs/puvIMcF2YQoVUs7TATZs4rAbKm1GastlW7c8IXAqe6jsyVCi4wzxT2Fh k0UFNhATijk6lUCp+DAtqG/m0eq96BT1+fgqf3FjBmG9rKytk3PuNCpJ05zNrPAuHrAA +UjA== X-Gm-Message-State: AOAM533hOYKcKnyE0qM737dz0n6F4KSIpPG4qGcIUHo7cXbc5/TAfZK1 sXgQlGkc/3tSxqNb7NMnKgUbKLzl/tvx1HKrRzCtIR2X5rk= X-Received: by 2002:a05:6e02:ea8:: with SMTP id u8mr132042ilj.305.1603907261705; Wed, 28 Oct 2020 10:47:41 -0700 (PDT) MIME-Version: 1.0 References: <1599562954-87257-1-git-send-email-linyunsheng@huawei.com> <830f85b5-ef29-c68e-c982-de20ac880bd9@huawei.com> In-Reply-To: From: Cong Wang Date: Wed, 28 Oct 2020 10:47:30 -0700 Message-ID: Subject: Re: [PATCH v2 net] net: sch_generic: aviod concurrent reset and enqueue op for lockless qdisc To: "Pai, Vishwanath" Cc: Yunsheng Lin , "Hunt, Joshua" , Jamal Hadi Salim , Jiri Pirko , David Miller , Jakub Kicinski , Linux Kernel Network Developers , LKML , "linuxarm@huawei.com" , John Fastabend , Eric Dumazet Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 28, 2020 at 8:37 AM Pai, Vishwanath wrote: > Hi, > > We noticed some problems when testing the latest 5.4 LTS kernel and traced it > back to this commit using git bisect. When running our tests the machine stops > responding to all traffic and the only way to recover is a reboot. I do not see > a stack trace on the console. Do you mean the machine is still running fine just the network is down? If so, can you dump your tc config with stats when the problem is happening? (You can use `tc -s -d qd show ...`.) > > This can be reproduced using the packetdrill test below, it should be run a > few times or in a loop. You should hit this issue within a few tries but > sometimes might take up to 15-20 tries. ... > I can reproduce the issue easily on v5.4.68, and after reverting this commit it > does not happen anymore. This is odd. The patch in this thread touches netdev reset path, if packetdrill is the only thing you use to trigger the bug (that is netdev is always active), I can not connect them. Thanks.