aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@ozlabs.org>2016-08-09 21:13:09 -0400
committerPaul Mackerras <paulus@ozlabs.org>2016-08-18 23:00:06 -0400
commite48ba1cbce12eb4546771d45c09dd94c3404efe8 (patch)
tree3e4faac42cacb007e71e72cc95e5bb3fc00273ee /tools/perf/scripts/python
parent694d0d0bb2030d2e36df73e2d23d5770511dbc8d (diff)
KVM: PPC: Book3S: Don't crash if irqfd used with no in-kernel XICS emulation
It turns out that if userspace creates a pseries-type VM without in-kernel XICS (interrupt controller) emulation, and then connects an eventfd to the VM as an irqfd, and the eventfd gets signalled, that the code will try to deliver an interrupt via the non-existent XICS object and crash the host kernel with a NULL pointer dereference. To fix this, we check for the presence of the XICS object before trying to deliver the interrupt, and return with an error if not. Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions