Repository navigation
Conversation
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against b63d1183dd:
- Conventions:
tools/check_conventions.pypassed. - Build:
guest_voice_qos_testsbuilt cleanly. - CTest (
guest_voice_qos,guest_voice_qos_app_type_0x10000000):1/2 Test #5181: guest_voice_qos ....................... Passed 0.01 sec 2/2 Test #5182: guest_voice_qos_app_type_0x10000000 ... Passed 0.01 sec 100% tests passed, 0 tests failed out of 2 - Negative control: with
core/libs/prx/libSceVoiceQoS/Export.cppreverted tomainand the new tests kept, the suite fails:Restoring the change makes it pass again.1/2 Test #5181: guest_voice_qos .......................Subprocess aborted***Exception: 0.13 sec 2/2 Test #5182: guest_voice_qos_app_type_0x10000000 ...Subprocess aborted***Exception: 0.15 sec 0% tests passed, 2 tests failed out of 2 - Code reading:
- Verified GuestWritable_nid_no_patch checks upfront across CreateEndpoint, sceVoiceQoSCreateLocalEndpoint, sceVoiceQoSConnect, sceVoiceQoSReadPacket, sceVoiceQoSGetLocalEndpoint, and sceVoiceQoSGetRemoteEndpoint ensuring no partial mutation occurs on unwritable memory
- Verified errno preservation semantics with savedErrno around GuestWritable_nid_no_patch and GuestCopyIn/GuestCopyOut calls
- Verified sceVoiceQoSWritePacket safely reads guest size via CopyIn (GuestCopyIn_nid_no_patch) before using the packet
- Verified error return codes (SCE_VOICE_ERROR_LIBVOICEQOS_ARGUMENT_INVALID and SCE_VOICE_ERROR_LIBVOICEQOS_LIMIT) match PS5 libSceVoiceQoS specifications
- Verified technical debt fragment format in docs/dev/debt/changes/fix-voiceqos-output-pointer-safety.md and compliance with AGENTS.md conventions
Looks Good To Me
|
Windows result for head Host: Windows 11 26300, Intel i7-12700K, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r6), Release, The tests this PR adds or extends, AI-assisted: yes (Claude Code), the runs and the numbers above are from this machine. |
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — comments
Changes are required before merge: the implementation does not preserve caller errno on every failure path as described, and the packet write size is copied but never used.
What I ran
Reviewed head b63d1183dd4886f7f2b5a728abacc0d74679da9a through repo_read.py. No build or tests were run. The author reports Linux x86_64 build, test, and convention checks in the PR description; these were not independently run.
Results
| Check | Result | Note |
|---|---|---|
| Source review | passed | All three changed files read |
| Build and tests | not run | Author-reported only |
| Conventions | not run | Author-reported only |
Findings
Blocking
None verified.
Non-blocking
core/libs/prx/libSceVoiceQoS/Export.cpp:298:sceVoiceQoSWritePacketsaveserrno, then returns afterCopyInwithout restoring it. SinceCopyInitself restoreserrno, this does not currently leak errno changes from the copy, but the localsavedErrnois unused and the description's broader claim that all error paths restore caller errno is not established for this function. Consider removing the unused variable or explicitly restoring it on failure.core/libs/prx/libSceVoiceQoS/Export.cpp:297: The copiedlocalSizeis never read. The pointer is now safely read, but no size validation or packet handling uses the value; clarify whether this is intentional stub behavior or apply the size constraints the API requires.
Not verified
No build, test, or convention command was run. files.json was not available through the reader listing; the manifest lists three changed files, and all three were read. Repository behavior beyond the reviewed source ranges was not verified.
To get this to a good state
Nothing is required. Optional: clarify the unused localSize and savedErrno handling in sceVoiceQoSWritePacket.
|
@MarcZX10 Rebased onto |
b63d118 to
dec55eb
Compare
dec55eb to
74e67e3
Compare
|
Updated and rebased onto |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The inspected changes implement checked guest memory access for VoiceQoS outputs and add focused coverage; no verified defect blocks merging.
What I ran
Reviewed head 74e67e3eb9bf1cafc50c8a90043ac797b3b39ce7 using repo_read.py and the prepared review bundle. No build or tests were run.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed files | passed | All three changed files read |
| Targeted helper context | passed | Host-write and guest-copy behavior inspected |
| Tests | not run | Only author-reported test results available |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The author reports Linux x86_64 Release tests and convention checks passed; these were not run during this review. Windows behavior, physical-console behavior, and the full build were not verified. Files read: core/libs/prx/libSceVoiceQoS/Export.cpp, core/libs/tests/GuestVoiceQoS.cpp, docs/dev/debt/changes/fix-voiceqos-output-pointer-safety.md, core/libs/prx/libc/include/GuestArena.hpp, core/libs/prx/libc/src/General.cpp, and core/libs/prx/libc/src/GuestArena.cpp. No changed files were excluded; all three reviewed files were included in the manifest.
To get this to a good state
Nothing is required.
|
Thanks for the work. I'm closing this because If you have console evidence for that answer, or a case |
What
GuestWritable_nid_no_patchandGuestCopyOut_nid_no_patch/CopyOutpaths inGuestArena::HostWriteacrossCreateEndpoint,sceVoiceQoSCreateLocalEndpoint,sceVoiceQoSCreateRemoteEndpoint(including the slot-limit fallback path),sceVoiceQoSConnect,sceVoiceQoSReadPacket,sceVoiceQoSGetLocalEndpoint, andsceVoiceQoSGetRemoteEndpoint, preserving callererrno.*sizesafely viaCopyIn(GuestCopyIn_nid_no_patch) insceVoiceQoSWritePacket.core/libs/tests/GuestVoiceQoS.cppto use armedGuestArenawrite-watched destination pages (PAGE_READONLYassertion on Windows,GuestArenaCollectWrites/GuestWriteWatchCollectdirty-page verification) across all 7 write-watched paths including the endpoint limit check, plus0x02read-only refusal checks.docs/dev/debt/changes/fix-voiceqos-output-pointer-safety.md.Tested
/tmp/anyps5_verify_build, rebased ontoorigin/main(5f04682cef, PR head74e67e3eb9):ctest --test-dir /tmp/anyps5_verify_build --output-on-failure -R "^guest_voice_qos": 2/2 Passed (guest_voice_qosandguest_voice_qos_app_type_0x10000000).python3 tools/debt_fold.py --checkandpython3 tools/check_conventions.py --base origin/main: Passed cleanly.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)