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#2372: do not lose control in native_exec with default options #2380

Merged
merged 8 commits into from
Apr 23, 2017

Conversation

derekbruening
Copy link
Contributor

Fixes a regression from d7c0a6f which erroneously removed the retaddr
changing unless -native_exec_retakeover was set.

Augments the native_exec test with annotations so we can actually tell
whether we lost control.

Fixes #2372

Fixes a regression from d7c0a6f which erroneously removed the retaddr
changing unless -native_exec_retakeover was set.

Augments the native_exec test with annotations so we can actually tell
whether we lost control.

Fixes #2372
Copy link
Contributor

@zhaoqin zhaoqin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with some suggestion

"-no_early_inject -native_exec_list common.nativeexec -native_exec_retakeover" "")
torunonly(common.nativeexec_bindnow common.nativeexec common/nativeexec.c
torunonly(common.nativeexec_bindnow common.nativeexec common/nativeexec_exenative.c
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, for the base name

-> 40
calling loop_test
Not under DR!
all done
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the test, how do we know we regain control at some where? somewhere did not print "Not under DR"
It would better if we can print "Under DR" somewhere to show we regain the control.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests have the entire exe run natively. I think there is a library here? It's supposed to be under DR? I can try to link the annotations into the library.

@derekbruening
Copy link
Contributor Author

The appveyor failure is api.detach #2246.

@derekbruening derekbruening merged commit b5f4662 into master Apr 23, 2017
@derekbruening derekbruening deleted the i2372-native-exec-lose-control branch April 23, 2017 02:12
mikelui pushed a commit to VANDAL/dynamorio-sigil2 that referenced this pull request Apr 25, 2017
…moRIO#2380)

Fixes a regression from d7c0a6f which erroneously removed the retaddr
mangling unless -native_exec_retakeover was set.

Augments the native_exec test with annotations so we can actually tell
whether we lost control.

Unfortunately we have to disable the nativeexec tests on clang due to i#1799.

Fixes DynamoRIO#2372
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