All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [PATCH 19/19] UML - Make mconsole version requests happen in a process
@ 2006-07-07  0:33 ` Jeff Dike
  0 siblings, 0 replies; 10+ messages in thread
From: Jeff Dike @ 2006-07-07  0:33 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, user-mode-linux-devel

Handling a host mconsole version request must be done in a process context
rather than interrupt context now that utsname information can be 
process-specific rather than global.

Signed-off-by: Jeff Dike <jdike@addtoit.com>

Index: linux-2.6.16/arch/um/drivers/mconsole_user.c
===================================================================
--- linux-2.6.16.orig/arch/um/drivers/mconsole_user.c
+++ linux-2.6.16/arch/um/drivers/mconsole_user.c
@@ -18,7 +18,12 @@
 #include "umid.h"
 
 static struct mconsole_command commands[] = {
-	{ "version", mconsole_version, MCONSOLE_INTR },
+	/* With uts namespaces, uts information becomes process-specific, so
+	 * we need a process context.  If we try handling this in interrupt
+	 * context, we may hit an exiting process without a valid uts
+	 * namespace.
+	 */
+	{ "version", mconsole_version, MCONSOLE_PROC },
 	{ "halt", mconsole_halt, MCONSOLE_PROC },
 	{ "reboot", mconsole_reboot, MCONSOLE_PROC },
 	{ "config", mconsole_config, MCONSOLE_PROC },


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-07-07 19:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-07  0:33 [uml-devel] [PATCH 19/19] UML - Make mconsole version requests happen in a process Jeff Dike
2006-07-07  0:33 ` Jeff Dike
2006-07-07 15:31 ` [uml-devel] [PATCH 19/19] UML - Make mconsole version requestshappen " Brock, Anthony - NET
2006-07-07 15:31   ` Brock, Anthony - NET
2006-07-07 16:58   ` Jeff Dike
2006-07-07 16:58     ` Jeff Dike
2006-07-07 17:07     ` [uml-devel] [PATCH 19/19] UML - Make mconsole versionrequestshappen " Brock, Anthony - NET
2006-07-07 17:07       ` Brock, Anthony - NET
2006-07-07 19:58       ` Jeff Dike
2006-07-07 19:58         ` Jeff Dike

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.