linux-stable/arch/x86
Adrian Hunter 84ba02e905 perf/x86/intel/pt: Fix pt_topa_entry_for_page() address calculation
[ Upstream commit 3520b251dc ]

Currently, perf allocates an array of page pointers which is limited in
size by MAX_PAGE_ORDER. That in turn limits the maximum Intel PT buffer
size to 2GiB. Should that limitation be lifted, the Intel PT driver can
support larger sizes, except for one calculation in
pt_topa_entry_for_page(), which is limited to 32-bits.

Fix pt_topa_entry_for_page() address calculation by adding a cast.

Fixes: 39152ee51b ("perf/x86/intel/pt: Get rid of reverse lookup table for ToPA")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240624201101.60186-4-adrian.hunter@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-19 05:44:58 +02:00
..
boot
configs
crypto
entry x86/bhi: Avoid warning in #DB handler due to BHI mitigation 2024-07-18 13:07:45 +02:00
events perf/x86/intel/pt: Fix pt_topa_entry_for_page() address calculation 2024-08-19 05:44:58 +02:00
hyperv
ia32
include efi/x86: Free EFI memory map only when installing a new one. 2024-07-05 09:14:51 +02:00
kernel x86/of: Return consistent error type from x86_of_pci_irq_enable() 2024-08-19 05:44:50 +02:00
kvm KVM: x86: Always sync PIR to IRR prior to scanning I/O APIC routes 2024-07-05 09:14:34 +02:00
lib
math-emu
mm
net
pci x86/pci/xen: Fix PCIBIOS_* return code handling 2024-08-19 05:44:50 +02:00
platform x86/platform/iosf_mbi: Convert PCIBIOS_* return codes to errnos 2024-08-19 05:44:50 +02:00
power
purgatory
ras
realmode
tools
um
video
xen x86/xen: Convert comma to semicolon 2024-08-19 05:44:54 +02:00
.gitignore
Kbuild
Kconfig
Kconfig.assembler
Kconfig.cpu
Kconfig.debug
Makefile
Makefile_32.cpu
Makefile.um