Re: [PATCH rdma-next] RDMA/mana_ib: support enhanced connection establishment

From: Snehal Sanghvi

Date: Tue Dec 01 2026 - 15:54:20 EST


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@xxxxxxxxxxxxxxxxxxx/ <https://lore.kernel.org/linux-rdma/20261201203432.136760-1-snsanghvi@xxxxxxxxxxxxxxxxxxx/>

Thanks,
Snehal