Re: [PATCH rdma-next v2] RDMA/bnxt_re: Validate udata before executing commands
From: Leon Romanovsky
Date: Thu Jul 16 2026 - 04:43:12 EST
On Tue, 14 Jul 2026 13:50:00 +0300, Leon Romanovsky wrote:
> The destroy callbacks currently zero the udata output after tearing down
> driver resources. If the userspace access fails, uverbs preserves the
> uobject and allows the destroy callback to run again, even though the
> driver resource has already been freed.
>
> Call ib_no_udata_io() before teardown so udata failures are detected
> while the resource is still intact, then return success after teardown
> completes.
>
> [...]
Applied, thanks!
[1/1] RDMA/bnxt_re: Validate udata before executing commands
https://git.kernel.org/rdma/rdma/c/36a29408795fe2
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>