427 Star 1.5K Fork 1.6K

GVPopenEuler/kernel

 / 详情

【OLK-5.10】kmemleak in mpam_resctrl_cpu_online

已完成
任务
创建于  
2023-07-18 20:46

【严重程度】 一般
【特性】 arm64架构/mpam
【重现类型】 无规律重现
【定位分析】

根据kmemleak调用栈,反汇编得到内存泄漏的代码:mpam_resctrl_setup_domain()函数中:*ctrlval_ptr = kmalloc_array(num_partid, sizeof(**ctrlval_ptr), GFP_KERNEL);这一行

分析发现是:1、mpam_resctrl_cpu_offline()函数中,整个domain域的CPU下线,没有释放ctrl_val数组申请的内存;2、mpam_resctrl_setup_domain()函数中,ctrl_val数组申请内存返回错误,没有释放已经申请的内存,这两种情况会造成内存泄漏。


评论 (1)

hulk-robot 创建了任务 2年前

Hi zhixiuzhou, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers.

登录 后才可以发表评论

状态
负责人
项目
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5329419 openeuler ci bot 1632792936 hulk-robot-zhixiuzhou
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助