Commit bd697183 authored by Wen Gu's avatar Wen Gu Committed by Litao Jiao
Browse files

anolis: net/smc: delay RDMA resource release until connecitons freed

anolis inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I79GVV
CVE: NA

Reference: https://gitee.com/anolis/cloud-kernel/commit/301e72b8a776d6e7e327dabd1f7f2bf8df40ebd9

--------------------------------

ANBZ: #2003

When SMC-R links down happened, the RDMA resources like mr,
QP, PD are destroyed immediately. However, there might be
some SMC-R connections still invoke them, which causes an
use-after-free panic.

So this patch delays the RDMA resources release until SMC-R
connections are all freed.

Link: https://gitee.com/anolis/cloud-kernel/pulls/677


Signed-off-by: default avatarWen Gu <guwen@linux.alibaba.com>
Reviewed-by: default avatarTony Lu <tonylu@linux.alibaba.com>
Signed-off-by: default avatarGengbiao Shen <shengengbiao@sangfor.com.cn>
parent da9ffbd6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment