summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorYonatan Cohen <yonatanc@mellanox.com>2016-09-07 14:04:06 +0300
committerDoug Ledford <dledford@redhat.com>2016-09-16 14:14:08 -0400
commit3050b99850247695cb07a5c15265afcc08bcf400 (patch)
tree0f4fad28a660a0496540b598c08cbf713005bd94 /security
parent908948877bbbb240f67d7eb27d3a392beb394a07 (diff)
downloadlinux-3050b99850247695cb07a5c15265afcc08bcf400.tar.bz2
IB/rxe: Fix race condition between requester and completer
rxe_requester() is sending a pkt with rxe_xmit_packet() and then calls rxe_update() to update the wqe and qp's psn values. But sometimes the response is received before the requester had time to update the wqe in which case the completer acts on errornous wqe values. This fix updates the wqe and qp before actually sending the request and rolls back when xmit fails. Fixes: 8700e3e7c485 ("Soft RoCE driver") Signed-off-by: Yonatan Cohen <yonatanc@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions