mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
RDMA/hns: Fix UAF for cq async event
[ Upstream commita942ec2745] The refcount of CQ is not protected by locks. When CQ asynchronous events and CQ destruction are concurrent, CQ may have been released, which will cause UAF. Use the xa_lock() to protect the CQ refcount. Fixes:9a4435375c("IB/hns: Add driver files for hns RoCE driver") Signed-off-by: Chengchang Tang <tangchengchang@huawei.com> Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com> Link: https://lore.kernel.org/r/20240412091616.370789-6-huangjunxian6@hisilicon.com Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Haixiao Yan <haixiao.yan.cn@windriver.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
5e336384cc
commit
330c825e66
1 changed files with 13 additions and 12 deletions
Loading…
Add table
Add a link
Reference in a new issue