Repository navigation
fix(libSceUserService): recover account operation argument widths - #14851
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — changes requested
The ABI assertions match the declarations, but the PR does not provide the firmware locations needed to substantiate the recovered argument types.
What I ran
Reviewed head df86f86d04991b2a5ce21a85f6fd9305ccb37bf0 against base e0caf1360035286bd22b9f2a3030e97b880ffb28; the PR itself merges cleanly against that base. Environment: Debian 12, Linux 6.1, Python 3.11.2, GCC 12.2. No local build or CTest was run. The author reports a Windows build and ABI test pass; these were not independently reproduced.
git diff --check e0caf1360035286bd22b9f2a3030e97b880ffb28...df86f86d04991b2a5ce21a85f6fd9305ccb37bf0
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14851
python3 tools/pr_abi_audit.py --base e0caf1360035286bd22b9f2a3030e97b880ffb28 --head df86f86d04991b2a5ce21a85f6fd9305ccb37bf0 --json
python3 tools/pr_stack_check.py 14851 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14851-df86f86d0499/stack
gh pr checks 14851 --repo boykopovar/AnyPS5Results
| Check | Result | Note |
|---|---|---|
| Diff and conventions | passed | No whitespace errors; conventions passed. |
| Export audit | passed | No lexical ABI findings. |
| ABI type test | not run | Author reports it passes on Windows. |
| Stack | failed | Declared dependency heads are not included; two dependency PRs conflict with main. |
| Hosted checks | not run | Windows remains pending; library portability passed. |
| Local build and tests | not run | No local compile or CTest. |
Precheck and CI details
The precheck confirmed that head and base were unchanged. Its isolated snapshot lacked workspace-only ABI and test-quality helpers. Running the ABI audit in the workspace reported 541 symbols and zero findings. The CMake test registration is included in the diff.
The dependency chain is #9345 → #14212 → #12752 → #14829 → #14848 → #14851. The PR itself merges cleanly against current main; current #9345 and #14212 heads conflict with main, and the current #14829 and #14848 heads are not included in this branch.
gh pr checks 14851 --repo boykopovar/AnyPS5:
windows pending
linux skipping
register-context skipping
relinker skipping
relinker-asan skipping
write-watch skipping
library-portability pass
conventions pass
eligibility pass
intake pass
labels pass
report pass
Negative control
| Assertion | Change to code under test | Did the new test fail? |
|---|---|---|
| The three declarations have the recovered ABI types | No declaration was mutated; I did not compile the type test locally. | Could not be exercised here. |
Findings
Blocking
The PR and debt entry attribute the argument types to firmware 13.60, but provide no module address or disassembly location showing the argument count, widths, or whether request is a pointer versus an integer. The compile-time test only compares the declarations to the same expected types; it cannot validate the recovered ABI. The repository’s reverse-engineering guide requires the source location and what it establishes. Please cite the relevant libSceUserService.sprx locations for each export in the PR and debt entry, and state what remains unverified. If the exact types are not established by the module evidence, keep the signatures marked as unverified rather than presenting the assertions as validation.
Non-blocking
The declared dependency chain is not yet integrated: #9345 and #14212 currently conflict with main, and the current #14829/#14848 heads are not included here. Since the PR lists these dependencies, I am not asking for an unrelated rebase.
Sources
- Repository guidance on citing module evidence and what it establishes
- Repository rule for ABI information inferred from call sites
- Firmware ABI claims in the changed debt entry
- Updated declarations at this head
- Compile-time ABI assertions at this head
Not verified
No local compile, CTest, firmware run, console behavior, or source-module inspection was performed. The Windows and portability jobs are pending; Linux and specialized jobs were skipped. The reported Windows build and test results were not reproduced here.
To get this to a good state
Please add the source locations and identify which evidence establishes each argument’s count, type and width. When the evidence or head changes, I will rerun the precheck, diff and ABI audits, stack check, and review the updated test; hosted checks should be refreshed for that head.
|
The requested source locations are now in the PR and debt entry. Login's second argument is copied as 64 opaque bits at helper 0xd0; there is no dereference establishing a pointer, so I changed void* to std::uint64_t and explicitly retained the semantic-type/signedness caveats. Logout and DestroyUser payload sites are cited separately. The declaration test passed locally and is described as host consistency coverage, not firmware validation. I also removed the unrelated dependency chain; these exports still throw and require no settings/callback/group backend. AI-assisted: yes. |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
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.
|
9714254 to
95ef139
Compare
… back Main removed the IsUserStorageAccountBound and IsKratosPrimaryUser entries that said they return false, since both exports throw (see the entries near the top). The merge of main restored them.
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this ABI declaration change; the host signature assertions match the revised declarations, while firmware ABI evidence remains static inspection as documented.
What I ran
Reviewed head 7188dc433a38c6b48e5ce8588f00fd27da9525cf using the prepared diff and pinned reader. No commands or tests were run by me.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | All five changed files read |
| Programmatic checks | not run | Author reports a host signature check; not independently run |
| Firmware behavior | not run | Evidence is static inspection, not console measurement |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The firmware ABI interpretations and runtime behavior were not independently verified. The PR description reports a Windows host compile/run, but that check was not performed in this review. No changed files were excluded: files.json was unavailable in the review folder, and the manifest lists all five changed files as included and read.
To get this to a good state
Nothing is required.
What
Recover argument storage widths for Login, Logout and DestroyUser while retaining their throwing bodies. Login now accepts an opaque 64-bit request value; the module does not dereference it, so this PR does not claim it is a pointer.
Firmware 13.60 libSceUserService.sprx: Login entry 0x28c0 calls helper 0xd0, which packs a 32-bit user value and a 64-bit opaque value into a 16-byte payload for query 0x30000. Logout at 0x2a80 calls 0x150, packing two 32-bit values into 8 bytes for 0x30001. DestroyUser at 0x2fb0 calls 0x260, packing one 32-bit value for 0x30003. All poll through 0x10c0. Exact source-language types, signedness and request semantics remain unverified. This is static inspection, not a console measurement; the debt entry records the module SHA-256 and limitations.
The earlier dependency list described adjacent work, not functional prerequisites: this ABI-only change uses no settings, callback, group, user-name or formatting implementation from those PRs. Shared-file reconciliation is still required if they land first.
Tested
Windows x86_64, WinLibs GCC: compiled and ran GuestUserServiceAbi.cpp against the revised declarations. Passed. This checks host type consistency, not the firmware ABI. Conventions against upstream/main and diff whitespace checks passed. New-head hosted checks are pending; no new console or full-platform runtime result is claimed.
Checklist
main; no other open PR implements the same functionsNotImplemented_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)