* [PATCH] kmod in usermode (module loader in Ring 3)
@ 2015-04-25 22:01 Christopher Sacchi
2015-04-26 2:48 ` Al Viro
0 siblings, 1 reply; 2+ messages in thread
From: Christopher Sacchi @ 2015-04-25 22:01 UTC (permalink / raw)
To: linux-kernel
This is an experimental patch to put kmod in Ring 3, rather than Ring 0.
Here it is, below the dashed lines:
---------------------------------------------------------------------------------------------------------------------------
Signed-off-by: Christopher P. Sacchi <christophersacchi@gmail.com>
--- kmod.old 2015-04-12 18:12:50.000000000 -0400
+++ kmod.c 2015-04-25 17:52:47.629844677 -0400
@@ -43,6 +43,14 @@
#include <trace/events/module.h>
+#ifdef CONFIG_X64
+asm("sysret");
+#endif
+
+#ifndef CONFIG_X64
+asm("sysexit");
+#endif
+
extern int max_threads;
static struct workqueue_struct *khelper_wq;
@@ -692,3 +700,11 @@ void __init usermodehelper_init(void)
khelper_wq = create_singlethread_workqueue("khelper");
BUG_ON(!khelper_wq);
}
+
+#ifdef CONFIG_X64
+asm("syscall");
+#endif
+
+#ifndef CONFIG_X64
+asm("sysenter");
+#endif
---------------------------------------------------------------------------------------------------------------------------
Regards,
Christopher P. Sacchi
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] kmod in usermode (module loader in Ring 3)
2015-04-25 22:01 [PATCH] kmod in usermode (module loader in Ring 3) Christopher Sacchi
@ 2015-04-26 2:48 ` Al Viro
0 siblings, 0 replies; 2+ messages in thread
From: Al Viro @ 2015-04-26 2:48 UTC (permalink / raw)
To: Christopher Sacchi; +Cc: linux-kernel
On Sat, Apr 25, 2015 at 06:01:32PM -0400, Christopher Sacchi wrote:
> This is an experimental patch to put kmod in Ring 3, rather than Ring 0.
> Here it is, below the dashed lines:
*blink*
Pray, explain what and how is that supposed to achieve?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-26 2:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-25 22:01 [PATCH] kmod in usermode (module loader in Ring 3) Christopher Sacchi
2015-04-26 2:48 ` Al Viro
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.