diff options
author | 2016-05-06 20:48:16 +0200 | |
---|---|---|
committer | 2016-05-07 10:06:55 +0200 | |
commit | 56402d63eefe22179f7311a51ff2094731420406 (patch) | |
tree | 0466e2d9dc3205256269aff0bebf137669aa5f3f /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | Merge branch 'for-linus' of git://git.kernel.dk/linux-block (diff) | |
download | wireguard-linux-56402d63eefe22179f7311a51ff2094731420406.tar.xz wireguard-linux-56402d63eefe22179f7311a51ff2094731420406.zip |
x86/topology: Handle CPUID bogosity gracefully
Joseph reported that a XEN guest dies with a division by 0 in the package
topology setup code. This happens if cpu_info.x86_max_cores is zero.
Handle that case and emit a warning. This does not fix the underlying XEN bug,
but makes the code more robust.
Reported-and-tested-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Link: http://lkml.kernel.org/r/alpine.DEB.2.11.1605062046270.3540@nanos
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions