添加panic时打印出对应KPM信息的情况

This commit is contained in:
liankong
2025-03-30 16:52:44 +08:00
parent cd60773d73
commit 770c9632ae
4 changed files with 126 additions and 36 deletions

View File

@@ -688,6 +688,7 @@ __maybe_unused int ksu_kprobe_init(void)
#ifdef CONFIG_KPM
kpm_cfi_bypass_init();
kpm_stack_init();
#endif
return rc;
@@ -699,6 +700,7 @@ __maybe_unused int ksu_kprobe_exit(void)
unregister_kprobe(&renameat_kp);
#ifdef CONFIG_KPM
kpm_cfi_bypass_exit();
kpm_stack_exit();
#endif
return 0;
}