|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 1/2] libxc/xentrace: Replace xc_tbuf_set_cpu_mask with CPU mask with xc_cpumap_t instead of uint32_t
On 06/20/2014 08:33 PM, Konrad Rzeszutek Wilk wrote: Sorry for not noticing this befori. If I'm reading this right, if someone sets the cpumask as a hex, then opts.cpu_mask will point to an area of memory only 32 bits long. However, up in set_cpu_mask(), it always calls xc_tbuf_set_cpu_mask() with bits equal to xc_get_max_cpus(). On systems with more than 32 logical cpus, won't this cause a buffer overrun? Should you be calling xc_cpumap_alloc() here instead of malloc()? Nit: You seem to be parsing it now. :-) -George _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |