Skip to content

klplib: codestream: Handle IBT enabled function offsets#192

Merged
marcosps merged 1 commit intoSUSE:develfrom
marcosps:ibt-safe-traceability-check
Jan 5, 2026
Merged

klplib: codestream: Handle IBT enabled function offsets#192
marcosps merged 1 commit intoSUSE:develfrom
marcosps:ibt-safe-traceability-check

Conversation

@marcosps
Copy link
Collaborator

@marcosps marcosps commented Jan 2, 2026

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.

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>
@marcosps marcosps requested review from fgyanz and vmezzela January 2, 2026 14:51
@marcosps
Copy link
Collaborator Author

marcosps commented Jan 2, 2026

@vmezzela would you mind trying this PR and check if this solves your issue? Thanks a lot!

Copy link
Collaborator

@vmezzela vmezzela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@marcosps marcosps merged commit 6af29d1 into SUSE:devel Jan 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants