From: Leon Romanovsky <leon@kernel.org>
To: Selvin Xavier <selvin.xavier@broadcom.com>,
Kalesh AP <kalesh-anakkur.purayil@broadcom.com>,
Jason Gunthorpe <jgg@ziepe.ca>,
Jacob Moroni <jmoroni@google.com>,
Leon Romanovsky <leon@kernel.org>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH rdma-next v2] RDMA/bnxt_re: Validate udata before executing commands
Date: Thu, 16 Jul 2026 04:42:49 -0400 [thread overview]
Message-ID: <178419136985.300669.8668153347545684841.b4-ty@kernel.org> (raw)
In-Reply-To: <20260714-fix-destroy-no-udata-v2-1-734fdcf667d5@kernel.org>
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@kernel.org>
prev parent reply other threads:[~2026-07-16 8:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 10:50 [PATCH rdma-next v2] RDMA/bnxt_re: Validate udata before executing commands Leon Romanovsky
2026-07-15 9:04 ` Selvin Xavier
2026-07-16 8:42 ` Leon Romanovsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178419136985.300669.8668153347545684841.b4-ty@kernel.org \
--to=leon@kernel.org \
--cc=jgg@ziepe.ca \
--cc=jmoroni@google.com \
--cc=kalesh-anakkur.purayil@broadcom.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=selvin.xavier@broadcom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox