Skip to content
Snippets Groups Projects
Commit e6a47cb4 authored by Zhao Xuehui's avatar Zhao Xuehui Committed by Yang Yingliang
Browse files

livepatch/x86_64: Fix the deadlock when insmoding livepatch kernel module


hulk inclusion
category: bugfix
bugzilla: 51843
CVE: NA

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

In function klp_init_patch, a text_mutex lock is used when
doing jump_label_apply_nops. However, the jump_label_register
in which a text_mutex lock is used is done before the original
text_mutex lock released. Thus, an AA deadlock is occured.

In this commit, we do jump_label_register after the original
text_mutex lock is released to avoid this AA deadlock.

Signed-off-by: default avatarZhao Xuehui <zhaoxuehui1@huawei.com>
Reviewed-by: default avatarKuohai Xu <xukuohai@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 70320991
No related branches found
No related tags found
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment