aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-add.c
diff options
context:
space:
mode:
authorHeiko Carstens <[email protected]>2025-02-20 13:01:02 +0000
committerShuah Khan <[email protected]>2025-02-26 20:53:58 +0000
commitdc4b165855f230247fe02392fc1e29227067c253 (patch)
tree1030d942074a43c54b93940ca26d3d2781cf6895 /lib/crypto/mpi/mpi-add.c
parentselftests/user_events: Fix failures caused by test code (diff)
downloadkernel-dc4b165855f230247fe02392fc1e29227067c253.tar.gz
kernel-dc4b165855f230247fe02392fc1e29227067c253.zip
selftests/ftrace: Use readelf to find entry point in uprobe test
The uprobe events test fails on s390, but also on x86 (Fedora 41). The problem appears to be that there is an assumption that adding a uprobe to the beginning of the executable mapping of /bin/sh is sufficient to trigger a uprobe event when /bin/sh is executed. This assumption is not necessarily true. Therefore use "readelf -h" to find the entry point address of /bin/sh and use this address when adding the uprobe event. This adds a dependency to readelf which is not always installed. Therefore add a check and exit with exit_unresolved if it is not installed. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Carstens <[email protected]> Acked-by: Steven Rostedt (Google) <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions