From 6b2c3350280999dd6b60cc1d75e49d3d84d8732e Mon Sep 17 00:00:00 2001 From: backslashxx <118538522+backslashxx@users.noreply.github.com> Date: Mon, 9 Nov 2026 15:49:10 +0800 Subject: [PATCH] fixup! "kernel: resolve init_user_ns via ksym" c90827e --- kernel/routine.h | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/routine.h b/kernel/routine.h index 896a881..26c6a7f 100644 --- a/kernel/routine.h +++ b/kernel/routine.h @@ -62,6 +62,7 @@ static __always_inline bool getpriority_should_swap(int who) if (ns && ns != init_ns_p()) { kuid_t host_kuid = make_kuid(ns, 0); + if (uid_valid(host_kuid)) cuid = from_kuid(init_ns_p(), host_kuid); } }