DynamoRIO / DynamoRIO/dynamorio

drutil_expand_rep_string's jecxz has a short reach

Open
#1,461 2 comments 0 reactions 0 assignees View on GitHub
Component-API Component-Extension Migrated Priority-Low Type-Feature
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 18h
Merged PRs (30d)
30

Description

_From [bruen...@google.com](https://code.google.com/u/109494838902877177630/) on June 16, 2014 17:18:37_

The jecxz used by drutil_expand_rep_string() is marked meta (by drmgr: xref issue #676 ) so DR does not mangle it into a long jump. Currently (ok, soon) we
document this:
- WARNING: The added instructions include a jecxz instruction which
- will not be transformed into a 32-bit-reach instruction: thus,
- excessive added instrumentation may result in a reachability problem.

This issue covers trying to get it mangled.

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

Contributor guide

Open the contributing guide

Research direction

Start by reading drutil_expand_rep_string() and the drmgr handling referenced by xref issue #676. Determine how the meta jecxz can be mangled into a 32-bit-reach instruction, then verify that excessive added instrumentation no longer creates a reachability problem and that the warning remains accurate.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.