From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796276682; b=bjsIu2hesQWUB7YmB/7PjQOx1/jsgp8IeXxqzvW8Szbf/qijfCZoDokezrBURxN/D50k iXxWgIeUchkw1hQ3/S6L2tp0v/vkih9Q46NHwVeZS/tJLOJ+Tz/xd2zGPMS9Nt87fFb8W P/XTkovXBvLfqiyeufgzPrXzxxaZfTeysnfNkeTkxx+qVuDCKfTMwAY6vaW0KZ5S41pgh lkpQL7ZmwE0TnQcda5jnvgGXegzA+oijzBcxt/QMroMfeMat9EJByGZWaIA90Mfe3ZEGX sDIiei03qvS+tv1ket7rbtG21+UrK5mVgSUGQdbE0uchLusZ6ATkmTCfzUID/k7TWuA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796276682; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=8LiJChDN2dg/zrc4LyRp1BTkj7acvX2nvgpfzsuF7KU=; b=EMbesCVALdgi0QzolXWanr9/vfONJZHHmCLDLnS2OHIw282dbc/GzE6L+CQ3T1PeEn5j eknLD0744fmf0897y+jJeeNi5oMpMXsqDhu5NZ19vD2UXNjAdjBuC4/9FKMzvwp1rHBH4 AWVjz3PpNuigBkt9FN2h49uJinnMOlLTqo/GsA1mPFyw5kQd/w8pTUfNg53rT2u5N4Wdn pMfv7Q2yAPDSAw2Wysufwr5WeqQi1RQJMZdGRA1RwQGFagMvU4rEHYMP3gyxcPolRztyT NJYOVJKKCLg7OiPWczPfBFWCPi42bCeqDEmKa452E7Fwz6UlSgPbyGsHC4tN4luWtkQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OjiH1NhQ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 19928606A322; Thu, 3 Dec 2026 05:44:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OjiH1NhQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id CAE0C1F000C1; Thu, 3 Dec 2026 05:44:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796276681; bh=8LiJChDN2dg/zrc4LyRp1BTkj7acvX2nvgpfzsuF7KU=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=OjiH1NhQ1OlFdaM6RCzOz8Q+BcHSjWU4XMOc9R0Fk06hmaA1tzxdnn6jPvE2lhYSJ MVSIoxsQISdNBZ8NLeyf13Nhc2MbWyqyj6qhth4tgenSJD8hn2Z3a2tWVCHIJUCRgd TK2FzTmJ9NdmH7iDh9/9nFdJe/+9P7PJFVQwEiURAYzqZ/EAagg8FoWaGf6UmZ75Yi lYrhDSNTfF6yyySVs0nxou4ElVYytdiAdr3tESOtnY5x3NN0aXMhdNNUdlskep7hhd c6+Zb7xkCXfIXEbaN7ygJNW6VP+IQ1suwt6m34rCL2yekDE5oDi5mjCyDK59AJZBcr XeK42pn1qx1xQ== Date: Thu, 3 Dec 2026 07:44:37 +0200 From: Leon Romanovsky To: Jason Gunthorpe Cc: Jaeyeong Lee , Artemy Kovalyov , Yishai Hadas , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v3] RDMA/mlx5: Preserve DEVX objects after failed output copy Message-ID: <20261203054437.GN31440@unreal> References: <20261111105346.3220427-1-lee@jaeyeong.cc> <20261115135123.GD42525@unreal> <20261122103715.51731-1-lee@jaeyeong.cc> <179574905000.68536.2524255610860968331@jaeyeong.cc> <20261201153000.GG31440@unreal> <20261201171630.GK1856591@ziepe.ca> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201171630.GK1856591@ziepe.ca> On Tue, Dec 01, 2026 at 01:16:30PM -0400, Jason Gunthorpe wrote: > On Tue, Dec 01, 2026 at 05:30:00PM +0200, Leon Romanovsky wrote: > > On Fri, Nov 27, 2026 at 03:10:55AM +0000, Jaeyeong Lee wrote: > > > A DEVX create command can succeed before indirect mkey registration or > > > copying the command output to userspace fails. The current unwind path > > > destroys the hardware object directly, ignores a destroy failure, and > > > frees struct devx_obj. > > > > > > If the object cannot be destroyed, > > > > How can this happen? This is exactly why your reproducer is invalid, it > > does not account for how real hardware behaves. > > It definately can happen, I gave an example intending him to paste it > over.. I understand your explanation, but I wanted to make clear to the submitter that AI-generated emulated hardware behavior is not welcome. Thanks