From a533a490bd1b63acf5697b79499971e0bc45cf6c Mon Sep 17 00:00:00 2001 From: Wang Han <416810799@qq.com> Date: Fri, 7 Nov 2025 23:07:14 +0800 Subject: [PATCH] Use force_sig(SIGKILL) to kill process --- kernel/core_hook.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 31347846..4ba5eb5b 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -532,7 +532,7 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old) if (!is_ksu_domain()) { pr_warn("find suspicious EoP: %d %s, from %d to %d\n", current->pid, current->comm, old_uid.val, new_uid.val); - kill_pgrp(SIGKILL, current, 0); + force_sig(SIGKILL); return 0; } } @@ -541,7 +541,7 @@ int ksu_handle_setuid(struct cred *new, const struct cred *old) if (new_uid.val < old_uid.val && !ksu_is_allow_uid_for_current(old_uid.val)) { pr_warn("find suspicious EoP: %d %s, from %d to %d\n", current->pid, current->comm, old_uid.val, new_uid.val); - kill_pgrp(SIGKILL, current, 0); + force_sig(SIGKILL); return 0; } }