All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix segfault in xl migrate --debug
@ 2014-11-26 19:54 M A Young
  2014-11-26 21:19 ` Andrew Cooper
  0 siblings, 1 reply; 9+ messages in thread
From: M A Young @ 2014-11-26 19:54 UTC (permalink / raw)
  To: xen-devel; +Cc: Wei Liu, Ian Jackson, Ian Campbell, Stefano Stabellini

[-- Attachment #1: Type: TEXT/PLAIN, Size: 274 bytes --]

If differences are found during the verification phase of xl migrate 
--debug then it is likely to crash with a segfault because the bogus
pagebuf->pfn_types[pfn] is used in a print statement instead of 
pfn_type[pfn] .

Signed-off-by: Michael Young <m.a.young@durham.ac.uk>

[-- Attachment #2: Type: TEXT/PLAIN, Size: 680 bytes --]

xl migrate --debug can segfault because pagebuf->pfn_types[pfn] is
used in a print statement instead of pfn_type[pfn] 

--- xen-4.5.0-rc1/tools/libxc/xc_domain_restore.c.orig	2014-10-24 15:22:40.000000000 +0100
+++ xen-4.5.0-rc1/tools/libxc/xc_domain_restore.c	2014-11-25 21:01:16.604081467 +0000
@@ -1404,7 +1404,7 @@
                 int v;
 
                 DPRINTF("************** pfn=%lx type=%lx gotcs=%08lx "
-                        "actualcs=%08lx\n", pfn, pagebuf->pfn_types[pfn],
+                        "actualcs=%08lx\n", pfn, pfn_type[pfn],
                         csum_page(region_base + i * PAGE_SIZE),
                         csum_page(buf));
 

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2014-12-18 10:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-26 19:54 [PATCH] fix segfault in xl migrate --debug M A Young
2014-11-26 21:19 ` Andrew Cooper
2014-11-28 12:09   ` Ian Campbell
2014-12-01 21:11     ` Konrad Rzeszutek Wilk
2014-12-16 20:38       ` M A Young
2014-12-16 21:55         ` Wei Liu
2014-12-16 22:04           ` M A Young
2014-12-16 22:55             ` Wei Liu
2014-12-18 10:18               ` Ian Campbell

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.