diff options
author | wenglianfa <[email protected]> | 2024-09-06 17:34:37 +0800 |
---|---|---|
committer | Leon Romanovsky <[email protected]> | 2024-09-10 16:06:39 +0300 |
commit | fd8489294dd2beefb70f12ec4f6132aeec61a4d0 (patch) | |
tree | 32cb61c7a9f54123f52328ff01d2dbe1eb9c7136 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
parent | 6928d264e328e0cb5ee7663003a6e46e4cba0a7e (diff) |
RDMA/hns: Fix Use-After-Free of rsv_qp on HIP08
Currently rsv_qp is freed before ib_unregister_device() is called
on HIP08. During the time interval, users can still dereg MR and
rsv_qp will be used in this process, leading to a UAF. Move the
release of rsv_qp after calling ib_unregister_device() to fix it.
Fixes: 70f92521584f ("RDMA/hns: Use the reserved loopback QPs to free MR before destroying MPT")
Signed-off-by: wenglianfa <[email protected]>
Signed-off-by: Junxian Huang <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions