relinker CI: run TLS coverage tests under ASan so the #6401 overread can't return silently #7062
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 oneandonlydean on 2026-10-17T09:39:37Z.
Follow-up to #6401 (merged as
750eb13d8).#6401 fixed a 1-byte read past the end of the input in
WindowsTlsBuilder.cppand added thesegment-prefix-at-eofcase to the TLS coverage tests. As @Dextroid17 showed in #6401, that case only catches the bug when the relinker is built with AddressSanitizer:ctest -R '^tls_function_coverage_': passes 3/3 with the fix and 3/3 with the fix reverted.-DANYPS5_ENABLE_ASAN=ON -DANYPS5_RELINKER_ONLY=ON): clean 3/3 with the fix, heap-buffer-overflow 3/3 with it reverted.So CI as it stands would not notice if the overread came back.
Ask: run the relinker TLS coverage tests (or the whole relinker test set, if it's cheap enough) under ASan in the relinker validation workflow, so a regression of #6401 fails CI.
@MarcZX100 said on #6401 that they'd look at covering this path in the relinker validation workflow; this issue is there to track it.
Done when: a CI job builds the relinker with ASan and runs
tls_function_coverage_*, and reverting the #6401 fix makes that job fail.Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-17T11:17:45Z.
Taking this up. I will configure the relinker test step to run under ASan in the relinker validation CI workflow to ensure regression of #6401 is cleanly caught. Will open a PR shortly.
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-17T11:20:51Z.
PR opened: #7096
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T12:13:03Z.
The proposed CI change is now in PR #7096. I checked its successful Linux relinker job log: the ASan-labeled TLS coverage run completed 31/31 tests with no failures. The full CI matrix on that PR is green for the non-skipped jobs; Windows and Linux application build jobs are skipped by path filtering, while relinker jobs passed on Linux, macOS, and Windows.