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

UCM/BISTRO: Use relative jump instead of absolute jump #78

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

yosefe
Copy link
Owner

@yosefe yosefe commented Nov 2, 2020

When patching glibc() functions for memory hooks, try to use relative
jump instruction if the hook is within 32 bit offset of the original
function. This way the patch can be 5 bytes instead of 13 bytes, and
avoid race with another thread executing the patched function.

When patching glibc() functions for memory hooks, try to use relative
jump instruction if the hook is within 32 bit offset of the original
function. This way the patch can be 5 bytes instead of 13 bytes, and
avoid race with another thread executing the patched function.
@yosefe
Copy link
Owner Author

yosefe commented Nov 2, 2020

@hoopoepg can you pls review (for int3 branch)?

@yosefe yosefe merged commit 39586a2 into integration3 Nov 2, 2020
@yosefe yosefe deleted the topic/ucm-bistro-use-relative-jump-int3 branch November 2, 2020 09:36
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