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

Dealing with two stack variables #10

Open
a-hamza-r opened this issue Oct 9, 2023 · 0 comments
Open

Dealing with two stack variables #10

a-hamza-r opened this issue Oct 9, 2023 · 0 comments

Comments

@a-hamza-r
Copy link

Multiple programs in the repository, including twostackvars, and ovs/datapath.o, sections: [tail-1, tail-4, tail-5, tail-7, tail-8, tail-11, tail-13] dead with two stack pointers (at different offsets) joined. It is usually followed by a lookup for numeric value at the stack pointer offset in the joined basic block. It is likely to fail because if the numbers were at different offsets, they are forgotten during join. For this purpose, the eBPF (zoneCrab domain) has stack_numeric_size variable with each stack variable that computes how many bytes after the stack_offset, the bytes are numeric. In eBPF, the check succeeds. However, type domain does not, for the given benchmarks.
Link to pull request for stack_numeric_size-related discussion: vbpf#292

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

No branches or pull requests

1 participant