Skip to content

Add usersim ring mapping helpers - #322

Merged
Alan Jowett (Alan-Jowett) merged 1 commit into
mainfrom
fix-5434-ring-buffer-mapping
Aug 4, 2026
Merged

Add usersim ring mapping helpers#322
Alan Jowett (Alan-Jowett) merged 1 commit into
mainfrom
fix-5434-ring-buffer-mapping

Conversation

@Alan-Jowett

Copy link
Copy Markdown
Member

This pull request adds several new memory management and object management APIs to the USERSIM interface, along with their corresponding stub or Windows-based implementations. These changes improve the completeness of the USERSIM API, enabling more advanced memory and object operations.

Memory management API additions

  • Added declarations and stub implementations for MmProbeAndLockPages and MmUnlockPages, providing interfaces for locking and unlocking pages described by an MDL. [1] [2]
  • Implemented MmMapViewInSystemSpace and MmUnmapViewInSystemSpace using Windows API functions (MapViewOfFile and UnmapViewOfFile), allowing mapping and unmapping of sections in system space. [1] [2]

Object management API additions

  • Added declaration and implementation for ObOpenObjectByPointer, which duplicates a handle for a given object using DuplicateHandle. [1] [2]

Miscellaneous

  • Included the utilities.h header in mm.cpp and ob.cpp to support error handling and logging in the new implementations. [1] [2]

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: e4f2928d-308e-4fec-8aa3-280de1761d0c
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
@Alan-Jowett
Alan Jowett (Alan-Jowett) merged commit 40864f6 into main Aug 4, 2026
12 checks passed
@Alan-Jowett
Alan Jowett (Alan-Jowett) deleted the fix-5434-ring-buffer-mapping branch August 4, 2026 20:03
@github-project-automation github-project-automation Bot moved this from Todo to Done in eBPF for Windows Triage Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants