diff options
author | Marco Cavenati <[email protected]> | 2024-06-24 23:10:55 +0300 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2024-07-04 16:00:20 +0200 |
commit | 5638bd722a44bbe97c1a7b3fae5b9efddb3e70ff (patch) | |
tree | b3cc6465defd9430474b143824efc6b2871ab974 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | f8a86a9bb5f7e65d8c4405052de062639a8783bb (diff) |
perf/x86/intel/pt: Fix topa_entry base length
topa_entry->base needs to store a pfn. It obviously needs to be
large enough to store the largest possible x86 pfn which is
MAXPHYADDR-PAGE_SIZE (52-12). So it is 4 bits too small.
Increase the size of topa_entry->base from 36 bits to 40 bits.
Note, systems where physical addresses can be 256TiB or more are affected.
[ Adrian: Amend commit message as suggested by Dave Hansen ]
Fixes: 52ca9ced3f70 ("perf/x86/intel/pt: Add Intel PT PMU driver")
Signed-off-by: Marco Cavenati <[email protected]>
Signed-off-by: Adrian Hunter <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Adrian Hunter <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions