linux_dsm_epyc7002/arch/powerpc/kvm
Paul Mackerras e48ba1cbce 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>
2016-08-19 13:00:06 +10:00
..
book3s_32_mmu_host.c
book3s_32_mmu.c
book3s_32_sr.S
book3s_64_mmu_host.c powerpc/mm: Move hash table ops to a separate structure 2016-07-21 18:59:09 +10:00
book3s_64_mmu_hv.c
book3s_64_mmu.c
book3s_64_slb.S
book3s_64_vio_hv.c
book3s_64_vio.c powerpc/kvm: Clarify __user annotations 2016-07-14 20:43:50 +10:00
book3s_emulate.c
book3s_exports.c
book3s_hv_builtin.c
book3s_hv_interrupts.S
book3s_hv_ras.c KVM: PPC: Book3S HV: Fix TB corruption in guest exit path on HMI interrupt 2016-06-20 14:11:25 +10:00
book3s_hv_rm_mmu.c
book3s_hv_rm_xics.c
book3s_hv_rmhandlers.S - ARM: GICv3 ITS emulation and various fixes. Removal of the old 2016-08-02 16:11:27 -04:00
book3s_hv.c Merge branch 'kvm-ppc-next' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc into HEAD 2016-07-11 18:10:06 +02:00
book3s_interrupts.S
book3s_mmu_hpte.c
book3s_paired_singles.c
book3s_pr_papr.c
book3s_pr.c - ARM: GICv3 ITS emulation and various fixes. Removal of the old 2016-08-02 16:11:27 -04:00
book3s_rmhandlers.S
book3s_rtas.c
book3s_segment.S
book3s_xics.c KVM: PPC: Book3S: Don't crash if irqfd used with no in-kernel XICS emulation 2016-08-19 13:00:06 +10:00
book3s_xics.h
book3s.c
book3s.h
booke_emulate.c
booke_interrupts.S
booke.c KVM: remove kvm_guest_enter/exit wrappers 2016-07-01 11:03:21 +02:00
booke.h
bookehv_interrupts.S
e500_emulate.c
e500_mmu_host.c
e500_mmu_host.h
e500_mmu.c
e500.c
e500.h
e500mc.c
emulate_loadstore.c
emulate.c KVM: PPC: Book3S PR: Fix illegal opcode emulation 2016-06-20 14:11:25 +10:00
fpu.S
irq.h
Kconfig
Makefile Kbuild: arch: look for generated headers in obtree 2016-07-18 21:31:35 +02:00
mpic.c KVM: pass struct kvm to kvm_set_routing_entry 2016-07-14 09:03:56 +02:00
powerpc.c KVM: PPC: Introduce KVM_CAP_PPC_HTM 2016-08-01 19:42:06 +02:00
timing.c
timing.h
trace_book3s.h
trace_booke.h
trace_hv.h
trace_pr.h
trace.h