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
  • !4695

i#4680 aarch xl8: Fix IT state tracking bugs

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i4680-it-xl8 into master Jan 27, 2021
  • Overview 1
  • Commits 2
  • Pipelines 0
  • Changes 6

Fixes 3 issues with IT state tracking for ad-hoc decoding/encoding uncovered by -stress_recreate_state:

  • Fixes a use-after-free by adding a hook in instr_destroy() to reset the IT state if the stored instruction is freed, along with a state reset in instrlist_clear().

  • On decode, limit advance-undo prior-instruction matching to the current instruction's Thumb size, to avoid incorrect advance-undo when switching between decoding sequences. Also, check for the current instruction being OP_it via raw byte checks to again avoid incorrect advance-undo.

  • On encode, walk backward to re-identify IT blocks after a state reset.

Tested on the forthcoming common.broadfun-stress test on ARM.

Issue: #4680 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i4680-it-xl8