diff options
| author | Christophe Leroy <[email protected]> | 2023-02-01 11:04:23 +0100 | 
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2023-02-10 22:17:34 +1100 | 
| commit | d9ab6da64fd15608c9feb20d769d8df1a32fe212 (patch) | |
| tree | d49b62b90c54937c23efaee7c25574e9eebd1029 /tools/perf/scripts/python/powerpc-hcalls.py | |
| parent | 2115732e548304e52ca1bbdb714f45f4a2461653 (diff) | |
powerpc: Remove __kernel_text_address() in show_instructions()
That test was introducted in 2006 by
commit 00ae36de49cc ("[POWERPC] Better check in show_instructions").
At that time, there was no BPF progs.
As seen in message of commit 89d21e259a94 ("powerpc/bpf/32: Fix Oops
on tail call tests"), when a page fault occurs in test_bpf.ko for
instance, the code is dumped as XXXXXXXXs. Allthough
__kernel_text_address() checks is_bpf_text_address(), it seems it is
not enough.
Today, show_instructions() uses get_kernel_nofault() to read the code,
so there is no real need for additional verifications.
ARM64 and x86 don't do any additional check before dumping
instructions. Do the same and remove __kernel_text_address()
in show_instructions().
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/4fd69ef7945518c3e27f96b95046a5c1468d35bf.1675245773.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions