aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorLeon Romanovsky <[email protected]>2018-04-23 17:01:52 +0300
committerDoug Ledford <[email protected]>2018-04-27 11:03:15 -0400
commitb4bd701ac469075d94ed9699a28755f2862252b9 (patch)
treebbcf8bcc82f8834189da42cd1406dfa7d3e810f3 /net/switchdev/switchdev.c
parentdc5640f294e4ff6b89047cb4a0dfa931d5f0cd1f (diff)
RDMA/mlx5: Fix multiple NULL-ptr deref errors in rereg_mr flow
Failure in rereg MR releases UMEM but leaves the MR to be destroyed by the user. As a result the following scenario may happen: "create MR -> rereg MR with failure -> call to rereg MR again" and hit "NULL-ptr deref or user memory access" errors. Ensure that rereg MR is only performed on a non-dead MR. Cc: syzkaller <[email protected]> Cc: <[email protected]> # 4.5 Fixes: 395a8e4c32ea ("IB/mlx5: Refactoring register MR code") Reported-by: Noa Osherovich <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions