Skip to content

mingit includes undocumented API call to ntdll.dll!NtAssignProcessToJobObject (and a few others) due to dependency in msys2.0.dll #5358

Open
@veronicagg

Description

Our team has identified msys2.0.dll calling undocumented Windows APIs like ntdll.dll!NtAssignProcessToJobObject - which is included in mingit/Git for Windows.
Code pointer in cygwin: https://github.com/search?q=repo%3Acygwin%2Fcygwin+NtAssignProcessToJobObject&type=code with a caller: cygwin/winsup/cygwin/resource.cc at 21a2c9db6952954608cdf92638b411b15e7606c6 · cygwin/cygwin

We believe the undocumented call should get replaced by the following documented API - AssignProcessToJobObject function (jobapi2.h) - Win32 apps | Microsoft Learn

Here are some other undocumented API calls also identified:

  • NtOpenJobObject
  • NtCreateJobObject
  • NtOpenMutant
  • NtQueryInformationJobObject
  • NtSetInformationJobObject

Could a change be driven to update the above? We will investigate further to try to propose a change. Thanks!

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions