Commit d9ef2f01 authored by Ye Weihua's avatar Ye Weihua Committed by Yang Yingliang
Browse files

jump_label: skip resource release if jump label is not relocated

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I47NHU


CVE: NA

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

Before a module is deleted, the kernel traverses the jump_label section to
release resources applied by each jump entry. Common modules apply for these
resources before module initialization, but livepatch modules apply during
livepatch redirection.

Therefore, when a livepatch module fails to be inserted, the resources to be
applied by jump_label are not applied. As a result, a panic occurs when a
null pointer is accessed during resource release.

To solve the this problem, skip resource release if jump label is not
relocated.

Signed-off-by: default avatarYe Weihua <yeweihua4@huawei.com>
Reviewed-by: default avatarYang Jihong <yangjihong1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent a6178c62
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment