Repository navigation
fix(libSceGnmDriver): guard workload output pointers - #18212
Merged
oneandonlydean merged 6 commits intoNov 18, 2026
Merged
Conversation
Contributor
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
AI-assisted: yes. |
|
Exports with a name or library/NID already present in
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
DonRyuzaki
force-pushed
the
feat/gnm-workload-lifecycle
branch
from
November 10, 2026 22:11
c3f27a5 to
c1d72b9
Compare
5 tasks done
12 tasks done
MarcZX10
reviewed
Nov 12, 2026
MarcZX10
left a comment
Contributor
There was a problem hiding this comment.
Workload lifecycle exports for the regular GNM driver — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
- Head
c1d72b98d982407ab3a7649d24cb7bddbce7eaa2, basemain. - Read the PR description, the commit list, the manifest, and the changed hunks of all six reviewed files in
diff.patch. Read the head ofcore/libs/tests/GuestGnmDriver.cpp(lines 1–30) through the reader. - Files read: 6 of 6 reviewed, as diff hunks only. No files were excluded.
- No build and no test run.
python3 repo_read.py search "5udAm+6boVg"
python3 repo_read.py search "_nid_disambig1"
python3 repo_read.py cat core/libs/tests/GuestGnmDriver.cpp 1 30Results
| Check | Result | Note |
|---|---|---|
| Logic against description | passed | Helper rules match the stated ones |
| Neo provider behavior | passed | Moved bodies are unchanged |
| Guest test assertions | not run | Read against the code, not executed |
| Build and guest tests | not run | Author-reported only |
| Hosted CI | not run | Not checked |
Findings
Blocking: none.
Non-blocking: none found in the changed lines.
Not verified
- The NID values
5udAm+6boVg,ihxrbsoSKWcandFa3x75OOLRA. The repository has no text match for them, and the NID mapping comes from build tooling that I did not check. - The shadPS4 behavior the description cites. I did not fetch it.
- The build, the guest test runs and the PRX SHA-256 values. They are author-reported and were not run here.
- Hosted CI on this head.
- Overlap with open PRs #17393, #17711, #17942, #16882, #16238, #16360 and #6977.
- Full text at the head of
Export.cpp(both providers),Api.hpp, the rest ofGuestGnmDriver.cppand the debt file. I read only the diff hunks of these. - Console behavior of the three calls, which the description says is unmeasured.
To get this to a good state
Nothing is required.
Merged
12 tasks done
…-20261115 # Conflicts: # core/libs/prx/libSceGnmDriver/Export.cpp # core/libs/prx/libSceGnmDriverForNeoMode/Export.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Current main merged #18235, which already exports the regular GNM workload lifecycle functions. This PR now guards the output pointers in
sceGnmCreateWorkloadStreamandsceGnmBeginWorkloadwithGuestCopyOut_nid_no_patch. An invalid guest output address returns the existing code 3 instead of being dereferenced. Valid outputs, stream boundaries, andsceGnmEndWorkloadbehavior stay as implemented on main. The NeoMode provider already usesGuestCopyOut_nid_no_patch.The existing
guest_gnm_drivertest now checks invalid output addresses for both functions, including the invalid-stream path. This is a pointer-safety fix; no new exports are added.Tested
Head
8c362ff625287d52b6096239da42bd2facce8e40, merged with upstream main1a4e8ab22c2f050cbaa177480fe98e11d187e9c1. The patch against that main changes onlycore/libs/prx/libSceGnmDriver/Export.cppandcore/libs/tests/GuestGnmDriver.cpp.BUILD_TESTING=ON:cmake --build build --target guest_gnm_driver_tests --parallel 8passed on the merged tree.ctest --test-dir build --no-tests=error --output-on-failure -R '^guest_gnm_driver$': 1/1 passed on that tree.git diff --check upstream/main HEADandpython3 -B tools/check_conventions.py --base upstream/main: passed on the committed head.Checklist
main; no other open PR implements this pointer-safety fixNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)