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

Improve program patching for context accesses #8

Open
qmonnet opened this issue Jan 22, 2017 · 0 comments
Open

Improve program patching for context accesses #8

qmonnet opened this issue Jan 22, 2017 · 0 comments

Comments

@qmonnet
Copy link
Owner

qmonnet commented Jan 22, 2017

I pushed a branch called patch_prog that introduces a new module (patch) that proposes a function attempting to patch an eBPF program generated with clang, in order to make it compatible with rbpf.

The function is a dumb heuristic and is nowhere close to what happens in the kernel. See comments in the source code (module patch) for details. Implementing a more efficient algorithm does not look trivial (code in the kernel is GPL and we cannot reuse it).

I only tested it on a single example. If anyone has time to play with it and provide suggestions or feedback, that would be very welcome. Will try to update this issue if I can obtain better results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant