Re: [Xen-devel] [PATCH] x86/cpuidle: prevent out of bounds array access

2015-05-22 Thread Jan Beulich
>>> On 22.05.15 at 14:57, wrote: > On 22/05/15 13:48, Jan Beulich wrote: >> ... resulting from fbeef5570c ("x86/cpuidle: get accurate C0 value with >> xenpm tool"). >> >> Reported-by: Andrew Cooper >> Signed-off-by: Jan Beulich > > This appears to fix the issue. > > However, looking at the oth

Re: [Xen-devel] [PATCH] x86/cpuidle: prevent out of bounds array access

2015-05-22 Thread Andrew Cooper
On 22/05/15 13:48, Jan Beulich wrote: > ... resulting from fbeef5570c ("x86/cpuidle: get accurate C0 value with > xenpm tool"). > > Reported-by: Andrew Cooper > Signed-off-by: Jan Beulich This appears to fix the issue. However, looking at the other cases which play the same games, 0 is used in

[Xen-devel] [PATCH] x86/cpuidle: prevent out of bounds array access

2015-05-22 Thread Jan Beulich
... resulting from fbeef5570c ("x86/cpuidle: get accurate C0 value with xenpm tool"). Reported-by: Andrew Cooper Signed-off-by: Jan Beulich --- a/xen/arch/x86/acpi/cpu_idle.c +++ b/xen/arch/x86/acpi/cpu_idle.c @@ -279,7 +279,7 @@ static void print_acpi_power( uint64_t usage[ACPI_PROCESSOR_