android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Adrian Hunter f6fe92535e perf/x86/intel/pt: Fix a topa_entry base address calculation
commit ad97196379d0b8cb24ef3d5006978a6554e6467f upstream.

topa_entry->base is a bit-field. Bit-fields are not promoted to a 64-bit
type, even if the underlying type is 64-bit, and so, if necessary, must
be cast to a larger type when calculations are done.

Fix a topa_entry->base address calculation by adding a cast.

Without the cast, the address was limited to 36-bits i.e. 64GiB.

The address calculation is used on systems that do not support Multiple
Entry ToPA (only Broadwell), and affects physical addresses on or above
64GiB. Instead of writing to the correct address, the address comprising
the first 36 bits would be written to.

Intel PT snapshot and sampling modes are not affected.

Fixes: 52ca9ced3f ("perf/x86/intel/pt: Add Intel PT PMU driver")
Reported-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240624201101.60186-3-adrian.hunter@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-08-19 05:33:39 +02:00
..
alpha y2038: rusage: use __kernel_old_timeval 2024-03-15 10:48:18 -04:00
arc ARC: [plat-hsdk]: Remove misplaced interrupt-cells property 2024-05-02 16:18:33 +02:00
arm ARM: dts: imx6qdl-kontron-samx6i: fix PCIe reset polarity 2024-08-19 05:33:27 +02:00
arm64 arm64: dts: amlogic: gx: correct hdmi clocks 2024-08-19 05:33:27 +02:00
c6x
csky csky, hexagon: fix broken sys_sync_file_range 2024-07-05 09:08:31 +02:00
h8300
hexagon hexagon: fix fadvise64_64 calling conventions 2024-07-05 09:08:31 +02:00
ia64 arch, mm: remove stale mentions of DISCONIGMEM 2024-02-23 08:25:13 +01:00
m68k m68k: amiga: Turn off Warp1260 interrupts during boot 2024-08-19 05:33:36 +02:00
microblaze microblaze: Remove early printk call from cpuinfo-static.c 2024-06-16 13:28:42 +02:00
mips MIPS: Octeron: remove source file executable bit 2024-08-19 05:33:33 +02:00
nds32 arch, mm: remove stale mentions of DISCONIGMEM 2024-02-23 08:25:13 +01:00
nios2
openrisc
parisc parisc: use correct compat recv/recvfrom syscalls 2024-07-05 09:08:27 +02:00
powerpc powerpc/xmon: Fix disassembly CPU feature checks 2024-08-19 05:33:33 +02:00
riscv
s390 s390: Mark psw in __load_psw_mask() as __unitialized 2024-07-18 11:40:54 +02:00
sh Revert "sh: Handle calling csum_partial with misaligned data" 2024-06-16 13:28:36 +02:00
sparc sparc64: Fix incorrect function signature and add prototype for prom_cif_init 2024-08-19 05:33:32 +02:00
um um: Fix the -Wmissing-prototypes warning for __switch_mm 2024-06-16 13:28:44 +02:00
unicore32
x86 perf/x86/intel/pt: Fix a topa_entry base address calculation 2024-08-19 05:33:39 +02:00
xtensa arch, mm: remove stale mentions of DISCONIGMEM 2024-02-23 08:25:13 +01:00
.gitignore
Kconfig