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

patchable-function Attribute #8

Open
kavon opened this issue Aug 28, 2019 · 1 comment
Open

patchable-function Attribute #8

kavon opened this issue Aug 28, 2019 · 1 comment
Labels
question Further information is requested

Comments

@kavon
Copy link
Member

kavon commented Aug 28, 2019

There seems to be a somewhat new patchable-function attribute for functions that emits a small nop sled at the start of the function that is suitable for a compare-and-swap to redirect control flow via a short jump so that you can overwrite the body of the existing function. It's only supported for x86-64 right now.

Right now we're using XRay to do this and it seems fine and supports more architectures, so it doesn't seem useful, but nonetheless it's worth looking at this again in the future.

@kavon kavon added the question Further information is requested label Aug 28, 2019
@kavon
Copy link
Member Author

kavon commented Oct 22, 2019

#16 is related to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant