x86/speculation/mmio: Enable CPU Fill buffer clearing on idle
authorPawan Gupta <pawan.kumar.gupta@linux.intel.com>
Fri, 20 May 2022 03:31:12 +0000 (20:31 -0700)
committerBorislav Petkov <bp@suse.de>
Sat, 21 May 2022 10:14:58 +0000 (12:14 +0200)
commit99a83db5a605137424e1efe29dc0573d6a5b6316
treeca536c29d62a69ea88842ddebbd23438a1b33aeb
parente5925fb867290ee924fcf2fe3ca887b792714366
x86/speculation/mmio: Enable CPU Fill buffer clearing on idle

When the CPU is affected by Processor MMIO Stale Data vulnerabilities,
Fill Buffer Stale Data Propagator (FBSDP) can propagate stale data out
of Fill buffer to uncore buffer when CPU goes idle. Stale data can then
be exploited with other variants using MMIO operations.

Mitigate it by clearing the Fill buffer before entering idle state.

Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Co-developed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kernel/cpu/bugs.c