On Sun, Apr 10, 2022 at 10:06:48PM -0500, Bob Pearson wrote: > The referenced commit generates a reference counting error if > the the rkey has the same index but the wrong key. In this > case the reference taken by rxe_pool_get_index() is not dropped. > > Drop the reference if the keys don't match in rxe_recheck_mr(). > Check that the mw and mr are still valid. > > Fixes: 8a1a0be894da0 ("RDMA/rxe: Replace mr by rkey in responder resources") > Signed-off-by: Bob Pearson <rpearsonhpe@xxxxxxxxx> > --- > drivers/infiniband/sw/rxe/rxe_resp.c | 25 +++++++++++++++++-------- > 1 file changed, 17 insertions(+), 8 deletions(-) Applied to for-rc, thanks Jason