linux-stable/arch/x86
Sandipan Das 20e9bdf9a7 perf/x86/amd/lbr: Discard erroneous branch entries
[ Upstream commit 29297ffffb ]

The Revision Guide for AMD Family 19h Model 10-1Fh processors declares
Erratum 1452 which states that non-branch entries may erroneously be
recorded in the Last Branch Record (LBR) stack with the valid and
spec bits set.

Such entries can be recognized by inspecting bit 61 of the corresponding
LastBranchStackToIp register. This bit is currently reserved but if found
to be set, the associated branch entry should be discarded.

Signed-off-by: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://bugzilla.kernel.org/attachment.cgi?id=305518
Link: https://lore.kernel.org/r/3ad2aa305f7396d41a40e3f054f740d464b16b7f.1706526029.git.sandipan.das@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-13 13:10:08 +02:00
..
boot x86/efistub: Remap kernel text read-only before dropping NX attribute 2024-04-10 16:38:23 +02:00
coco x86/coco: Require seeding RNG with RDRAND on CoCo systems 2024-04-10 16:38:19 +02:00
configs
crypto This update includes the following changes: 2024-01-10 12:23:43 -08:00
entry x86/vdso: Fix rethunk patching for vdso-image-{32,64}.o 2024-04-13 13:10:05 +02:00
events perf/x86/amd/lbr: Discard erroneous branch entries 2024-04-13 13:10:08 +02:00
hyperv x86/hyperv: Use per cpu initial stack for vtl context 2024-03-26 18:17:30 -04:00
ia32
include x86/bhi: Mitigate KVM by default 2024-04-10 16:38:24 +02:00
kernel x86/bhi: Mitigate KVM by default 2024-04-10 16:38:24 +02:00
kvm KVM: x86: Add BHI_NO 2024-04-10 16:38:24 +02:00
lib x86/boot: Move mem_encrypt= parsing to the decompressor 2024-04-10 16:38:23 +02:00
math-emu
mm x86/sme: Move early SME kernel encryption handling into .head.text 2024-04-10 16:38:23 +02:00
net x86/bpf: Fix IP after emitting call depth accounting 2024-04-10 16:38:01 +02:00
pci PCI: Disable D3cold on Asus B1400 PCI-NVMe bridge 2024-04-13 13:10:06 +02:00
platform x86/cleanups changes for v6.8: 2024-01-08 17:23:32 -08:00
power mm/treewide: replace pud_large() with pud_leaf() 2024-04-10 16:38:00 +02:00
purgatory
ras
realmode x86/cleanups changes for v6.8: 2024-01-08 17:23:32 -08:00
tools x86, relocs: Ignore relocations in .notes section 2024-03-26 18:16:51 -04:00
um This pull request contains the following changes for UML: 2024-01-17 10:44:34 -08:00
video
virt
xen mm/treewide: replace pud_large() with pud_leaf() 2024-04-10 16:38:00 +02:00
.gitignore
Kbuild
Kconfig x86: set SPECTRE_BHI_ON as default 2024-04-10 16:38:24 +02:00
Kconfig.assembler
Kconfig.cpu x86/Kconfig: Transmeta Crusoe is CPU family 5, not 6 2024-02-09 16:28:19 +01:00
Kconfig.debug
Makefile kbuild: use 4-space indentation when followed by conditionals 2024-02-15 06:05:44 +09:00
Makefile.postlink
Makefile.um
Makefile_32.cpu