[PATCH 06/13] MIPS: use cred_ids_allow_sched()
Josef Bacik
josef at toxicpanda.com
Sun Oct 18 17:31:48 UTC 2026
The FPU affinity code has a copy of check_same_owner() from the scheduler.
Use the library there as well.
No functional change. Compile tested only.
Assisted-by: LLM
Signed-off-by: Josef Bacik <josef at toxicpanda.com>
---
arch/mips/kernel/mips-mt-fpaff.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/mips/kernel/mips-mt-fpaff.c b/arch/mips/kernel/mips-mt-fpaff.c
index 4fead87d2f43..1ac86a897956 100644
--- a/arch/mips/kernel/mips-mt-fpaff.c
+++ b/arch/mips/kernel/mips-mt-fpaff.c
@@ -54,8 +54,7 @@ static bool check_same_owner(struct task_struct *p)
rcu_read_lock();
pcred = __task_cred(p);
- match = (uid_eq(cred->euid, pcred->euid) ||
- uid_eq(cred->euid, pcred->uid));
+ match = cred_ids_allow_sched(cred, pcred);
rcu_read_unlock();
return match;
}
--
2.55.0
More information about the Linux-security-module-archive
mailing list