Re: vm_privilege for swapin thread

Michael Kelly <[email protected]>
Newsgroups gmane.linux.debian.ports.hurd
Message-ID <[email protected]>
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.
thread_swap.c.patch (text/x-patch, 358 B)
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();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.