[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: vm_privilege for swapin thread



On 12/06/2025 16:35, Samuel Thibault wrote:
BTW, your patches do not apply well, it seems your mailer is mangling
spaces etc. Perhaps try to attach them as text files to avoid conversion
issues.
Patch replacement attached. Apologies for any inconvenience.
diff --git a/kern/thread_swap.c b/kern/thread_swap.c
index bfb39239..7bf734f8 100644
--- a/kern/thread_swap.c
+++ b/kern/thread_swap.c
@@ -193,6 +193,7 @@ static void __attribute__((noreturn)) swapin_thread_continue(void)
 
 void swapin_thread(void)
 {
+	current_thread()->vm_privilege = 1;
 	stack_privilege(current_thread());
 
 	swapin_thread_continue();

Reply to: