diff options
author | wenglianfa <wenglianfa@huawei.com> | 2024-09-06 12:34:37 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-09-10 16:06:39 +0300 |
commit | fd8489294dd2beefb70f12ec4f6132aeec61a4d0 (patch) | |
tree | 32cb61c7a9f54123f52328ff01d2dbe1eb9c7136 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6928d264e328e0cb5ee7663003a6e46e4cba0a7e (diff) | |
download | linux-fd8489294dd2beefb70f12ec4f6132aeec61a4d0.tar.xz |
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 <wenglianfa@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20240906093444.3571619-3-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions