Re: [PATCH v3] RDMA/mlx5: Preserve DEVX objects after failed output copy

From: Leon Romanovsky

Date: Thu Dec 03 2026 - 00:44:50 EST


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