From: Snehal Sanghvi <snsanghvi@linux.microsoft.com>
To: Leon Romanovsky <leon@kernel.org>
Cc: kotaranov@microsoft.com, snsanghvi@microsoft.com, jgg@ziepe.ca,
linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH rdma-next] RDMA/mana_ib: support enhanced connection establishment
Date: Tue, 1 Dec 2026 12:54:13 -0800 [thread overview]
Message-ID: <b49440ae-d6a4-4138-b759-ab0321d632c1@linux.microsoft.com> (raw)
In-Reply-To: <20261124124519.GQ14811@unreal>
On 11/24/2026 4:45 AM, Leon Romanovsky wrote:
> This is not the correct way to extend udata support, it breaks backward
> compatibility. Before this change, users could provide udata with four zero
> bytes of provider input and no provider output:
>
> struct ib_uverbs_attr uhw_in = {
> .attr_id = UVERBS_ATTR_UHW_IN,
> .len = 4,
> .data = 0,
> };
>
> Now, ib_copy_validate_udata_in_cm(..., ece_options, 0) requires eight bytes
> and returns -EINVAL if fewer are provided.
Hi Leon, thanks for catching this.
You're right, the previous helper accepted zero-filled provider input of
any length. In v2, inputs shorter than the original ECE request retain
ib_no_udata_io()validation and output clearing. ECE parsing and response
copying are now used only when the input reaches the end of ece_options.
v2:
https://lore.kernel.org/linux-rdma/20261201203432.136760-1-snsanghvi@linux.microsoft.com/
<https://lore.kernel.org/linux-rdma/20261201203432.136760-1-snsanghvi@linux.microsoft.com/>
Thanks,
Snehal
prev parent reply other threads:[~2026-12-01 20:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 1:08 Snehal Sanghvi
2026-11-24 12:45 ` Leon Romanovsky
2026-12-01 20:54 ` Snehal Sanghvi [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=b49440ae-d6a4-4138-b759-ab0321d632c1@linux.microsoft.com \
--to=snsanghvi@linux.microsoft.com \
--cc=jgg@ziepe.ca \
--cc=kotaranov@microsoft.com \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=snsanghvi@microsoft.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
all inboxes | Powered by JetHome®