mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #1772] windows-boot: recover private stacks for manually mapped images #1785
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1785
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1772
Author: @sodove
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:feat/windows-boot-mapped-image-stack📝 Commits (1)
056e682windows-boot: recover private stacks for manually mapped images📊 Changes
3 files changed (+540 additions, -0 deletions)
View changed files
📝
scripts/windows-boot/README.md(+30 -0)➕
scripts/windows-boot/mapped_stack.py(+313 -0)➕
tests/test_mapped_stack.py(+197 -0)📄 Description
Claimed in the coordination issue as WIN-BOOT-MAPPED-IMAGE-STACK.
Depends on: #1693 (produces the private exception dump).
What and why
The initial stack can stop inside a PE that the runtime mapped outside the Windows module list. A new offline command takes the private dump and the exact mapped PE. It matches captured instructions to a unique location in an executable section, derives the actual base, and checks for a file-backed x64 unwind entry at the exception RIP. Available header and unwind bytes must agree with the local image.
The tool gives x64 CDB a fixed staging name, disables network symbols and shell commands, selects the saved exception context, and writes the recovered frames to a new private file. Console output contains the outcome and frame count. The Windows boot README documents the command and its limits, including exit-only snapshots and dumps with insufficient instruction bytes.
Tested
ed94fbef9and the current #1693 head.GPUs tested: n/a (CPU-only synthetic Windows debugging).
AI-assisted: yes
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.