fix(libkernel): reject mprotect crossing guest thread stack bounds on Windows #4113
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4113"
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 Feuris on 2026-10-11T23:31:12Z.
What
Fixes #4088:
sceKernelMprotectandmprotectaccepted ranges that crossed a guest thread stack's bounds or touched the host stack margin on Windows since #3788, because the committed private memory fast path applied native protection to any unregistered host region.IsGuestThreadStackAllocationinPthreadto identify thread stack allocation bases on Windows.DoMprotect.GuestKernelStackProtectto assert that ranges crossing stack boundaries and host margins are rejected with -1.Closes #4088.
Tested
-fsyntax-onlyon modified PRX and test sources);tools/check_conventions.py --base origin/mainandgit diff --checkpass cleanly.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by Feuris on 2026-10-12T01:48:23Z.
Closing as superseded by #4169. Glad to see the Windows test suite green again!
Pull request closed