summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/checkpoint.c
diff options
context:
space:
mode:
authorBandan Das <bsd@redhat.com>2019-08-26 06:15:13 -0400
committerThomas Gleixner <tglx@linutronix.de>2019-08-26 20:00:57 +0200
commit558682b5291937a70748d36fd9ba757fb25b99ae (patch)
tree93a1b446bc79e1da48a9097acca77f0167426687 /fs/f2fs/checkpoint.c
parentbae3a8d3308ee69a7dbdf145911b18dfda8ade0d (diff)
downloadlinux-558682b5291937a70748d36fd9ba757fb25b99ae.tar.bz2
x86/apic: Include the LDR when clearing out APIC registers
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
Diffstat (limited to 'fs/f2fs/checkpoint.c')
0 files changed, 0 insertions, 0 deletions