]> git.hungrycats.org Git - linux/commit
RDMA/rxe: Fix access checks in rxe_check_bind_mw
authorBob Pearson <rpearsonhpe@gmail.com>
Tue, 30 May 2023 22:13:32 +0000 (17:13 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jul 2023 17:39:41 +0000 (19:39 +0200)
commit3649d44135380d80146751018bcb2c71cde59fc9
treee7e185b716a75ea1c03f5a82d4036dbd77cf4a25
parent5f1ee55cff4551893f98e92dcaa10241384320d9
RDMA/rxe: Fix access checks in rxe_check_bind_mw

[ Upstream commit 425e1c9018fdf25cb4531606cc92d9d01a55534f ]

The subroutine rxe_check_bind_mw() in rxe_mw.c performs checks on the mw
access flags before they are set so they always succeed.  This patch
instead checks the access flags passed in the send wqe.

Fixes: 32a577b4c3a9 ("RDMA/rxe: Add support for bind MW work requests")
Link: https://lore.kernel.org/r/20230530221334.89432-4-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/sw/rxe/rxe_mw.c