public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dropify <d.dropify@gmail.com>
To: zhengyejian1@huawei.com
Cc: bpf@vger.kernel.org, jpoimboe@kernel.org,
	linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org,
	linux-trace-kernel@vger.kernel.org, mark.rutland@arm.com,
	mathieu.desnoyers@efficios.com, mcgrof@kernel.org,
	mhiramat@kernel.org, peterz@infradead.org, rostedt@goodmis.org
Subject: Re: [RFC PATCH] ftrace: Skip __fentry__ location of overridden weak functions
Date: Wed, 13 Nov 2024 13:02:43 +0530	[thread overview]
Message-ID: <8acdd32a-1702-4434-8d79-2e73ded36d2a@gmail.com> (raw)
In-Reply-To: <20240607115211.734845-1-zhengyejian1@huawei.com>

Wondering where are we with this issue?

I am experiencing an issue where in a fentry/kfunc bpf probe attached to 
a function doesn't fire. I have only experienced this behavior on Debian 
kernels with `CONFIG_X86_KERNEL_IBT` enabled.

Because of weak symbols being removed from kallsyms, 
kallsyms_lookup_size_offset() returns the symbol offset for the function 
"acct_process()" more than the actual size. And the function body now 
contains two __fentry__ locations.

Depending on where binary search lands up first, correct (acct_process + 
4) or incorrect (acct_process + 260) location is returned.

Thanks,

Dropify


      parent reply	other threads:[~2024-11-13  7:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-07 11:52 [RFC PATCH] ftrace: Skip __fentry__ location of overridden weak functions Zheng Yejian
2024-06-07 15:02 ` Peter Zijlstra
2024-06-07 15:39   ` Steven Rostedt
2024-06-11  1:56   ` Zheng Yejian
2024-06-11  9:21     ` Peter Zijlstra
2024-06-11  9:36       ` Zheng Yejian
2024-11-13  7:32 ` Dropify [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8acdd32a-1702-4434-8d79-2e73ded36d2a@gmail.com \
    --to=d.dropify@gmail.com \
    --cc=bpf@vger.kernel.org \
    --cc=jpoimboe@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-modules@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mcgrof@kernel.org \
    --cc=mhiramat@kernel.org \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=zhengyejian1@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox