Commit edb00061 authored by Hangyu Hua's avatar Hangyu Hua Committed by Zheng Zengkai
Browse files

rds: memory leak in __rds_conn_create()

mainline inclusion
from mainline-v5.16-rc6
commit 5f9562eb
bugzilla: 185989 https://gitee.com/openeuler/kernel/issues/I4DDEL
CVE: CVE-2021-45480

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5f9562ebe710c307adc5f666bf1a2162ee7977c0



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

__rds_conn_create() did not release conn->c_path when loop_trans != 0 and
trans->t_prefer_loopback != 0 and is_outgoing == 0.

Fixes: aced3ce5 ("RDS tcp loopback connection can hang")
Signed-off-by: default avatarHangyu Hua <hbh25y@gmail.com>
Reviewed-by: default avatarSharath Srinivasan <sharath.srinivasan@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarBaisong Zhong <zhongbaisong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent b70c45f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment