All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/xenconsoled: Initialise pointers before trying to use them
@ 2013-03-07 15:13 Andrew Cooper
  2013-03-07 15:28 ` Olaf Hering
  2013-03-07 16:20 ` Wei Liu
  0 siblings, 2 replies; 8+ messages in thread
From: Andrew Cooper @ 2013-03-07 15:13 UTC (permalink / raw)
  To: xen-devel; +Cc: Wei Liu, Ian Jackson, Ian Campbell, Marcus Granado

This is a regression introduced by

"Switch from select() to poll() in xenconsoled's IO loop."
  hg c/s 26405:7359c3122c5d
  git cc5434c933153c4b8812d1df901f8915c22830a8

which results in reliable segfaults during VM power operations.

Signed-off-by: Marcus Granado <marcus.granado@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>

---

These segfaults are 100% reproducible in a XenServer system when rebooting a
PV domain. I am at a loss to explain why the OSS testing has not picked them up.

diff -r 94ece33caae2 -r f66d74cbf492 tools/console/daemon/io.c
--- a/tools/console/daemon/io.c
+++ b/tools/console/daemon/io.c
@@ -669,6 +669,7 @@ static struct domain *create_domain(int 
 	strcat(dom->conspath, "/console");
 
 	dom->master_fd = -1;
+	dom->master_pollfd = NULL;
 	dom->slave_fd = -1;
 	dom->log_fd = -1;
 
@@ -687,6 +688,7 @@ static struct domain *create_domain(int 
 	dom->remote_port = -1;
 	dom->interface = NULL;
 	dom->xce_handle = NULL;
+	dom->xce_pollfd = NULL;
 
 	if (!watch_domain(dom, true))
 		goto out;

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

end of thread, other threads:[~2013-03-07 18:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-07 15:13 [PATCH] tools/xenconsoled: Initialise pointers before trying to use them Andrew Cooper
2013-03-07 15:28 ` Olaf Hering
2013-03-07 15:57   ` Andrew Cooper
2013-03-07 16:20 ` Wei Liu
2013-03-07 16:22   ` Andrew Cooper
2013-03-07 17:15     ` Wei Liu
2013-03-07 17:46       ` Andrew Cooper
2013-03-07 18:07     ` Ian Jackson

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.