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

i#5131 new linux syscalls: fail early for clone3 enosys

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Abhinav Anil Sharma requested to merge i5131-detect-clone3-enosys into master Nov 19, 2021
  • Overview 12
  • Commits 16
  • Pipelines 0
  • Changes 2

Adds support to detect at init time whether the clone3 syscall is supported by the system or not. Use this to fail early if a clone3 syscall is made and avoid doing the pre-syscall work.

Adds a test that attempts the same clone3 syscall as the os.c code and checks that it returns EINVAL on systems that support clone3 and ENOSYS on systems that don't.

Manually verified on a system with Linux kernel 4.15 (that does not have the clone3 syscall) that DR's pre-syscall handling of clone3 indeed returns early with this fix.

Fixes the size of the result var for the syscall in the test, which should be 64-bit on 64-bit systems.

Issue: #5131 (closed), #5221

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i5131-detect-clone3-enosys