Skip to content

feat(libSceAddressSanitizer): add allocator, UBSan and runtime services - #222

Open
Thimo188 wants to merge 20 commits into
mainfrom
upstream-pr/13331
Open

Thimo188 wants to merge 20 commits into
mainfrom
upstream-pr/13331

Conversation

@Thimo188

@Thimo188 Thimo188 commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Imported from boykopovar/AnyPS5#13331, originally opened by PrivacyOnion.

Source commit: 60ebf06e9c74bd630df214db383b735b909d765e. The import branch preserves this fetched upstream PR snapshot. The description and validation below are copied from upstream; no new code changes or test runs were made for this import. Original reviews, discussions, and attachments remain at the linked upstream PR.


What

Follow-up to boykopovar#13265. This change replaces 185 additional throwing function stubs and replaces two function stubs with data exports. Relative to boykopovar#13265, the library has 285 implemented function bodies out of 299 functions, 14 throwing stubs, and two data exports. The progress script counts functions and does not include the two data objects.

This PR is stacked on boykopovar#13265: its head 78dc5a8136054ba2b62a68e0cf83de7b989f1de3 is a real ancestor. main d6401d794e47ef5abef80502c2ac1bfa03d7b20a is integrated. The 185 additional functions and two data objects are measured against boykopovar#13265; the main-to-head diff also includes the prerequisite's 100 functions until it merges. Refresh the branch after boykopovar#13265 lands.

Implemented areas:

  • Instrumented memory intrinsics, experimental access callbacks and contiguous/double-ended container annotations.
  • UBSan diagnostics, deduplication, recovery and fatal variants, with LLVM 18.1.8 metadata and legacy LLVM 3.8 type-mismatch/nonnull-return layouts.
  • Heap allocation, alignment, redzones, quarantine, ownership/size queries and allocation/free context queries.
  • Fake stacks, no-return cleanup, fiber switching, global/ELF-global registration, address location and ODR diagnostics.
  • Explicit coverage dumps, report paths/descriptors, host stack capture and module/offset formatting.
  • Data exports: __asan_option_detect_stack_use_after_return is a four-byte int; __ubsan_vptr_type_cache contains 128 pointer-sized hashes (1024 bytes on x86-64).

The Windows backing fix remains in this revision: heap and fake-stack backing use bounded VirtualAlloc2 allocations, their application addresses exclude the shadow, their projected shadow is available, and VirtualFree(..., MEM_RELEASE) releases the reservations. The shared range guard rejects shadow, overflowing and out-of-bounds application ranges. Global registration rejects null nonempty descriptor arrays and byte-count overflow. Linux retains the cached-fake-stack behavior of its TLS fast path.

Provenance and dependency integration:

The runtime adapts compiler-rt implementation algorithms and diagnostic text. The adapted implementation, including portions inherited from boykopovar#13265, now lives in the compiler-rt port, built from source through CMake's compiler_rt_anyps5 object target. .gitmodules records 3rdparty/compiler-rt with URL https://github.com/PrivacyOnion/compiler-rt.git; its gitlink is pinned to 21681889623a86177efe37b19be8a69fb84f472e. The fork is based on LLVM 18.1.8 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff. Its published branch contains the compiler-rt source tree at the repository root so a shallow submodule checkout retrieves compiler-rt rather than the whole monorepo. A tree comparison confirms upstream compiler-rt is unchanged outside lib/asan_anyps5.

core/libs/prx/libSceAddressSanitizer/Export.cpp now contains the guest ABI adapters, the two data definitions and the documented default/throwing exports. Its source headers forward to the dependency's headers. The adapters pass the original caller PC/BP and function name explicitly to the runtime. The new native bridge symbols use C linkage and _nid_no_patch suffixes so the NID patcher retains their native names.

The port NOTICE records the origin and modifications. Source mapping:

Compiled port portion Implementation source or interface evidence
Runtime.cpp: shadow-segment/user/intra-object/alloca poisoning, access callbacks and report dispatch asan_poisoning.cpp, asan_rtl.cpp, asan_report.cpp; adapted range validation and caller transport
src/Container.hpp: FixUnalignedStorage, contiguous/double-ended transitions and FindBadAddress asan_poisoning.cpp
src/Allocator.cpp: redzone selection, size-class computation, parameter checks and diagnostics asan_allocator.cpp, sanitizer_allocator_size_class_map.h, asan_stats.cpp; host maps, backing and quarantine are port changes
src/FakeStack.cpp: flag/frame layout, class allocation, GC and fiber/no-return behavior asan_fake_stack.h, asan_fake_stack.cpp, asan_thread.cpp; modified allocation, TLS lifecycle and locking
src/Globals.cpp/.hpp, src/Describe.cpp/.hpp, src/Report.hpp, src/ShadowCheck.hpp asan_globals.cpp, asan_interface_internal.h, asan_descriptions.cpp, asan_errors.cpp, asan_report.cpp; modified host registry and validation
src/Ubsan.cpp: metadata, value decoding, handler decisions and diagnostics ubsan_handlers.cpp, ubsan_handlers.h, ubsan_value.cpp, ubsan_value.h, ubsan_diag.cpp, ubsan_monitor.cpp
Legacy UBSan metadata layouts LLVM 3.8 ABI declarations; no LLVM 3.8 implementation file is compiled
src/Coverage.cpp: interface and coverage-file format sanitizer_coverage_libcdep_new.cpp, sanitizer_coverage_interface.inc, with host file/module integration
Shadow/backing providers, module lookup, report files, stack bounds and stack capture AnyPS5 host integration using Windows/POSIX APIs; VirtualAlloc2 and MEM_ADDRESS_REQUIREMENTS define Windows bounds/alignment; the shadow scale/offset follows LLVM instrumentation

Licence treatment: the dependency retains the unmodified compiler-rt licence, LLVM exceptions and legacy notices. The external port carries per-file licence and modification notices; its AnyPS5 GPLv2 text is preserved in LICENSE.GPL-2.0, and the NOTICE identifies the derived portions and modified port. tools/package_release.py now includes all three documents under libs/licenses/ in both patched and unpatched ZIP/TAR archives. No licence file or comment header is added under core/libs/prx/.

Export names and NIDs come from the pinned ps5rs inventory; that inventory does not establish signatures or behavior. Console ABI, layouts and behavior remain unverified. The implementation is partial, with remaining gaps in docs/dev/debt/libSceAddressSanitizer.md: options/default overrides are ignored, the allocator has one global quarantine and one caller frame, mismatch checks are missing, Windows reserves each backing block separately, symbol formatting has no external symbolizer, and inline accesses to Windows shadow holes remain a limitation. Fourteen unsupported interfaces still call NotImplemented_nid_no_patch.

Tested

Windows 11 Pro 10.0.26200, x86-64, WinLibs MinGW-W64 GCC 16.1.0 UCRT, Ninja, Release, BUILD_TESTING=ON. Submitted head: ead33bff92dbf676b11292877475abb7414ac3ee; compiler-rt gitlink: 21681889623a86177efe37b19be8a69fb84f472e; integrated main: d6401d794e47ef5abef80502c2ac1bfa03d7b20a. No title, homebrew or console execution.

git rev-parse ead33bff92dbf676b11292877475abb7414ac3ee
cmake --build C:/Users/playl/AppData/Local/Temp/anyps5-asan-full --target guest_addresssanitizer_runtime_tests guest_addresssanitizer_mapping_tests guest_addresssanitizer_shadow_tests guest_addresssanitizer_backing_tests nid_patcher --parallel 4
ctest --test-dir C:/Users/playl/AppData/Local/Temp/anyps5-asan-full -R guest_addresssanitizer --output-on-failure
python tools/tests/test_package_release.py

Results:

  • 72/72 sanitizer CTests passed. This includes the forced Windows host-allocation/shadow-hole regression, all allocator/container/global/fiber tests, the original mapping-collision and unaligned-16-byte regressions, and the UBSan subprocess checks.
  • The new wrapper_call_sites case verifies that allocation, allocation-context update and free traces identify the test executable as the caller across the extracted runtime boundary. Replacing the forwarded malloc caller PC with zero makes this test fail; restoring the forwarding restores the passing suite.
  • 76 release-packaging tests ran: 61 passed, 15 skipped on Windows. The new regression checks the byte contents of all three notices in patched/unpatched ZIP/TAR archives. Removing or emptying each notice fails packaging before existing archives are modified.
  • The dependency was cloned separately from GitHub without a local object alternate, checked out at its pinned revision, and its 12 Windows runtime translation units were built from that checkout with CMake using the project's host headers.
  • Linux compile-only: 15/15 translation units compiled, comprising the guest adapter, 12 runtime sources and two portable test sources, using Zig 0.16.0 / Clang 21.1.0, -target x86_64-linux-gnu -std=c++20 -Wall -Wextra -fPIC -c. No Linux link, CTest or runtime result is claimed; compiler warnings are not represented as a warning-free build.

Additional checks:

Checklist

Windows focused CTest output on ead33bf
Test project C:/Users/playl/AppData/Local/Temp/anyps5-asan-full
      Start 736: guest_addresssanitizer_shadow
 1/72 Test #736: guest_addresssanitizer_shadow ................................   Passed    0.30 sec
      Start 737: guest_addresssanitizer_fake_stack_option
 2/72 Test #737: guest_addresssanitizer_fake_stack_option .....................   Passed    0.07 sec
      Start 738: guest_addresssanitizer_vptr_cache_data
 3/72 Test #738: guest_addresssanitizer_vptr_cache_data .......................   Passed    0.02 sec
      Start 739: guest_addresssanitizer_globals_invalid_array
 4/72 Test #739: guest_addresssanitizer_globals_invalid_array .................   Passed    0.01 sec
      Start 740: guest_addresssanitizer_legacy_ubsan
 5/72 Test #740: guest_addresssanitizer_legacy_ubsan ..........................   Passed    0.46 sec
      Start 741: guest_addresssanitizer_runtime_clean
 6/72 Test #741: guest_addresssanitizer_runtime_clean .........................   Passed    0.04 sec
      Start 742: guest_addresssanitizer_runtime_contiguous
 7/72 Test #742: guest_addresssanitizer_runtime_contiguous ....................   Passed    0.03 sec
      Start 743: guest_addresssanitizer_runtime_double_ended
 8/72 Test #743: guest_addresssanitizer_runtime_double_ended ..................   Passed    0.02 sec
      Start 744: guest_addresssanitizer_runtime_memory
 9/72 Test #744: guest_addresssanitizer_runtime_memory ........................   Passed    0.02 sec
      Start 745: guest_addresssanitizer_runtime_exp_load4
10/72 Test #745: guest_addresssanitizer_runtime_exp_load4 .....................   Passed    0.03 sec
      Start 746: guest_addresssanitizer_runtime_exp_store16_noabort
11/72 Test #746: guest_addresssanitizer_runtime_exp_store16_noabort ...........   Passed    0.02 sec
      Start 747: guest_addresssanitizer_runtime_exp_loadN
12/72 Test #747: guest_addresssanitizer_runtime_exp_loadN .....................   Passed    0.03 sec
      Start 748: guest_addresssanitizer_runtime_report_exp_store2
13/72 Test #748: guest_addresssanitizer_runtime_report_exp_store2 .............   Passed    0.04 sec
      Start 749: guest_addresssanitizer_runtime_report_exp_load_n
14/72 Test #749: guest_addresssanitizer_runtime_report_exp_load_n .............   Passed    0.02 sec
      Start 750: guest_addresssanitizer_runtime_memcpy_source
15/72 Test #750: guest_addresssanitizer_runtime_memcpy_source .................   Passed    0.03 sec
      Start 751: guest_addresssanitizer_runtime_memset_poison
16/72 Test #751: guest_addresssanitizer_runtime_memset_poison .................   Passed    0.02 sec
      Start 752: guest_addresssanitizer_runtime_memmove_poison
17/72 Test #752: guest_addresssanitizer_runtime_memmove_poison ................   Passed    0.09 sec
      Start 753: guest_addresssanitizer_runtime_memcpy_overlap
18/72 Test #753: guest_addresssanitizer_runtime_memcpy_overlap ................   Passed    0.03 sec
      Start 754: guest_addresssanitizer_runtime_memset_negative
19/72 Test #754: guest_addresssanitizer_runtime_memset_negative ...............   Passed    0.04 sec
      Start 755: guest_addresssanitizer_runtime_container_params
20/72 Test #755: guest_addresssanitizer_runtime_container_params ..............   Passed    0.02 sec
      Start 756: guest_addresssanitizer_runtime_double_ended_params
21/72 Test #756: guest_addresssanitizer_runtime_double_ended_params ...........   Passed    0.02 sec
      Start 757: guest_addresssanitizer_runtime_ubsan_arithmetic
22/72 Test #757: guest_addresssanitizer_runtime_ubsan_arithmetic ..............   Passed    0.03 sec
      Start 758: guest_addresssanitizer_runtime_ubsan_misc
23/72 Test #758: guest_addresssanitizer_runtime_ubsan_misc ....................   Passed    0.02 sec
      Start 759: guest_addresssanitizer_runtime_ubsan_data
24/72 Test #759: guest_addresssanitizer_runtime_ubsan_data ....................   Passed    0.03 sec
      Start 760: guest_addresssanitizer_runtime_ubsan_dedup
25/72 Test #760: guest_addresssanitizer_runtime_ubsan_dedup ...................   Passed    0.06 sec
      Start 761: guest_addresssanitizer_runtime_ubsan_abort
26/72 Test #761: guest_addresssanitizer_runtime_ubsan_abort ...................   Passed    0.04 sec
      Start 762: guest_addresssanitizer_runtime_ubsan_unreachable
27/72 Test #762: guest_addresssanitizer_runtime_ubsan_unreachable .............   Passed    0.05 sec
      Start 763: guest_addresssanitizer_runtime_heap
28/72 Test #763: guest_addresssanitizer_runtime_heap ..........................   Passed    0.04 sec
      Start 764: guest_addresssanitizer_runtime_wrapper_call_sites
29/72 Test #764: guest_addresssanitizer_runtime_wrapper_call_sites ............   Passed    0.04 sec
      Start 765: guest_addresssanitizer_runtime_heap_aligned
30/72 Test #765: guest_addresssanitizer_runtime_heap_aligned ..................   Passed    0.04 sec
      Start 766: guest_addresssanitizer_runtime_heap_stats
31/72 Test #766: guest_addresssanitizer_runtime_heap_stats ....................   Passed    0.04 sec
      Start 767: guest_addresssanitizer_runtime_heap_double_free
32/72 Test #767: guest_addresssanitizer_runtime_heap_double_free ..............   Passed    0.03 sec
      Start 768: guest_addresssanitizer_runtime_heap_bad_free
33/72 Test #768: guest_addresssanitizer_runtime_heap_bad_free .................   Passed    0.03 sec
      Start 769: guest_addresssanitizer_runtime_heap_interior_free
34/72 Test #769: guest_addresssanitizer_runtime_heap_interior_free ............   Passed    0.03 sec
      Start 770: guest_addresssanitizer_runtime_heap_usable_size_unowned
35/72 Test #770: guest_addresssanitizer_runtime_heap_usable_size_unowned ......   Passed    0.03 sec
      Start 771: guest_addresssanitizer_runtime_heap_allocated_size_unowned
36/72 Test #771: guest_addresssanitizer_runtime_heap_allocated_size_unowned ...   Passed    0.02 sec
      Start 772: guest_addresssanitizer_runtime_heap_calloc_overflow
37/72 Test #772: guest_addresssanitizer_runtime_heap_calloc_overflow ..........   Passed    0.06 sec
      Start 773: guest_addresssanitizer_runtime_heap_aligned_alloc_bad
38/72 Test #773: guest_addresssanitizer_runtime_heap_aligned_alloc_bad ........   Passed    0.03 sec
      Start 774: guest_addresssanitizer_runtime_heap_posix_memalign_bad
39/72 Test #774: guest_addresssanitizer_runtime_heap_posix_memalign_bad .......   Passed    0.04 sec
      Start 775: guest_addresssanitizer_runtime_heap_memalign_bad
40/72 Test #775: guest_addresssanitizer_runtime_heap_memalign_bad .............   Passed    0.03 sec
      Start 776: guest_addresssanitizer_runtime_heap_too_big
41/72 Test #776: guest_addresssanitizer_runtime_heap_too_big ..................   Passed    0.05 sec
      Start 777: guest_addresssanitizer_runtime_heap_realloc_freed
42/72 Test #777: guest_addresssanitizer_runtime_heap_realloc_freed ............   Passed    0.03 sec
      Start 778: guest_addresssanitizer_runtime_fake_stack
43/72 Test #778: guest_addresssanitizer_runtime_fake_stack ....................   Passed    0.02 sec
      Start 779: guest_addresssanitizer_runtime_no_return
44/72 Test #779: guest_addresssanitizer_runtime_no_return .....................   Passed    0.02 sec
      Start 780: guest_addresssanitizer_runtime_globals
45/72 Test #780: guest_addresssanitizer_runtime_globals .......................   Passed    0.02 sec
      Start 781: guest_addresssanitizer_runtime_globals_elf
46/72 Test #781: guest_addresssanitizer_runtime_globals_elf ...................   Passed    0.03 sec
      Start 782: guest_addresssanitizer_runtime_fibers
47/72 Test #782: guest_addresssanitizer_runtime_fibers ........................   Passed    0.05 sec
      Start 783: guest_addresssanitizer_runtime_locate
48/72 Test #783: guest_addresssanitizer_runtime_locate ........................   Passed    0.03 sec
      Start 784: guest_addresssanitizer_runtime_init
49/72 Test #784: guest_addresssanitizer_runtime_init ..........................   Passed    0.06 sec
      Start 785: guest_addresssanitizer_runtime_globals_odr_indicator
50/72 Test #785: guest_addresssanitizer_runtime_globals_odr_indicator .........   Passed    0.06 sec
      Start 786: guest_addresssanitizer_runtime_globals_odr_poison
51/72 Test #786: guest_addresssanitizer_runtime_globals_odr_poison ............   Passed    0.04 sec
      Start 787: guest_addresssanitizer_runtime_globals_describe
52/72 Test #787: guest_addresssanitizer_runtime_globals_describe ..............   Passed    0.03 sec
      Start 788: guest_addresssanitizer_runtime_describe_heap
53/72 Test #788: guest_addresssanitizer_runtime_describe_heap .................   Passed    0.03 sec
      Start 789: guest_addresssanitizer_runtime_fiber_unstarted
54/72 Test #789: guest_addresssanitizer_runtime_fiber_unstarted ...............   Passed    0.03 sec
      Start 790: guest_addresssanitizer_runtime_fiber_double_start
55/72 Test #790: guest_addresssanitizer_runtime_fiber_double_start ............   Passed    0.03 sec
      Start 791: guest_addresssanitizer_runtime_report_path
56/72 Test #791: guest_addresssanitizer_runtime_report_path ...................   Passed    0.06 sec
      Start 792: guest_addresssanitizer_runtime_report_stdout
57/72 Test #792: guest_addresssanitizer_runtime_report_stdout .................   Passed    0.03 sec
      Start 793: guest_addresssanitizer_runtime_report_descriptor
58/72 Test #793: guest_addresssanitizer_runtime_report_descriptor .............   Passed    0.09 sec
      Start 794: guest_addresssanitizer_runtime_stack_trace
59/72 Test #794: guest_addresssanitizer_runtime_stack_trace ...................   Passed    0.05 sec
      Start 795: guest_addresssanitizer_runtime_symbolize
60/72 Test #795: guest_addresssanitizer_runtime_symbolize .....................   Passed    0.03 sec
      Start 796: guest_addresssanitizer_runtime_symbolize_bad
61/72 Test #796: guest_addresssanitizer_runtime_symbolize_bad .................   Passed    0.04 sec
      Start 797: guest_addresssanitizer_runtime_coverage
62/72 Test #797: guest_addresssanitizer_runtime_coverage ......................   Passed    0.06 sec
      Start 798: guest_addresssanitizer_runtime_sandbox_notify
63/72 Test #798: guest_addresssanitizer_runtime_sandbox_notify ................   Passed    0.05 sec
      Start 799: guest_addresssanitizer_backing_layout
64/72 Test #799: guest_addresssanitizer_backing_layout ........................   Passed    0.14 sec
      Start 800: guest_addresssanitizer_mapping
65/72 Test #800: guest_addresssanitizer_mapping ...............................   Passed    0.10 sec
      Start 801: guest_addresssanitizer_mapping_collision
66/72 Test #801: guest_addresssanitizer_mapping_collision .....................   Passed    0.02 sec
      Start 802: guest_addresssanitizer_report_load4
67/72 Test #802: guest_addresssanitizer_report_load4 ..........................   Passed    0.02 sec
      Start 803: guest_addresssanitizer_report_load16
68/72 Test #803: guest_addresssanitizer_report_load16 .........................   Passed    0.02 sec
      Start 804: guest_addresssanitizer_report_storeN
69/72 Test #804: guest_addresssanitizer_report_storeN .........................   Passed    0.01 sec
      Start 805: guest_addresssanitizer_report_unaligned
70/72 Test #805: guest_addresssanitizer_report_unaligned ......................   Passed    0.02 sec
      Start 806: guest_addresssanitizer_report_partial
71/72 Test #806: guest_addresssanitizer_report_partial ........................   Passed    0.04 sec
      Start 807: guest_addresssanitizer_report_report_error
72/72 Test #807: guest_addresssanitizer_report_report_error ...................   Passed    0.03 sec

100% tests passed, 0 tests failed out of 72

Total Test time (real) =   6.19 sec

PrivacyOnion and others added 20 commits November 12, 2026 19:07
…ks and error reports

Implement 100 AddressSanitizer exports following LLVM compiler-rt 18.1.8:
shadow fills and queries, stack, alloca, intra-object, array cookie and
user poisoning, the load/store access callbacks and their report entry
points, error report queries and callbacks, and the default hooks and
options. The shadow uses the PlayStation mapping (scale 3, offset 1 << 40)
reserved on first use. Remaining gaps are listed in the technical debt.
…e accesses

Invalid ranges and a failed shadow reservation throw std::invalid_argument and std::runtime_error instead of NotImplemented_nid_no_patch.
…adow range

High-entropy ASLR places host allocations between 1 and 17 TiB, so a single 16 TiB reservation fails. The runtime now reserves each free region, records the host allocations as holes, and throws when an export needs shadow inside a hole.
…e and heap queries

Add a redzone allocator with a 256 MiB quarantine that backs the __asan_malloc family, the __sanitizer_get_* heap queries, accumulated stats and the allocation and free stack lookups. Misuse such as double free, bad free, overflowing calloc and invalid alignments aborts with the LLVM 18.1.8 report text.
…tion, fibers and address description

Add the use-after-return fake stack with its stack_malloc and stack_free size classes, __asan_handle_no_return stack unpoisoning, fiber switching, global variable registration with ODR violation detection, and __asan_describe_address and __asan_locate_address backed by the heap, globals and shadow layout.
…trace and symbolizer exports

Add trace-pc-guard coverage with sancov dumping, the report path and descriptor redirection, module-and-offset stack trace rendering and the pc symbolizer, and route every report through the report file.
List the exports that stay unimplemented with their reason and describe how the allocator, globals, fake stacks, report file and symbolizer differ from LLVM 18.1.8.
The 43 runtime and 6 report diagnostic tests run through AddressSanitizerDiagnostic.cmake, which requires both the expected output and the expected exit status (1 for fatal reports, 0 otherwise) instead of PASS_REGULAR_EXPRESSION alone. fatal_control prints a fatal diagnostic and returns, and must fail.
… shadow on every non-Windows host

Export.cpp, ShadowCheck.hpp, Report.hpp and ErrorReport.hpp follow compiler-rt and now start with the LLVM Apache-2.0 WITH LLVM-exception notice. ShadowLinux.cpp is built on every host but Windows; without MAP_FIXED_NOREPLACE (macOS) it reserves no shadow, so the library links and the exports that need shadow throw. The shadow test is registered only where a shadow can be reserved.
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

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.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 220 core/libs/prx/libSceAddressSanitizer/CMakeLists.txt
core/libs/prx/libSceAddressSanitizer/src/ErrorReport.hpp
core/libs/prx/libSceAddressSanitizer/src/Report.hpp
core/libs/prx/libSceAddressSanitizer/src/ShadowAddressSpace.hpp
core/libs/prx/libSceAddressSanitizer/src/ShadowCheck.hpp
core/libs/tests/GuestAddressSanitizerMapping.cpp
core/libs/tests/GuestAddressSanitizerShadow.cpp
PR 807 core/libs/prx/libSceAddressSanitizer/CMakeLists.txt
PR 1037 core/libs/prx/libSceAddressSanitizer/CMakeLists.txt
PR 1167 core/libs/prx/libSceAddressSanitizer/CMakeLists.txt
PR 1270 core/libs/prx/libSceAddressSanitizer/CMakeLists.txt

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Progress report (5cf487d → 60ebf06)

📈 System libraries: 48.66% (+0.72%, +285 implemented, -2 removed functions)

✅ 285 implemented
Library Name
libSceAddressSanitizer __asan_addr_is_in_fake_stack
libSceAddressSanitizer __asan_address_is_poisoned
libSceAddressSanitizer __asan_after_dynamic_init
libSceAddressSanitizer __asan_aligned_alloc
libSceAddressSanitizer __asan_alloca_poison
libSceAddressSanitizer __asan_allocas_unpoison
libSceAddressSanitizer __asan_before_dynamic_init
libSceAddressSanitizer __asan_calloc
libSceAddressSanitizer __asan_describe_address
libSceAddressSanitizer __asan_exp_load1
libSceAddressSanitizer __asan_exp_load16
libSceAddressSanitizer __asan_exp_load16_noabort
libSceAddressSanitizer __asan_exp_load1_noabort
libSceAddressSanitizer __asan_exp_load2
libSceAddressSanitizer __asan_exp_load2_noabort
libSceAddressSanitizer __asan_exp_load4
libSceAddressSanitizer __asan_exp_load4_noabort
libSceAddressSanitizer __asan_exp_load8
libSceAddressSanitizer __asan_exp_load8_noabort
libSceAddressSanitizer __asan_exp_loadN
libSceAddressSanitizer __asan_exp_loadN_noabort
libSceAddressSanitizer __asan_exp_store1
libSceAddressSanitizer __asan_exp_store16
libSceAddressSanitizer __asan_exp_store16_noabort
libSceAddressSanitizer __asan_exp_store1_noabort
libSceAddressSanitizer __asan_exp_store2
libSceAddressSanitizer __asan_exp_store2_noabort
libSceAddressSanitizer __asan_exp_store4
libSceAddressSanitizer __asan_exp_store4_noabort
libSceAddressSanitizer __asan_exp_store8
libSceAddressSanitizer __asan_exp_store8_noabort
libSceAddressSanitizer __asan_exp_storeN
libSceAddressSanitizer __asan_exp_storeN_noabort
libSceAddressSanitizer __asan_free
libSceAddressSanitizer __asan_get_alloc_stack
libSceAddressSanitizer __asan_get_current_fake_stack
libSceAddressSanitizer __asan_get_free_stack
libSceAddressSanitizer __asan_get_report_access_size
libSceAddressSanitizer __asan_get_report_access_type
libSceAddressSanitizer __asan_get_report_address
libSceAddressSanitizer __asan_get_report_bp
libSceAddressSanitizer __asan_get_report_description
libSceAddressSanitizer __asan_get_report_pc
libSceAddressSanitizer __asan_get_report_sp
libSceAddressSanitizer __asan_get_shadow_mapping
libSceAddressSanitizer __asan_handle_no_return
libSceAddressSanitizer __asan_init
libSceAddressSanitizer __asan_load1
libSceAddressSanitizer __asan_load16
libSceAddressSanitizer __asan_load16_noabort
libSceAddressSanitizer __asan_load1_noabort
libSceAddressSanitizer __asan_load2
libSceAddressSanitizer __asan_load2_noabort
libSceAddressSanitizer __asan_load4
libSceAddressSanitizer __asan_load4_noabort
libSceAddressSanitizer __asan_load8
libSceAddressSanitizer __asan_load8_noabort
libSceAddressSanitizer __asan_loadN
libSceAddressSanitizer __asan_loadN_noabort
libSceAddressSanitizer __asan_load_cxx_array_cookie
libSceAddressSanitizer __asan_locate_address
libSceAddressSanitizer __asan_malloc
libSceAddressSanitizer __asan_malloc_usable_size
libSceAddressSanitizer __asan_memalign
libSceAddressSanitizer __asan_memcpy
libSceAddressSanitizer __asan_memmove
libSceAddressSanitizer __asan_memset
libSceAddressSanitizer __asan_poison_cxx_array_cookie
libSceAddressSanitizer __asan_poison_intra_object_redzone
libSceAddressSanitizer __asan_poison_memory_region
libSceAddressSanitizer __asan_poison_stack_memory
libSceAddressSanitizer __asan_posix_memalign
libSceAddressSanitizer __asan_print_accumulated_stats
libSceAddressSanitizer __asan_realloc
libSceAddressSanitizer __asan_region_is_poisoned
libSceAddressSanitizer __asan_register_elf_globals
libSceAddressSanitizer __asan_register_globals
libSceAddressSanitizer __asan_report_error
libSceAddressSanitizer __asan_report_exp_load1
libSceAddressSanitizer __asan_report_exp_load16
libSceAddressSanitizer __asan_report_exp_load16_noabort
libSceAddressSanitizer __asan_report_exp_load1_noabort
libSceAddressSanitizer __asan_report_exp_load2
libSceAddressSanitizer __asan_report_exp_load2_noabort
libSceAddressSanitizer __asan_report_exp_load4
libSceAddressSanitizer __asan_report_exp_load4_noabort
libSceAddressSanitizer __asan_report_exp_load8
libSceAddressSanitizer __asan_report_exp_load8_noabort
libSceAddressSanitizer __asan_report_exp_load_n
libSceAddressSanitizer __asan_report_exp_load_n_noabort
libSceAddressSanitizer __asan_report_exp_store1
libSceAddressSanitizer __asan_report_exp_store16
libSceAddressSanitizer __asan_report_exp_store16_noabort
libSceAddressSanitizer __asan_report_exp_store1_noabort
libSceAddressSanitizer __asan_report_exp_store2
libSceAddressSanitizer __asan_report_exp_store2_noabort
libSceAddressSanitizer __asan_report_exp_store4
libSceAddressSanitizer __asan_report_exp_store4_noabort
libSceAddressSanitizer __asan_report_exp_store8
libSceAddressSanitizer __asan_report_exp_store8_noabort
... 185 more
⚪ 11 behaviourally empty (constant return or throw)
Library Name
libSceAddressSanitizer __asan_after_dynamic_init
libSceAddressSanitizer __asan_version_mismatch_check_v6
libSceAddressSanitizer __asan_version_mismatch_check_v7
libSceAddressSanitizer __asan_version_mismatch_check_v8
libSceAddressSanitizer __sancov_default_options
libSceAddressSanitizer __sanitizer_free_hook
libSceAddressSanitizer __sanitizer_get_unmapped_bytes
libSceAddressSanitizer __sanitizer_malloc_hook
libSceAddressSanitizer __sanitizer_ptr_cmp
libSceAddressSanitizer __sanitizer_ptr_sub
libSceAddressSanitizer __ubsan_default_options
🗑️ 2 removed
Library Name
libSceAddressSanitizer __asan_option_detect_stack_use_after_return
libSceAddressSanitizer __ubsan_vptr_type_cache

Changed libraries (implemented exports)

Library Before After Change
libSceAddressSanitizer 0/301 (0.00%) 285/299 (95.32%) +95.32%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants