fix(libSceShellUIUtil): guard guest write check with GuestArena::HostWrite #27996
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27996"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by NobleBrains on 2026-11-28T02:09:22Z.
What
Guard guest write checks in
libSceShellUIUtilwithGuestArena::HostWriteso invalid or unmapped guest pointers fail cleanly instead of crashing the host.Tested
guest_shell_ui_util(1/1 passed)Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch).mdfiles or images added to the repositorySummary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-11-28T05:39:03Z.
Review: APPROVED
Checked head
7c0692ec78. All on Windows 11 with WinLibs GCC 15.2 (Release), applied tomain4c7578e0a4together with #27997, #27978, #27975, #27973, #27971, #27969, #27967, #27964, #27958, #27950, #27949, #27946, #27945, #27943, #27938, #27936.tools/check_conventions.py --headandtools/debt_fold.py --checkpassed and the full build succeeded.guest_shell_ui_utilpasses. This is the platform where the change matters: on WindowsGuestWritable_nid_no_patchreads the page protection, so a write-watched guest page (PAGE_READONLY) reads as unwritable unlessHostWriteis open. The guard closes whenIsValidGuestWritereturns, which is fine here becausesceShellUIUtilGetAppUrlwrites nothing beforeCallService. None of the existing tests putsoutputoroutputSizeunder a write watch, so the guarded path itself is not exercised. In the full CPU suite (5,131 tests) the only failures are unrelated:windows_read_trap_unknownfails onmaintoo (fixed in #28028), andframe_capture_minimizeis a timeout under load that passes on its own.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T10:39:11Z.
Review: COMMENTED
Reviewed — no blocking findings
The change adds a host write guard before guest write validation; I found no verified blocking defect in the changed code.
What I ran
Reviewed head
7c0692ec785d83cdbe686b3eae414c945e5e4787. I did not run commands or tests; this session provided repository reader tools only. The author reports the Linuxguest_shell_ui_utiltest passed. I readcore/libs/prx/libSceShellUIUtil/Export.cppand targeted context incore/libs/prx/libc/include/GuestArena.hpp,core/libs/prx/libc/src/General.cpp, andcore/libs/prx/libc/src/GuestArena.cpp. The manifest lists one changed file and marks its full text included; no exclusions are listed there.Results
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
I did not execute the reported test or verify behavior on Windows, macOS, or a physical console. No changed files were excluded from review according to the manifest.
To get this to a good state
Nothing is required.