From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 345F18837; Mon, 28 Oct 2024 06:45:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730097952; cv=none; b=TecAwsTn8xxCtJxX3uE41AMXfnqd575ccEuzj98uUhz6WmG6CdTsr6A677AyBzTIhz1rTTDac+AstlnaYXsBlW38IzPoIjgcU4VaaCsND1PUfOCkKeLSeU0mYLe3Jak4WMCx8PArIUeeIlkStQfI/UYeqY4FcJ7BFrf9Nlw3TOI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730097952; c=relaxed/simple; bh=fFrtabiRc2tAenqoWl8tjNXSOgEsnZBiD09BQHc50AE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dnJ8JeeTxLVZ+pYzCqEvTTOYFGdSIM66AoqiKcNlxE8SjCCjTp1z7HRdMyTTHIiHKRiQJq6KNfGMJRN/XRJysCcc2TyTCLjrNHz8SYbG/2XXSHnc704OlrGnc2lPZOpduKv/zKC9HOozBQvhjwCtV3SEG9DkrBkh8J8ntV9AZRU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ayn5Gb8f; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ayn5Gb8f" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C450C4CEC3; Mon, 28 Oct 2024 06:45:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730097951; bh=fFrtabiRc2tAenqoWl8tjNXSOgEsnZBiD09BQHc50AE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ayn5Gb8fZxkYIZr9TUPQnC60CYQTy1BYodDh+33fNvxfQZw6F6hnewC5eJdhwjmaG fVmoRR7H3ECOaoWU7sD7TQNyQkKuCFI/dK0gIlfDvmDsHUxUOui/aG8NUJRm9NZQ/x a+LBr1EJdPPoEVV+kIKJxVnuIkdhT9nJshkKmA94= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Selvin Xavier , Chandramohan Akula , Saravanan Vajravel , Kalesh AP , Jason Gunthorpe , Leon Romanovsky , Sasha Levin Subject: [PATCH 6.11 012/261] RDMA/bnxt_re: Fix incorrect AVID type in WQE structure Date: Mon, 28 Oct 2024 07:22:34 +0100 Message-ID: <20241028062312.318584631@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241028062312.001273460@linuxfoundation.org> References: <20241028062312.001273460@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.11-stable review patch. If anyone has any objections, please let me know. ------------------ From: Saravanan Vajravel [ Upstream commit 9ab20f76ae9fad55ebaf36bdff04aea1c2552374 ] Driver uses internal data structure to construct WQE frame. It used avid type as u16 which can accommodate up to 64K AVs. When outstanding AVID crosses 64K, driver truncates AVID and hence it uses incorrect AVID to WR. This leads to WR failure due to invalid AV ID and QP is moved to error state with reason set to 19 (INVALID AVID). When RDMA CM path is used, this issue hits QP1 and it is moved to error state Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver") Link: https://patch.msgid.link/r/1726715161-18941-3-git-send-email-selvin.xavier@broadcom.com Reviewed-by: Selvin Xavier Reviewed-by: Chandramohan Akula Signed-off-by: Saravanan Vajravel Signed-off-by: Kalesh AP Signed-off-by: Selvin Xavier Signed-off-by: Jason Gunthorpe Signed-off-by: Leon Romanovsky Signed-off-by: Sasha Levin --- drivers/infiniband/hw/bnxt_re/qplib_fp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/bnxt_re/qplib_fp.h b/drivers/infiniband/hw/bnxt_re/qplib_fp.h index 56538b90d6c56..c7412e461436f 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_fp.h +++ b/drivers/infiniband/hw/bnxt_re/qplib_fp.h @@ -169,7 +169,7 @@ struct bnxt_qplib_swqe { }; u32 q_key; u32 dst_qp; - u16 avid; + u32 avid; } send; /* Send Raw Ethernet and QP1 */ -- 2.43.0