klplib: codestream: Handle IBT enabled function offsets#192
Merged
marcosps merged 1 commit intoSUSE:develfrom Jan 5, 2026
Merged
klplib: codestream: Handle IBT enabled function offsets#192marcosps merged 1 commit intoSUSE:develfrom
marcosps merged 1 commit intoSUSE:develfrom
Conversation
When checking if a symbol is traceable, the trace addresses can be 4 bytes ahead of the symbol table. This happens when the symbol has an additional ENDBR instruction, which shifts the __fentry__ by 4 bytes. In order to correctly identify if a symbol is traceable or not, check both addresses: the one found symbol, and one by shifting the addr by 4 bytes. Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Collaborator
Author
|
@vmezzela would you mind trying this PR and check if this solves your issue? Thanks a lot! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When checking if a symbol is traceable, the trace addresses can be 4 bytes ahead of the symbol table. This happens when the symbol has an additional ENDBR instruction, which shifts the fentry by 4 bytes.
In order to correctly identify if a symbol is traceable or not, check both addresses: the one found symbol, and one by shifting the addr by 4 bytes.