DynamoRIO / DynamoRIO/dynamorio

earliest injection: handle extra early threads

Open
#627 0 comments 0 reactions 0 assignees View on GitHub
Migrated OpSys-Windows Priority-Low
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 15h
Merged PRs (30d)
31

Description

_From [bruen...@google.com](https://code.google.com/u/109494838902877177630/) on November 29, 2011 10:11:01_

my earliest injection ( issue #234 ) today restores its hook immediately. there
can be super-early threads when injected from outside (including from
system itself during shutdown and other times) (and really there's nothing
special about the main thread: whoever gets to init routine first is the
initializer and will then be the DR intializer). the idea is to leave the
hook but change it to spin (or if manage to get syscall support, wait) so
we can queue up these threads until DR is fully initialized.

note that in the past we discussed ways to try and avoid any other thread
being schedulable until we were set up, via SetProcessAffinityMask(0) or
sthg, but none of those panned out

this would block windbg's thread as well and if windbg can handle that
would enable debugging at pre-Ldr-init time

_Original issue: http://code.google.com/p/dynamorio/issues/detail?id=627_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.