summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorBandan Das <bsd@redhat.com>2019-08-26 06:15:13 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-06 10:20:53 +0200
commit8f86b0bf18f7278631200a7837df33d706856503 (patch)
tree97ba2710accc4432fd95ed7dbca9dfaf7c3a1441 /kernel
parentde8ff18c1ced087cf0d6272c315c017ddd5cbc7a (diff)
downloadlinux-stable-8f86b0bf18f7278631200a7837df33d706856503.tar.gz
linux-stable-8f86b0bf18f7278631200a7837df33d706856503.tar.bz2
linux-stable-8f86b0bf18f7278631200a7837df33d706856503.zip
x86/apic: Include the LDR when clearing out APIC registers
commit 558682b5291937a70748d36fd9ba757fb25b99ae upstream. Although APIC initialization will typically clear out the LDR before setting it, the APIC cleanup code should reset the LDR. This was discovered with a 32-bit KVM guest jumping into a kdump kernel. The stale bits in the LDR triggered a bug in the KVM APIC implementation which caused the destination mapping for VCPUs to be corrupted. Note that this isn't intended to paper over the KVM APIC bug. The kernel has to clear the LDR when resetting the APIC registers except when X2APIC is enabled. This lacks a Fixes tag because missing to clear LDR goes way back into pre git history. [ tglx: Made x2apic_enabled a function call as required ] Signed-off-by: Bandan Das <bsd@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20190826101513.5080-3-bsd@redhat.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions