Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Merge requests
  • !5205

i#4958: Take over at app context, not DR return

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i4958-start-at-app into master Nov 15, 2021
  • Overview 1
  • Commits 4
  • Pipelines 0
  • Changes 2

Switches Windows default map injection to record an app mcontext and take over there, rather than taking over on the return path out of DR functions and confusing clients with two initial blocks in the DR library.

Tested by observing the block sequence in the log file. Without the fix:

  Fragment 1, tag 0x000000001502643b, flags 0x1000630, shared, size 19:
          [dynamorio.dll~dynamorio_app_init_and_early_takeover+0x37b,~dr_persist_start-0x
  Fragment 2, tag 0x0000000015349c23, flags 0x1000030, shared, size 44:
          [dynamorio.dll~dynamorio_earliest_init_takeover+0x2d,~dr_virtual_query-0x24dfd]
  Fragment 3, tag 0x00007fff20502630, flags 0x9000630, shared, size 34:
          [ntdll.dll!RtlUserThreadStart]

With the fix:

  Fragment 1, tag 0x00007ffc25822630, flags 0x9000630, shared, size 34:
          [ntdll.dll!RtlUserThreadStart]

Issue: #4958 (closed), #626 (closed) Fixes #4958 (closed) Fixes #626 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i4958-start-at-app