Commit 401add0b authored by Tang Yizhou's avatar Tang Yizhou Committed by Yang Yingliang
Browse files

share_pool: Initialize sp_group_master when call k2u_task

ascend inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4EUVI


CVE: NA

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

When a process not in any sp group calls k2u_task, it will encounter a
null pointer visit problem in sp_init_proc_stat:

mm->sp_group_master is null, and visit mm->sp_group_master->sp_stat_id
is illegal.

To fix this, we initialize sp_group_master when call k2u_task.

Signed-off-by: default avatarTang Yizhou <tangyizhou@huawei.com>
Reviewed-by: default avatarDing Tianhong <dingtianhong@huawei.com>
Signed-off-by: default avatarZhou Guanghui <zhouguanghui1@huawei.com>
Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent ee6e8444
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment