Skip to content

[NTOS:MM] Release system image PTEs on unload#9078

Open
ahmedarif193 wants to merge 4 commits into
reactos:masterfrom
ahmedarif193:pr-mm-cc-mai-2026-sysldr
Open

[NTOS:MM] Release system image PTEs on unload#9078
ahmedarif193 wants to merge 4 commits into
reactos:masterfrom
ahmedarif193:pr-mm-cc-mai-2026-sysldr

Conversation

@ahmedarif193

@ahmedarif193 ahmedarif193 commented May 28, 2026

Copy link
Copy Markdown
Contributor

release system image mappings on unload
MmUnloadSystemImage had an explicit leak placeholder for driver images. replace it with the matching teardown for the image mapping and return the reserved system PTE range

CORE-8294

Note: Needs #9132 merged first.

Testbot runs (Filled in by Devs)

  • KVM x86:
  • KVM x64:

@github-actions github-actions Bot added the kernel&hal Code changes to the ntoskrnl and HAL label May 28, 2026
@binarymaster binarymaster added the bugfix For bugfix PRs. label May 28, 2026
@github-project-automation github-project-automation Bot moved this to New PRs in ReactOS PRs May 28, 2026
Comment thread ntoskrnl/mm/ARM3/sysldr.c Outdated
Co-authored-by: Timo Kreuzer <timo.kreuzer@reactos.org>
@ahmedarif193 ahmedarif193 marked this pull request as ready for review June 6, 2026 16:33
@HBelusca

HBelusca commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

The corresponding JIRA issue is probably https://jira.reactos.org/browse/CORE-8294

@ahmedarif193 ahmedarif193 marked this pull request as draft June 9, 2026 04:41
@ahmedarif193

Copy link
Copy Markdown
Contributor Author

@HBelusca but i moved this to draft because on non floppy based systems like uefi calling unloading floppy will crash the kernel, I'll push that fix first

Comment thread ntoskrnl/mm/ARM3/sysldr.c Outdated
Comment thread ntoskrnl/mm/ARM3/sysldr.c Outdated
Comment thread ntoskrnl/mm/ARM3/sysldr.c Outdated
ahmedarif193 and others added 2 commits June 10, 2026 11:10
Co-authored-by: Timo Kreuzer <timo.kreuzer@reactos.org>
Co-authored-by: Timo Kreuzer <timo.kreuzer@reactos.org>
@ahmedarif193 ahmedarif193 force-pushed the pr-mm-cc-mai-2026-sysldr branch from d456266 to d383bfe Compare June 10, 2026 09:16
@ahmedarif193 ahmedarif193 marked this pull request as ready for review June 10, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix For bugfix PRs. kernel&hal Code changes to the ntoskrnl and HAL

Projects

Status: New PRs

Development

Successfully merging this pull request may close these issues.

4 participants