Re: [PATCH v2] RDMA/mlx5: Preserve DEVX objects after failed output copy
From: Jason Gunthorpe
Date: Wed Nov 25 2026 - 09:56:25 EST
On Wed, Nov 25, 2026 at 03:12:44PM +0200, Leon Romanovsky wrote:
> On Sun, Nov 22, 2026 at 10:39:01AM +0000, Jaeyeong Lee wrote:
> > As requested, below is the full dmesg from the reproducer run.
>
> <...>
>
> > [ 13.847526] mlx5_dct_repro: loading out-of-tree module taints kernel.
>
> What value does this change provide if it is based on an AI-generated sequence?
More importantly you are not allowed to call
uobj_finalize_uobj_create() from new style methods, it is only for the
old write interface. I guess it is in the wrong header.
It should be uverbs_finalize_uobj_create() if you want to use this
sequence.
And it should probably cover devx_handle_mkey_indirect() as well.
The idea itself seems reasonable, once we have done the actual create
command to FW it should use the normal destroy sequence. That is
exactly why we have the finalize helper in the first place.
But to do that right the entire obj_destroy should be removed.
IDK about the claim that DRAIN_DCT can fail, but I suppose it is
possible for a hostile userspace to immediately refcount any kind of
object and cause its destruction to fail and that does seem like a
legitimate problem to me, so this is worth adjusting.
Please send a v3.
Jason