Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp952183rdb; Sun, 1 Oct 2023 12:35:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrFB48HmKumAF7pxeWqELXCOSNGa3qmoqNU/vED5PwVUp7MNTcZTZp6NNxz46yqceMy4AE X-Received: by 2002:a05:6a00:24c5:b0:68f:dcc1:4bef with SMTP id d5-20020a056a0024c500b0068fdcc14befmr13952083pfv.7.1696188951428; Sun, 01 Oct 2023 12:35:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696188951; cv=none; d=google.com; s=arc-20160816; b=Hm+tRz+zLoMwrngmQl+7SmDBB2SfQa3WBP/lgrQhHDNNy1tcK17EvwsFMikzidZkhN EiYMVcWzEJswpIPS3t4YosVkkqdH2Oj9FdspCIWCBSn5jS/kp2s0aO7z+BOXRt5RfEj4 pclogOnCyK+iVpy7twlFRfWlDFiaDFpRMa7y9ifl9HF7o+cxKP2vvXwOPeDLGGdrH3ua ANvXdpNgqPfK3I9HI0Emm7rXnDy5EVld9/0nm39Vzr0DUod0fE0GLl9LhA6FG3yX6Fq0 qefJW+r2YmprWXTjebCHJeQusAsP3Umx845aKXbIqy/8nm5s9KRW02+Wc6yWu/o8rBax rpww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0DcVEQGg6qZGoqogLhWFLoEzZgtq6V1bFW3xrc404XE=; fh=/rQwKyZm/lJL7ynmYor3H6SADdImTJujCze9hjsuG2c=; b=cojLGVjl563vy4V20DenwXpblLOqaj+hERnlsliqlQIhFenMsMYLF44PfGpAtsSfB2 /lEaQQ/CjIh9toP3ccUxPZRX4lMfyzfoa/Aa9R7AhcKQnU1j07pblAdfhTlEkhGEDG8V NdsZmDv3YQPXyZfEbK2zXcVuFofbUiyLBXlw9Ex+FRws68LFFXmPAsysXg1ZNYnAEaZX aJpCk/h1PT5l+6nw3M5E4F+q4DU/A7aDigbCOWC6Gypxfd4Trin55lDLVl2YioR2rMlq mfPuuWowSX0splLRsZz1OgfmpfWPfccfw7uVYyhvfCSNKxrwbQXh7XRbnusiRr8jVw1t KRwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OKxXp+aI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ca6-20020a056a00418600b0068fb4842092si25631095pfb.183.2023.10.01.12.35.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 12:35:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OKxXp+aI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 53EAD801CB5B; Sun, 1 Oct 2023 11:40:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235278AbjJASco (ORCPT + 99 others); Sun, 1 Oct 2023 14:32:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjJAScn (ORCPT ); Sun, 1 Oct 2023 14:32:43 -0400 Received: from mail-vk1-xa2e.google.com (mail-vk1-xa2e.google.com [IPv6:2607:f8b0:4864:20::a2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04B87BC; Sun, 1 Oct 2023 11:32:41 -0700 (PDT) Received: by mail-vk1-xa2e.google.com with SMTP id 71dfb90a1353d-493545b4eaeso6032640e0c.0; Sun, 01 Oct 2023 11:32:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696185160; x=1696789960; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0DcVEQGg6qZGoqogLhWFLoEzZgtq6V1bFW3xrc404XE=; b=OKxXp+aI7bPaxFYMXep40QANYDKg6/WFOnMg0/gdFwSGXj9ffMH8aF5BHsnP/xEyea qzgNY0WcIygcGFqxZkUDjCUs0/AaawfgetL3QjBJcwKNYuzNuGsvmXg2oUcx2RqS855M zGHLS43AoY51uti/SrX75+r9vd3Jo9VM6OWDhT5No2Ivb1GSH3w7dAevgHIt15D6R0uF mSPFhbmuMXriyQR3miSFUEoK7v2KpxNt+gwnbdrB47nQIYisb0z0PywjzqbV/5d3ZZWD L0ILnwBz+0lBtS1gj8GbZbUH76NBlcpUuLOlF5FGS9Io7rYiG7qD0ldO60O4tmW7ahrf CZaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696185160; x=1696789960; h=content-transfer-encoding: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=0DcVEQGg6qZGoqogLhWFLoEzZgtq6V1bFW3xrc404XE=; b=HYpOu2DiVdobF/8GJ7zfIXGONMxYAjTsoUCOi/Av3ecEgSUj7YKhLwAgIU4sJTo5IA Qp8VH5Dx4QvN7Ag1tjNFUQLXLfsEBjwp3EYE84FAgfwpP8cTGHaCdxZJS3ehJdfTDCgk tA+W1UNmi47JY0QFx6UYGn0j8bWuEsew7rBL+u3MgMWvdmhSp7u7eamskW7T5mqKxSi9 Vc3budir+ZKPpWomneisgz+omTOqD02tzyB5V5xaBFqWTE2OAy2bT2yNHGye3+8VU510 FGsGRCCj8aSfRE8L1Vih8/PP1jr1jIiKgs8QsVc0mmddVMLMNfknHKaL8Q/ANxzVLiRU 708Q== X-Gm-Message-State: AOJu0Yx0ymqiXgRjG4rrJ1i86o34BoS1JWSvVFe6sc1KXJru9vz1PDTy L09FjWsCwI53EHYpvx10xEWACUZu8hReOgi7qmA= X-Received: by 2002:a1f:4c44:0:b0:49a:317c:ba5e with SMTP id z65-20020a1f4c44000000b0049a317cba5emr5791830vka.8.1696185159992; Sun, 01 Oct 2023 11:32:39 -0700 (PDT) MIME-Version: 1.0 References: <20230926182625.72475-1-dg573847474@gmail.com> In-Reply-To: <20230926182625.72475-1-dg573847474@gmail.com> From: Cong Wang Date: Sun, 1 Oct 2023 11:32:28 -0700 Message-ID: Subject: Re: [PATCH] net/sched: use spin_lock_bh() on &gact->tcf_lock To: Chengfeng Ye Cc: jhs@mojatatu.com, jiri@resnulli.us, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 01 Oct 2023 11:40:10 -0700 (PDT) On Tue, Sep 26, 2023 at 11:27=E2=80=AFAM Chengfeng Ye wrote: > > I find tcf_gate_act() acquires &gact->tcf_lock without disable > bh explicitly, as gact->tcf_lock is acquired inside timer under > softirq context, if tcf_gate_act() is not called with bh disable > by default or under softirq context(which I am not sure as I cannot > find corresponding documentation), then it could be the following > deadlocks. Did you find this during code review or did you see a real lockdep splat? If the latter, please include the full lockdep log. Thanks.