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

i#3812: Preserve AVX state on sigreturn

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i3812-ymmh-sigstate into master Sep 05, 2019
  • Overview 36
  • Commits 3
  • Pipelines 0
  • Changes 9

Fixes a bug where the trailing magic word was missing from the signal frame, causing the kernel to zero out rather than restore AVX+ state. We copy the whole extended state at once now, rather than piecemeal, with checks for both magic words.

Fixes os_forge_exception() to properly set the fpstate magic words and sizes.

Disables the 32-bit xsave in save_xmm(), which causes failures on recent processors, in order to better test the changes here for 32-bit. A complete fix is still needed there but that is i#3256.

Updates comments to clarify the confusing extended_size vs xstate_size and magic word locations for 64-bit and 32-bit.

Augments the linux.sigcontext test to test that SIMD state is preserved across sigreturn.

Augments the api.detach_state test to test that ymmh, zmm, and opmask state is preserved across detach.

Issue: #3812 (closed), #3256 Fixes #3812 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i3812-ymmh-sigstate