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
  • #5442
Closed
Open
Issue created Apr 03, 2022 by Administrator@rootContributor

XCHG is mis-decoded as NOP

Created by: dvyukov

Decoding this byte sequence:

echo -en "\x66\x41\x90" > /tmp/bin | objdump -mi386 -Mx86-64 -b binary -D /tmp/bin
   0:	66 41 90             	xchg   %ax,%r8w

objdump correctly says it's an XCHG. While DynamoRIO decodes it as just nop. There are several 90 encodings that are XCHG rather than NOP:

90+rw XCHG AX, r16 Exchange r16 with AX.
90+rw XCHG r16, AX Exchange AX with r16.
90+rd XCHG EAX, r32 Exchange r32 with EAX.

On commit 6e887383.

Assignee
Assign to
Time tracking