From: Keir Fraser Date: Mon, 10 May 2010 08:22:52 +0000 (+0100) Subject: xentrace: fix bug in t_info size X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12209 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=268d40f9b898c545fbb27a5116ac8add34dde9e8;p=xen.git xentrace: fix bug in t_info size 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 --- diff --git a/xen/common/trace.c b/xen/common/trace.c index 110f3b8c7d..cc29c8b970 100644 --- a/xen/common/trace.c +++ b/xen/common/trace.c @@ -340,7 +340,7 @@ int tb_control(xen_sysctl_tbuf_op_t *tbc) 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);