Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix eBPF exit instruction #61

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Fix eBPF exit instruction #61

wants to merge 1 commit into from

Conversation

xxr0ss
Copy link
Contributor

@xxr0ss xxr0ss commented Mar 11, 2024

exit means "return" according to
Jump instructions

code value src description notes
BPF_EXIT 0x9 0x0 return BPF_JMP only

and Program-local functions

A BPF_EXIT within the program-local function will return to the caller.

@xxr0ss xxr0ss marked this pull request as draft March 11, 2024 13:10
@xxr0ss
Copy link
Contributor Author

xxr0ss commented Mar 11, 2024

oh, I think I need to figure out the calculation of return address before this change

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.

1 participant