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

i#38 attach: Make -skip_syscall the default #5462

Merged
merged 5 commits into from
Apr 15, 2022

Conversation

derekbruening
Copy link
Contributor

Makes interrupting a blocking syscall on attach the default behavior.
Removes the -skip_syscall drrun/drinject parameter.
Adds a test by adding an optional blocking syscall to infloop.

Issue: #38

Makes interrupting a blocking syscall on attach the default behavior.
Removes the -skip_syscall drrun/drinject parameter.
Adds a test by adding an optional blocking syscall to infloop.

Issue: #38
@derekbruening
Copy link
Contributor Author

No idea why a64 attach is failing when it works on manual tests...investigating.

@derekbruening
Copy link
Contributor Author

Finally tracked down the reason for the failure: it is a fundamental bug on relocating DR: #5463. Will fix it first and then resume this.

derekbruening added a commit that referenced this pull request Apr 14, 2022
Fixes errors that can lead to crashes in relocate_dynamorio, where its
access to a function pointer and to the page size can both return
garbage pre-relocation.  We solve this with assembly to get the
current PC, and just using a 4K minimum page size for the backward
walk.

Tested with the PR #5462 branch where the new client.attach_blocking
test crashes without this fix on AArch64.
Manually tested on arm as well.

Fixes #5463
derekbruening added a commit that referenced this pull request Apr 15, 2022
Fixes errors that can lead to crashes in relocate_dynamorio, where its
access to a function pointer and to the page size can both return
garbage pre-relocation.  We solve this with assembly to get the
current PC, and just using a 4K minimum page size for the backward
walk.

Tested with the PR #5462 branch where the new client.attach_blocking
test crashes without this fix on AArch64.
Manually tested on arm as well.

Fixes #5463
@derekbruening derekbruening requested a review from bete0 April 15, 2022 04:20
suite/tests/linux/infloop.c Outdated Show resolved Hide resolved
@derekbruening derekbruening merged commit 48c09cb into master Apr 15, 2022
@derekbruening derekbruening deleted the i38-skip-syscall-default branch April 15, 2022 21:48
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