更新 KPM 模块,调整函数参数以支持额外的用户结果返回

This commit is contained in:
ShirkNeko
2025-03-31 20:10:32 +08:00
parent 2fc0935f58
commit 6c4b73a38e
3 changed files with 47 additions and 48 deletions

View File

@@ -513,10 +513,7 @@ int ksu_handle_prctl(int option, unsigned long arg2, unsigned long arg3,
pr_info("KPM: calling before arg2=%d\n", (int) arg2);
res = sukisu_handle_kpm(arg2, arg3, arg4);
copy_to_user(result, &res, sizeof(res));
pr_info("KPM: calling before arg2=%d res=%d\n", (int) arg2, (int) res);
res = sukisu_handle_kpm(arg2, arg3, arg4, arg5);
return 0;
}