Article View: linux.kernel.netdev
Article #4551Re: [PATCH net-next v1 0/4] net/mlx5: Don't free CQs whose destroy failed
From: Leon Romanovsky
Date: Sun, 18 Oct 2026 12:55
Date: Sun, 18 Oct 2026 12:55
27 lines
6925 bytes
6925 bytes
On Fri, Oct 16, 2026 at 12:57:45AM -0400, Yuho Choi wrote: > mlx5_core_destroy_cq() can fail No, it should not fail. If it does, the firmware is completely broken or some other catastrophic bug. > nd when it does the CQ may still exist in firmware with access to its buffer and doorbell record. It > also returns early in that case, without waiting for EQ handlers that > may already hold a reference to the CQ. The four helpers in this series > ignore that error and free the CQ buffer anyway, while their teardown > paths also free the object that embeds the struct mlx5_core_cq. > > Keep the buffer and the object that embeds the CQ when DESTROY_CQ > fails, as the regular mlx5_ib CQ destroy path does. The HWS send ring > CQs are polled and never armed, so the HWS patch keeps only their > buffer rather than passing the error up through the queue open and > close paths. > > The issues were found with a static analysis tool from ongoing, not yet > published research, and confirmed by code inspection. None of them was > reproduced, so this targets net-next; I can resend for net if you > prefer. Please drop this series. The flow is impossible in current HW implementation. Thanks
Technical Details
Message-ID:
<20261018125520.GE64621@unreal>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348035-linux-kernel-netdev=dewy.ruReferences:
<20261016045849.813696-6-oss.patchbox@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348035-linux-kernel-netdev=dewy.ru From: leon@kernel.org (Leon Romanovsky) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v1 0/4] net/mlx5: Don't free CQs whose destroy failed Date: Sun, 18 Oct 2026 15:55:20 +0300 Organization: Usenet Network Message-ID: <20261018125520.GE64621@unreal> References: <20261016045849.813696-6-oss.patchbox@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3324953"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:8x+k2ZR1yV79yfNJhVw8zbR16Uc= sha256:hqlnwXryceUNtyhmSodgXibNP13sxPuXD4gevVoNvJA= sha1:RNC8cUmGB7NPftOn4giYKAJVrbI= sha256:2grw4rGPOJSD8eiiHE8XKnpWcfJQs3lZji3zh5AkOKc= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 08E3111080D; Sun, 18 Oct 2026 15:59:24 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.74 X-Spam-Status: No, score=-3.74 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.34, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aZKBWRC6oywQ; Sun, 18 Oct 2026 15:59:17 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-348035-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id EE66D1107F6; Sun, 18 Oct 2026 15:59:08 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id EE4B82419A; Sun, 18 Oct 2026 12:55:26 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4B9E49F100; Sun, 18 Oct 2026 12:55:25 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iNPNue4I" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1721849F12B; Sun, 18 Oct 2026 12:55:24 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792328125; cv=none; b=JaGXQXMfHTMa11CmsXSzXaw5vYzvpWmO5WPlCseMu4C/jRVFXZ1W3r81uibBXx5YfXuWRymKVkrtTMtaTGcu6nm1lQcplwlTic9Eq7SGup6oiCGL0xREMgWOn9LX/rldYStIOVJP1Fq50rzJ4AVy0F+3QhvOy5rWQB8wL4gGSF4= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792328125; c=relaxed/simple; bh=680s3p/4km2avW6oqRYoU9OZh2xsbUZBPuIMcApqAqE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lIdP9Yc3Mcj7Irc+832hWLRVVMchX9acn+XSbxODqSSfyi9k4vCaEYQiwLpdYaISKIIuo/95R2qa8fUjoacT1Eur7gUmNmTaZC8qtqx67T0RboMZ0NE8NO6R7Vs15cB9J//ljPTkvrDvtZQdYTBfaYARgAcc4UhZnoEGVbeopso= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iNPNue4I; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FD331F000C6; Sun, 18 Oct 2026 12:55:23 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792328124; bh=tPZvxr18psUo+iJLn+gqHxeX1JtATabu4FfpskVFjaM=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=iNPNue4I+2PgEGfVb9x0HKZWcr2XUgmQ4K7+eiu9Yz0Ia+N/UAz1y2pWPmhA6/V7/ /z+K1Yk05twGPBwddFSIn/L3tJ2n3ww5Hsh09cF6lU6prZN+5Gf/nr1ACrOCDaC6E6 iIBRfK5jHxpzTuICWJKKcVMbkQRC00tuO6R+YjJUevNi1isIAyOX1I/L8DSoyzzd5V Fe4QYvfnKUdbykXntvxulDygzMb0cMwNZuwzbUDVgitcNudvafrVWlWFj96b9z/05L ja1XhUYS2tEwqUvfDfrIxhVHbbChEaOhSO8OBwoITXrX/OBbziHPcRgsCEINci3rlI nb0yOInkUJPrQ== X-Cc: Saeed Mahameed <saeedm@nvidia.com>, Tariq Toukan <tariqt@nvidia.com>, Mark Bloch <mbloch@nvidia.com>, Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Ariel Levkovich <lariel@nvidia.com>, Jianbo Liu <jianbol@nvidia.com>, Alex Vesker <valex@nvidia.com>, Yevgeny Kliteynik <kliteyn@nvidia.com>, Itamar Gozlan <igozlan@nvidia.com>, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <20261016045849.813696-6-oss.patchbox@gmail.com>