[PR #2850] [MERGED] Implement sceKernelGetModuleInfo, sceKernelGetModuleInfoInternal, and sceKernelGetModuleList #3028

Closed
opened 2026-02-27 22:02:10 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2850
Author: @StevenMiller123
Created: 4/27/2025
Status: Merged
Merged: 4/27/2025
Merged by: @georgemoralis

Base: mainHead: moduleinfo


📝 Commits (7)

  • a4fb108 Fix GetModule exception
  • ce4a00a Prevent OOB writes in add_segment
  • 0a0d76e Implement sceKernelGetModuleInfo, sceKernelGetModuleInfoInternal, sceKernelGetModuleList
  • 29c6f1d Clang
  • c6fab33 Accurate error returns
  • 7c60601 Accurate error checks in ModuleInfo functions
  • 52222fa Clang

📊 Changes

3 files changed (+68 additions, -5 deletions)

View changed files

📝 src/core/libraries/kernel/process.cpp (+59 -0)
📝 src/core/linker.h (+1 -1)
📝 src/core/module.cpp (+8 -4)

📄 Description

These are implemented based on real hardware behavior and a homebrew sample written by red_prig.
Also contains a bugfix for a broken index check in Linker::GetModule, and prevents possible OOB memory writes in Module::LoadModuleToMemory


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/2850 **Author:** [@StevenMiller123](https://github.com/StevenMiller123) **Created:** 4/27/2025 **Status:** ✅ Merged **Merged:** 4/27/2025 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `moduleinfo` --- ### 📝 Commits (7) - [`a4fb108`](https://github.com/shadps4-emu/shadPS4/commit/a4fb108e3a27add952e97779204043e03479cd64) Fix GetModule exception - [`ce4a00a`](https://github.com/shadps4-emu/shadPS4/commit/ce4a00af3d292e4e6b468adb517c5e58e62b7b46) Prevent OOB writes in add_segment - [`0a0d76e`](https://github.com/shadps4-emu/shadPS4/commit/0a0d76e485bf7e5ffbf934423727128c4673d16e) Implement sceKernelGetModuleInfo, sceKernelGetModuleInfoInternal, sceKernelGetModuleList - [`29c6f1d`](https://github.com/shadps4-emu/shadPS4/commit/29c6f1d34e16a82333cb90c5c1cd4013255183ac) Clang - [`c6fab33`](https://github.com/shadps4-emu/shadPS4/commit/c6fab33e04fdf252dc03a1d0a2f017688792bca7) Accurate error returns - [`7c60601`](https://github.com/shadps4-emu/shadPS4/commit/7c6060108386b391220fde8da62a92ae0ed24475) Accurate error checks in ModuleInfo functions - [`52222fa`](https://github.com/shadps4-emu/shadPS4/commit/52222fa37917aa3f575a53542ca3cad4081bd65e) Clang ### 📊 Changes **3 files changed** (+68 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/process.cpp` (+59 -0) 📝 `src/core/linker.h` (+1 -1) 📝 `src/core/module.cpp` (+8 -4) </details> ### 📄 Description These are implemented based on real hardware behavior and a homebrew sample written by red_prig. Also contains a bugfix for a broken index check in Linker::GetModule, and prevents possible OOB memory writes in Module::LoadModuleToMemory --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:02:10 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#3028
No description provided.