Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1969707rwb; Wed, 26 Jul 2023 23:24:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlH0Iyg4Cg7hbKprh3M71gnIzX4/ZDrUHqpU55Hy6wTYrNUyGoxu/gbOmJur/pZx88q4GP8A X-Received: by 2002:a05:6a20:9697:b0:133:ec83:598 with SMTP id hp23-20020a056a20969700b00133ec830598mr3182613pzc.28.1690439064507; Wed, 26 Jul 2023 23:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690439064; cv=none; d=google.com; s=arc-20160816; b=kWFMqwsPfwXKoMSeXDuRjmGvk3b/9KWn+KSUjPmKYoH68sCbeG8U/2tURKtgl7WV3G anjimaUi33CxbcWd5N/3LWb16RdLejmfKLfawbIwjRLbeZWTP+6hGcJHekdBk6+v5TsF yzMlTa2HyjToBpRu9tbPwO1vArxwe6PPo1w2mY3bOiBb/lq7doR4+GicPTYXnW8uahDW WjrMysLLsheYWevreNko2qIuiuNmUnunLG+L44jfTfHHp8QM8YyZQwH4bIIYcHhj0kDd Hb0fHBK2puzimZjUSO4DKcSl85X/EQjAExieTsHhsCN2NzL3quXbCpbvp1nqp2rj2Pfv 6ciQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ve2/RBBTW7RqZyReIJBBsvKf8mEfnbNgFMEQ8tDFOvY=; fh=qEA0UX2ygy2UGfbwsKc+ZncWjwjpvWCsAdqT2JNwJds=; b=pAoZ4U46+bXws4hdRJediEUvPS3oOjeWybzAx1I5al75Hddg3uW4RSZCcjbdQPofAK tnGxrZkH2AAmho3yrD26e4px4oM6VZ7ZKBhhWfbtS0rLJuUEQuogBfZzHB3uCcEtcDbm jEoCtRST4CROPeE1V2rJknlayJ87z2TpYBbZHVXLRG7uaoPW/o10lUP8qnanezP2+j9f 7CumVN7ESu+BubxqhyxK9ixWIn6ojBBUSt0ubed6DTfsSXJiTjV0UqUrmAy7C24N+x+L YKmc4Z4PYTjcMVBq78EzkFmGhpbJQ4haGabBjcPMXg6S9mJ8Tk/+64PStV/eB+a9WIzG 12fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bo2LTR56; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b17-20020a056a000cd100b006815bf78633si860738pfv.315.2023.07.26.23.24.12; Wed, 26 Jul 2023 23:24:24 -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=@kernel.org header.s=k20201202 header.b=bo2LTR56; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232191AbjG0Fod (ORCPT + 99 others); Thu, 27 Jul 2023 01:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232143AbjG0FoK (ORCPT ); Thu, 27 Jul 2023 01:44:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C156844B4 for ; Wed, 26 Jul 2023 22:42:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B40E161D48 for ; Thu, 27 Jul 2023 05:41:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 538D0C433C8; Thu, 27 Jul 2023 05:41:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690436510; bh=tRQeUvtOWTVEnYHK/93U8TcFdC1blB4d+lsY7E7p0Ec=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bo2LTR56mu0jXWM+3RWJdC5SGW9+sY+RU8Ft0YUjDKUTx4zvXPFIu30w4m1VFz8K3 fwoNR2WbMaPJI5qLbB/ivk+nrvO+ZVFhk2JRIyUDKnZNVIQ9tONHm5UjgLOUVkqiUa hdLDT505vAYhyrZlJ/k83tny8+KEAKBBzxMCTZim32wegoxxvb4zLxs2mV1NGszDj3 cZI6dnGRNDZVBp14AaDSbJ/yWgWpMDOjhNSauVl4Xerxs6UNSf6zMxFvBFhPu0PNgC +dJ8D1t7EHKpNIqTyALF4dTETlKqI4YtXR5zZ95+wEhPShP8ixeDAm5ZAeqlvX9fpr By+qlOs9AFScQ== Date: Thu, 27 Jul 2023 08:41:45 +0300 From: Leon Romanovsky To: Martin KaFai Lau Cc: Jakub Kicinski , Daniel Borkmann , 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 Subject: Re: [syzbot] [bpf?] WARNING: ODEBUG bug in tcx_uninstall Message-ID: <20230727054145.GY11388@unreal> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1f91fe12-f9ff-06c8-4a5b-52dc21e6df05@linux.dev> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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 > > > > > > ???????? tcx_entry_free(entry); > > > ? } > > > > > > > >