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
  • Issues
  • #1707
Closed
Open
Issue created Jun 16, 2015 by Administrator@rootContributor

dr_insert_clean_call creates non-encodable instruction

Created by: algr

In 64-bit mode

    dr_insert_clean_call(drcontext, ilist, where, (void *)clean_call_mem,
        false, 3,
        OPND_CREATE_INT32(write),
        opnd_create_pc(instr_get_app_pc(where)),
        opnd_create_reg(reg1));

the second operand creates

mov    $0x00007ff7a71a3213 -> %rsi

which doesn't encode. The call to dr_insert_clean_call succeeds (i.e. doesn't assert) in debug mode. Subsequent attempts to encode or disassemble the instrumented block fail.

I guess it's expected that dr_insert_clean_call will insert only encodable instructions?

And surely this should encode in 64-bit mode, to 'movabs' (aka 'movabsq'), 0x48 0xbe ...

Assignee
Assign to
Time tracking