xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xentrace: fix bug in t_info size
@ 2010-05-08  0:25 George Dunlap
  2010-05-08  0:32 ` Jeremy Fitzhardinge
  0 siblings, 1 reply; 3+ messages in thread
From: George Dunlap @ 2010-05-08  0:25 UTC (permalink / raw)
  To: xen-devel; +Cc: george.dunlap

t_info size should be in bytes, not pages.  This fixes a bug
that crashes the hypervisor if the total number of all pages
is more than 1024 but less than 2048.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>

diff -r caea94988515 -r e633befe28ec xen/common/trace.c
--- a/xen/common/trace.c	Fri May 07 11:45:18 2010 +0100
+++ b/xen/common/trace.c	Fri May 07 19:20:52 2010 -0500
@@ -340,7 +340,7 @@
     case XEN_SYSCTL_TBUFOP_get_info:
         tbc->evt_mask   = tb_event_mask;
         tbc->buffer_mfn = t_info ? virt_to_mfn(t_info) : 0;
-        tbc->size = T_INFO_PAGES;
+        tbc->size = T_INFO_PAGES * PAGE_SIZE;
         break;
     case XEN_SYSCTL_TBUFOP_set_cpu_mask:
         xenctl_cpumap_to_cpumask(&tb_cpu_mask, &tbc->cpu_mask);

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

end of thread, other threads:[~2010-05-08  0:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-08  0:25 [PATCH] xentrace: fix bug in t_info size George Dunlap
2010-05-08  0:32 ` Jeremy Fitzhardinge
2010-05-08  0:36   ` George Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).