[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <04c7f895-d587-4023-9fdf-60085c329ff3@linuxfoundation.org>
Date: Wed, 26 Feb 2025 13:55:58 -0700
From: Shuah Khan <skhan@...uxfoundation.org>
To: Steven Rostedt <rostedt@...dmis.org>, Heiko Carstens <hca@...ux.ibm.com>
Cc: Masami Hiramatsu <mhiramat@...nel.org>, Shuah Khan <shuah@...nel.org>,
linux-kernel@...r.kernel.org, linux-trace-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org, Shuah Khan <skhan@...uxfoundation.org>
Subject: Re: [PATCH] selftests/ftrace: Use readelf to find entry point in
uprobe test
On 2/26/25 10:13, Steven Rostedt wrote:
> On Thu, 20 Feb 2025 14:01:02 +0100
> Heiko Carstens <hca@...ux.ibm.com> wrote:
>
>> 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.
>>
>> Signed-off-by: Heiko Carstens <hca@...ux.ibm.com>
>
> Acked-by: Steven Rostedt (Google) <rostedt@...dmis.org>
>
> Shuah,
>
> Can you take this in your tree?
>
> -- Steve
Applied to linux_kselftest next for Linux 6.15-rc1.
thanks,
-- Shuah
Powered by blists - more mailing lists