-
Notifications
You must be signed in to change notification settings - Fork 255
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
win_injector: seperate readfile and writefile to different files #1319
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Can one of the admins verify this patch? |
@drakvuf-jenkins This is OK to test |
manorit2001
force-pushed
the
readfile-refactor
branch
from
October 22, 2021 15:20
84a2bce
to
638ef66
Compare
Hi Tamas, Do I need to shorten the switch cases reported by codeQL or would it be fine? |
CodeQL looks fine, I think it's good to merge |
tklengyel
pushed a commit
that referenced
this pull request
May 31, 2022
* libinjector, win: Update prototypes of cleanup() helpers Pass drakvuf as explicit argument to simplify a future commit. This also improves consistency with the corresponding code for Linux. * libinjector, win: Fix intermittent timeouts After restoring the saved CPU registers, each injection method waits for the next trap before exiting the injector loop. This means that the target thread, continuing to execute the original program, needs to trigger the same trap before the injector can finish. And that leads to unpredictable waits. For example, waits of a few minutes were observed when testing injector against explorer.exe under Windows 7 Enterprise (x64). Further, injector could wait forever in case the target thread never revisits the trap. The waits were introduced when refactoring injection methods in commit 3fdb370 ("win_injector: seperate readfile and writefile to different files (#1319)"). Fix this issue by arranging for the injector loop to exit immediately after restoring the saved CPU registers. * libinjector, win: Update signal number passed to drakvuf_interrupt() Use SIGINT instead of SIGDRAKVUFERROR when the injector succeeded.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related #936
This is tested on Win7 x64 only