Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp537567rwb; Thu, 27 Jul 2023 17:25:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlHN6tz/S5qr5fwrfSSHu7SLokUSUcyBE1tBVuNRAiPPqfI7taB23cRzwOBnIDA9cBSmg+le X-Received: by 2002:a17:90a:8c0e:b0:262:fbb0:8737 with SMTP id a14-20020a17090a8c0e00b00262fbb08737mr152710pjo.33.1690503939178; Thu, 27 Jul 2023 17:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690503939; cv=none; d=google.com; s=arc-20160816; b=MNNGnxvnO1DjLnYqKZcxE7f6uG8vuMQaA8Q0/nTalFzeDVxIbvto/KUpRXksvy1S7/ 0A1XmcDK4bm+526ymxNlPmUl39YVv9uHVrRzgRdCAq5NF/UamAB97BJZhzPL4ikinyuv k06A9xWrCoEW4gpLmLrIEGYoi+PFoKvwUWEyrW3YJ3ZW3fJxIQKE3WPJILHqYL1UM6Xx LEk8PTGgpkTXXTk4cxPbA29r8eZR6/ef8nbD3FpNUqMDQe/I97o9Z2j5d7sy0s80iKEn dSL9cW/a2INSybw4tuOX75qxUhsvFzuOaCZtJGULRy8DfmlbdG4OWi/M37DOre6TliNV z2bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=JNLi5VZ5u15SeU34PKfgp04ZTBcnUk6/4EC6ZxqAHzc=; fh=EKCU2yfWwyLAuFkrYRtUnRFPrNo+Z14emNsCTUuP4aU=; b=yRQdifXeXXvyhQgzWFd2+K34q+5tnMBQZEgqiEyv+jsKj0uujytiBtqZ1mfy7/aGfF jeSSWU/nr4pH8C7Ett9cdd55lfUo0BZVVKHpzXCenxpGk2rQNx0ozXptU1YpX2hrwIWZ 7HNPTlqWGUjqUYsrf3cIqFxupxT36qc68UuWqbpsu/Khj3t8AYj2+zRI7G8WZCPvK4hO BROuG+Ms3/iVMhZ2AopUjU7ElpinF058urPSURPaFHN/bI92R317xUamgaNBDL3A8i7g T5ESy0OKu+IWdZeMI4r5MWsBDMBU/yplZLhOyAh7x12+/nzkvCt3IB3DGgXrOIzVCQaV cUfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@iogearbox.net header.s=default2302 header.b=eEw+qP25; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=iogearbox.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x3-20020a17090a9dc300b00263f3d759cdsi2070043pjv.78.2023.07.27.17.25.26; Thu, 27 Jul 2023 17:25:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@iogearbox.net header.s=default2302 header.b=eEw+qP25; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=iogearbox.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229521AbjG0Xoq (ORCPT + 99 others); Thu, 27 Jul 2023 19:44:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbjG0Xop (ORCPT ); Thu, 27 Jul 2023 19:44:45 -0400 Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F6142D70; Thu, 27 Jul 2023 16:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=iogearbox.net; s=default2302; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=JNLi5VZ5u15SeU34PKfgp04ZTBcnUk6/4EC6ZxqAHzc=; b=eEw+qP2598e8KSb8q42vSBNegh xmYll+6xQEIYKdgIkUmH5rfWzJBFpjJzGNIrwfooz6Fh2eC+YJTP8brTId7RqhylddO8+GQOrmI4t I5rXGW9jRx5DALL19CIyBKH6nnuwc5rJfWKHwgczAkOvqZA77mgBtuY9MtHF6qBrr627jVaJTfhmn fIXorj6wXmS6+bPTaUl1n64o4P4vw7kwpcSsatgzW+0N/MkCwRDqhvwZqIOHkpHDl6sxyapa0Mt8q 5bNbK3+3CRNHvzjCYMhp29iZ2s1iVTofx4fOwgTTcOr9OliR66Olar1vQj+87+a7kKXQGPFBDy9y7 c0QZtysg==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www62.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qPAer-000BRI-3A; Fri, 28 Jul 2023 01:44:37 +0200 Received: from [14.202.107.205] (helo=192-168-1-115.tpgi.com.au) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qPAeq-000JSA-32; Fri, 28 Jul 2023 01:44:36 +0200 Subject: Re: [syzbot] [bpf?] WARNING: ODEBUG bug in tcx_uninstall To: Leon Romanovsky , Martin KaFai Lau Cc: Jakub Kicinski , syzbot , andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, haoluo@google.com, john.fastabend@gmail.com, jolsa@kernel.org, kpsingh@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, sdf@google.com, song@kernel.org, syzkaller-bugs@googlegroups.com, yhs@fb.com, Gal Pressman References: <000000000000ee69e80600ec7cc7@google.com> <91396dc0-23e4-6c81-f8d8-f6427eaa52b0@iogearbox.net> <20230726071254.GA1380402@unreal> <20230726082312.1600053e@kernel.org> <20230726170133.GX11388@unreal> <896cbaf8-c23d-e51a-6f5e-1e6d0383aed0@linux.dev> <1f91fe12-f9ff-06c8-4a5b-52dc21e6df05@linux.dev> <20230727054145.GY11388@unreal> From: Daniel Borkmann Message-ID: Date: Fri, 28 Jul 2023 01:44:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20230727054145.GY11388@unreal> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.8/26982/Thu Jul 27 09:29:43 2023) X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/27/23 7:41 AM, Leon Romanovsky wrote: > On Wed, Jul 26, 2023 at 04:33:40PM -0700, Martin KaFai Lau wrote: >> On 7/26/23 11:16 AM, Martin KaFai Lau wrote: >>> On 7/26/23 10:01 AM, Leon Romanovsky wrote: >>>> On Wed, Jul 26, 2023 at 08:23:12AM -0700, Jakub Kicinski wrote: >>>>> On Wed, 26 Jul 2023 10:12:54 +0300 Leon Romanovsky wrote: >>>>>>> Thanks, I'll take a look this evening. >>>>>> >>>>>> Did anybody post a fix for that? >>>>>> >>>>>> We are experiencing the following kernel panic in netdev commit >>>>>> b57e0d48b300 (net-next/main) Merge branch '100GbE' of >>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue >>>>> >>>>> Not that I know, looks like this is with Daniel's previous fix already >>>>> present, and syzbot is hitting it, too :( >>>> >>>> My naive workaround which restored our regression runs is: >>>> >>>> diff --git a/kernel/bpf/tcx.c b/kernel/bpf/tcx.c >>>> index 69a272712b29..10c9ab830702 100644 >>>> --- a/kernel/bpf/tcx.c >>>> +++ b/kernel/bpf/tcx.c >>>> @@ -111,6 +111,7 @@ void tcx_uninstall(struct net_device *dev, bool ingress) >>>>                          bpf_prog_put(tuple.prog); >>>>                  tcx_skeys_dec(ingress); >>>>          } >>>> -       WARN_ON_ONCE(tcx_entry(entry)->miniq_active); >>>> +       tcx_miniq_set_active(entry, false); >>> >>> Thanks for the report. I will look into it. >> >> I don't see how that may be triggered for now after Daniel's recent fix in >> commit dc644b540a2d ("tcx: Fix splat in ingress_destroy upon >> tcx_entry_free"). > > Both our regression and syzbot have this fix in the trees. > >> Do you have a small reproducible case? Thanks. > > Unfortunately no. Thanks for the report, we found the root cause and will send a fix in the next day or two. Best, Daniel