summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorMikhail Malygin <m.malygin@yadro.com>2020-07-16 22:03:41 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-19 09:26:36 +0300
commitb76ca3f373b52c9be3838b703c1976cafe07752e (patch)
treee53f8d6444a2530de0a0dee36986f50b1ed934ea /security
parentbdb550b1e4205881f7598e32d2fab9133ef0a694 (diff)
downloadlinux-b76ca3f373b52c9be3838b703c1976cafe07752e.tar.xz
RDMA/rxe: Prevent access to wr->next ptr afrer wr is posted to send queue
[ Upstream commit 5f0b2a6093a4d9aab093964c65083fe801ef1e58 ] rxe_post_send_kernel() iterates over linked list of wr's, until the wr->next ptr is NULL. However if we've got an interrupt after last wr is posted, control may be returned to the code after send completion callback is executed and wr memory is freed. As a result, wr->next pointer may contain incorrect value leading to panic. Store the wr->next on the stack before posting it. Fixes: 8700e3e7c485 ("Soft RoCE driver") Link: https://lore.kernel.org/r/20200716190340.23453-1-m.malygin@yadro.com Signed-off-by: Mikhail Malygin <m.malygin@yadro.com> Signed-off-by: Sergey Kojushev <s.kojushev@yadro.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions