linux-stable/arch/x86
Sandipan Das 39da708cb2 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:05:15 +02:00
..
boot x86/efistub: Add missing boot_params for mixed mode compat entry 2024-04-03 15:19:47 +02:00
coco x86/coco: Require seeding RNG with RDRAND on CoCo systems 2024-04-10 16:28:33 +02:00
configs
crypto crypto: x86/sha - load modules based on CPU features 2023-11-28 17:07:07 +00:00
entry x86/bhi: Add support for clearing branch history at syscall entry 2024-04-10 16:28:35 +02:00
events perf/x86/amd/lbr: Discard erroneous branch entries 2024-04-13 13:05:15 +02:00
hyperv x86/hyperv: Fix the detection of E820_TYPE_PRAM in a Gen2 VM 2023-12-20 17:00:21 +01:00
ia32
include x86/bhi: Mitigate KVM by default 2024-04-10 16:28:35 +02:00
kernel x86/bhi: Mitigate KVM by default 2024-04-10 16:28:35 +02:00
kvm KVM: x86: Add BHI_NO 2024-04-10 16:28:36 +02:00
lib x86/retpoline: Add NOENDBR annotation to the SRSO dummy return thunk 2024-04-10 16:28:32 +02:00
math-emu
mm x86/mm/pat: fix VM_PAT handling in COW mappings 2024-04-10 16:28:33 +02:00
net x86/returnthunk: Allow different return thunks 2024-03-01 13:26:33 +01:00
pci x86/pci/xen: populate MSI sysfs entries 2023-05-30 14:03:22 +01:00
platform x86/efi: Make efi_set_virtual_address_map IBT safe 2023-07-19 16:21:45 +02:00
power
purgatory x86/purgatory: Remove LTO flags 2023-09-23 11:11:09 +02:00
ras
realmode
tools x86, relocs: Ignore relocations in .notes section 2024-03-26 18:20:39 -04:00
um
video
virt/vmx/tdx
xen x86/xen: Add some null pointer checking to smp.c 2024-03-26 18:20:24 -04:00
.gitignore
Kbuild
Kconfig x86: set SPECTRE_BHI_ON as default 2024-04-10 16:28:36 +02:00
Kconfig.assembler
Kconfig.cpu x86/Kconfig: Transmeta Crusoe is CPU family 5, not 6 2024-02-23 09:12:43 +01:00
Kconfig.debug
Makefile
Makefile.um
Makefile_32.cpu