fix(relinker): enforce page alignment bounds and audit WindowsMappings write-watch #15900
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15900"
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 slopgobblercobbler on 2026-11-04T22:48:11Z.
Depends on: none
What
ProgramHeaderLayoutBuilder.cpp.WindowsLoadImage.cpp.RelinkerPageAlignmentAsanTests.cppcovering 16KB/4KB page alignment, address overflow rejection, unsupported permission flags, WindowsLoadImage segment bounds, write-watch boundary alignment safety, and ASAN guard page allocation isolation safety.WindowsWriteWatch.cpp, validating boundary write tracking, MapAlias alignment enforcement, BeginHostWrite/EndHostWrite brackets, and ResidentSpan consistency.Tested
-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON.relinker_page_alignment_asan_tests(10/10 cases passed),guest_load_ranges_tests(all cases passed),elf_reader_bounds_tests(all cases passed),program_layout_ranges_tests(29 cases passed), andsection_header_ranges_tests(21 cases passed), with 3x repeat verification.WindowsWriteWatch.cppunder MSVC C++20 with all test cases passing cleanly in default mode and--verify-directunderAPS5_VERIFY_DIRECT_COLLECT=1.python tools/check_conventions.py --base upstream/main --head HEAD: 0 findings reported.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)Pull request closed