livepatch: Restoring code segment permissions after stop_machine completed
hulk inclusion category: bugfix bugzilla: 51821 CVE: NA --------------------------- The function 'arch_klp_code_modify_prepare' is called before stop_machine to change the permissions of the code segment to be readable and writable, but the permissions of the code segment were not restored to the original state after the stop_mahcine was completed. This may introduce security issues, so 'arch_klp_code_modify_post_process' is used after 'stop_machine' to fix this problem in this commit. Signed-off-by: NZhao Xuehui <zhaoxuehui1@huawei.com> Reviewed-by: NYang Jihong <yangjihong1@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录