Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1439036rwb; Wed, 26 Jul 2023 12:30:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlEzeuqoGw67TVWJ+AvHx/28rD49yv/IzPc8/ImTjkhxYH61oEAedUdh8bU4bq2I+zFyEpJU X-Received: by 2002:a05:6a00:1a0e:b0:668:753a:b150 with SMTP id g14-20020a056a001a0e00b00668753ab150mr2823232pfv.21.1690399842426; Wed, 26 Jul 2023 12:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690399842; cv=none; d=google.com; s=arc-20160816; b=iypMULkaNO9+fhJnuafzWQYUWXKFVmPkMLpksPR4+FYYuCCM/OkMJkdSg/nFYm/Z9I Lcm7A5zf2bU+8o20bFGd+ZfqvV+GddsHYsfb9bnBO5LjRiHsEXI14QBCFN3719TEWFZA lQcG8xAE5POU0ETplfAN0FbVPHYEx8QS4qLhfJB+oHtc4+ISPdb1xP/V0mVd8EjkOs0F pFn1oLnugAeI4gp0eQjEC4/+wiNkhHAbd+QmJpVnNPKMTVBe/icpDhbAeqsmTD4XeGOe QRHFae+cJws+6n/CTnQWutESq6NI+YsIgeGZMr7OCF58T3sAce28YIyPSTfZxsef8Xv7 NucA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:mime-version:date :dkim-signature:message-id; bh=tPEwfOCRbnMBgzOD350ywUVV+S/+4plDOcrL1fOck6o=; fh=pZIk9uh2t+BQzFCtib2r0vWM3vZDC1lvSP2Jz2qFh9g=; b=N4XzfZTgbq0o6u4kH3kZhjPkt2+GYHegONw7EJcnPFYcwIqqjGt/V/iGHC47MyqeKr L7Zqe7JiC/thsEDIs9XM/2IlgvsNPcO3rIiJy7SHwisH+iYQ/txNpezrzOR9/SxS2P+f yfwNHNMmMUDBVbHWVvSsDpTJ24Pq+CPc0NSHkYdLcuxZYOsTq4hnJVROPYb1+bkzxMhx PZsgtTKtQBHlYxdDtZ+4xOUI1gT2TkX/w1DOa4Bogg011oUI6/mvSD0qjVv3NRFCY7Q7 VD3x+dvgwiPco5asxTftvAyJYiDzwvu+761078eORv93RbtvGzf8n2F3uucBDvzAhn0P 0EQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=u7TTINrL; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k13-20020a056a00134d00b0067d2eeacacesi13557587pfu.355.2023.07.26.12.30.28; Wed, 26 Jul 2023 12:30:42 -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=@linux.dev header.s=key1 header.b=u7TTINrL; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230408AbjGZSQf (ORCPT + 99 others); Wed, 26 Jul 2023 14:16:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230245AbjGZSQe (ORCPT ); Wed, 26 Jul 2023 14:16:34 -0400 X-Greylist: delayed 156028 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 26 Jul 2023 11:16:31 PDT Received: from out-13.mta1.migadu.com (out-13.mta1.migadu.com [IPv6:2001:41d0:203:375::d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1C3F2703 for ; Wed, 26 Jul 2023 11:16:31 -0700 (PDT) Message-ID: <896cbaf8-c23d-e51a-6f5e-1e6d0383aed0@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1690395390; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tPEwfOCRbnMBgzOD350ywUVV+S/+4plDOcrL1fOck6o=; b=u7TTINrL0DskF3YYfvOoWKUHJ1f9hxgLrTn2Et6ECWUav5//+y8i/cc/p8qujOxUB3M6ea ssvyTfpD8sZKwfX54BJfnEpFlXRXYgaPsRA6/Inbte9mUZRk6z5Jf91Wh0PLKPDKrMO7sZ zaVgGzJbO7UUZXMrxAixFjL9w+UU7XM= Date: Wed, 26 Jul 2023 11:16:22 -0700 MIME-Version: 1.0 Subject: Re: [syzbot] [bpf?] WARNING: ODEBUG bug in tcx_uninstall To: Leon Romanovsky , Jakub Kicinski Cc: 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 References: <000000000000ee69e80600ec7cc7@google.com> <91396dc0-23e4-6c81-f8d8-f6427eaa52b0@iogearbox.net> <20230726071254.GA1380402@unreal> <20230726082312.1600053e@kernel.org> <20230726170133.GX11388@unreal> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: <20230726170133.GX11388@unreal> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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/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. > tcx_entry_free(entry); > } >