From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796158455; b=HK/vQmAh+LtU9KYXWtQdbfCAG2LFRwfWallvU2R+jXEApRL5c8IBmBKHVnxAFhjqabYw 2yMkihAxXSkyq1eiTHriLVVIIihm9k6u7Jy5rkiwGRbVdzd7lXiOtnkadaJeb4muTmZOw x9sWph8AEcrvZVm4edckFRLuxEN3wXEryrYsH4Elt1umRGd/LxleTPxhn4rcN/Ohj2Ry/ f7HezTYGKf6QGxWHKH+mlabFKkYPJJszax6BAtdi+L9tygdbAFEyB0jXO/vnzwnlIGeLG K8PbpgfifoVP2EjDyGXcKVw8MY7aRWnkK9xCJUs+VPV1kwudbqs1Nf0qHMN+8JDJWEg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796158455; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Spam-Status: X-Spam-Checker-Version; bh=OEYW+5CrWT1yZPqfFmkCEoD+aavWTS3F0USE2eNBceU=; b=u1bfHp06NAmYsNEnb2AbZ8iuK5q4/R714788ZVbRAHpxRQKhWKmRKtyBfFF2eR3u2VTB 7j5CVann6PQJ4svkxvL2Tojhk6m8VlJZk3v7UGGnNDoAmPNQ+0b2NRtUZ+tuEi3yCfRwQ DMBs4Sq11nlquNwe1fspmeROnmMMfnvhQucoPI9iaoEEno8r3yqq70aKUfe8WvIshXci/ uJxgoiB1s4oEd1yP+qvOcSihAdGkoqWgsIobWl9OwoelG2iUiLfc/y+L65hXh0mOIHgIX hfveEXO12CCCPjVBDPqA07V+rY0mkJ86ZTQskbazTYS5u+3eDUTmVDggGn3ZjfFUoDA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=SKGwMcob; arc=none smtp.remote-ip=13.77.154.182 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C5FA606A31A; Tue, 1 Dec 2026 20:54:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7C5FA606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=SKGwMcob Received: from [192.168.1.66] (unknown [4.194.122.144]) by linux.microsoft.com (Postfix) with ESMTPSA id DD01520B7166; Tue, 1 Dec 2026 12:54:11 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com DD01520B7166 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1796158454; bh=OEYW+5CrWT1yZPqfFmkCEoD+aavWTS3F0USE2eNBceU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=SKGwMcobL7+edDJrVEPg70xaMpG1uos8spx5nenq8eS0qTOhczx3/op6VRLkhqd03 /YmnSssyhQSQcPxzY1vxFNWRn/Tt7obQ6ycU+Hxs2vobB144R0HbEMriXuR1LicDZ2 UeSs95Lbz3pqZEJxi+YBDbIlhGLjgaJ4HKByQTSU= Message-ID: Date: Tue, 1 Dec 2026 12:54:13 -0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH rdma-next] RDMA/mana_ib: support enhanced connection establishment To: Leon Romanovsky Cc: kotaranov@microsoft.com, snsanghvi@microsoft.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261120010851.616472-1-snsanghvi@linux.microsoft.com> <20261124124519.GQ14811@unreal> Content-Language: en-US From: Snehal Sanghvi In-Reply-To: <20261124124519.GQ14811@unreal> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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/ Thanks, Snehal