diff options
author | 2015-10-23 12:45:57 -0500 | |
---|---|---|
committer | 2015-12-17 22:41:01 +1100 | |
commit | 1f859adb9253c201079962582253236e9b2cc3ce (patch) | |
tree | 530f2fdf162205d654e5f7df1c3726fa9586b41d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | powerpc/476fpe: Add support for kexec (diff) | |
download | linux-dev-1f859adb9253c201079962582253236e9b2cc3ce.tar.xz linux-dev-1f859adb9253c201079962582253236e9b2cc3ce.zip |
powerpc/pseries: Verify CPU doesn't exist before adding
When DLPAR adding a CPU we should verify that the CPU does not already
exist. Failure to do so can generate a kernel oops;
[ 9.465585] kernel BUG at arch/powerpc/platforms/pseries/dlpar.c:382!
[ 9.465796] Oops: Exception in kernel mode, sig: 5 [#1]
This oops can be generated by causing a probe to be performed on a cpu
by writing to the sysfs cpu probe file (/sys/devices/system/cpu/probe).
This patch adds a check for the existence of cpu prior to probing the cpu
so userspace doing the wrong thing won't trigger a BUG_ON().
Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions