From: Tong Tiangen tongtiangen@huawei.com
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5GB28 CVE: NA
-------------------------------
There is an issue of using variable num_exentries incorrectly in search_module_mc_extables(), fix it.
Signed-off-by: Tong Tiangen tongtiangen@huawei.com --- kernel/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/module.c b/kernel/module.c index a469c7489771..cfa3d8c370a8 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -4652,7 +4652,7 @@ const struct exception_table_entry *search_module_mc_extables(unsigned long addr if (!mod) goto out;
- if (!mod->num_exentries) + if (!mod->num_mc_exentries) goto out;
e = search_extable(mod->mc_extable,