fix(libkernel_sys): enforce readlink path length limit #5528

Closed
UmillD wants to merge 1 commit from upstream-pr/5528 into main
UmillD commented 2026-10-13 22:38:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by UmillD on 2026-10-13T22:38:19Z.


What

Reject paths of 1,024 bytes or more in readlink and readlinkat with guest ENAMETOOLONG, before resolving the path or looking up a directory descriptor. Without this check, a long path made up of valid components can be normalized and return an unrelated filesystem error instead.

Add boundary tests for 1,023, 1,024 and 1,025 bytes, including AT_FDCWD, descriptor-relative paths, an invalid descriptor, and unchanged output buffers. On Windows, create the existing nested-target test link with CreateSymbolicLinkW: the supported toolchain's std::filesystem::create_symlink returns ENOSYS and otherwise skips those cases.

The path-length limit and lookup ordering follow FreeBSD 11.4's kern_readlinkat and namei; console behavior has not been measured.

Tested

Windows, WinLibs MinGW-w64 GCC 15.2.0 (15.2.0posix-14.0.0-ucrt-r7), Release, BUILD_TESTING=ON. Built the changed library and the relevant test targets with their real dependencies.

guest_kernel_sys, guest_path_case, guest_filesystem, and guest_kernel_rename each passed three times with administrator privileges: 12 successful executions, with no skipped link cases reported in the final logs. The new test failed without the production fix (errno 22 instead of 63) and passed with it. Conventions and git diff --check passed.

One intermediate elevated run timed out after enabling the previously skipped link fixture. After updating to the latest main, guest_filesystem also failed on one repetition in an existing file-rename section; that target links the unchanged libc/libkernel libraries and not libkernel_sys. Neither intermittent failure's cause was established. Subsequent filesystem checks and the final elevated run passed, including three repetitions per test without skipped cases. Linux, PS5/title execution, and the complete project test suite have not been run locally. Project CI and review of the intermittent failures are still required before merging.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; no silent stubs added
  • No notes, investigation files or images added to the repository
  • No new third-party code
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4850378019 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5528). Originally posted by [UmillD](https://github.com/UmillD) on 2026-10-13T22:38:19Z. --- ### What Reject paths of 1,024 bytes or more in `readlink` and `readlinkat` with guest `ENAMETOOLONG`, before resolving the path or looking up a directory descriptor. Without this check, a long path made up of valid components can be normalized and return an unrelated filesystem error instead. Add boundary tests for 1,023, 1,024 and 1,025 bytes, including `AT_FDCWD`, descriptor-relative paths, an invalid descriptor, and unchanged output buffers. On Windows, create the existing nested-target test link with `CreateSymbolicLinkW`: the supported toolchain's `std::filesystem::create_symlink` returns ENOSYS and otherwise skips those cases. The path-length limit and lookup ordering follow FreeBSD 11.4's `kern_readlinkat` and `namei`; console behavior has not been measured. ### Tested Windows, WinLibs MinGW-w64 GCC 15.2.0 (`15.2.0posix-14.0.0-ucrt-r7`), Release, `BUILD_TESTING=ON`. Built the changed library and the relevant test targets with their real dependencies. `guest_kernel_sys`, `guest_path_case`, `guest_filesystem`, and `guest_kernel_rename` each passed three times with administrator privileges: 12 successful executions, with no skipped link cases reported in the final logs. The new test failed without the production fix (errno 22 instead of 63) and passed with it. Conventions and `git diff --check` passed. One intermediate elevated run timed out after enabling the previously skipped link fixture. After updating to the latest main, `guest_filesystem` also failed on one repetition in an existing file-rename section; that target links the unchanged libc/libkernel libraries and not libkernel_sys. Neither intermittent failure's cause was established. Subsequent filesystem checks and the final elevated run passed, including three repetitions per test without skipped cases. Linux, PS5/title execution, and the complete project test suite have not been run locally. Project CI and review of the intermittent failures are still required before merging. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; no silent stubs added - [x] No notes, investigation files or images added to the repository - [x] No new third-party code - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
UmillD commented 2026-10-13 22:43:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by UmillD on 2026-10-13T22:43:31Z.


Could a maintainer run the full Linux and Windows Build workflow for PR #5528?

The conventions and intake checks passed. Relevant Windows tests passed locally, and the PR description records the intermittent failures observed during validation. The PR remains a draft pending full CI and review.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6156782170 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5528#issuecomment-6156782170). Originally posted by [UmillD](https://github.com/UmillD) on 2026-10-13T22:43:31Z. --- Could a maintainer run the full Linux and Windows Build workflow for PR #5528? The conventions and intake checks passed. Relevant Windows tests passed locally, and the PR description records the intermittent failures observed during validation. The PR remains a draft pending full CI and review.
MarcZX10 commented 2026-10-13 23:45:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T23:45:35Z.


I tried to dispatch the repository's full Build workflow for PR #5528, as requested, but GitHub returned HTTP 403 because this account does not have repository-admin rights for workflow dispatch. The current PR checks are conventions and intake only; the Linux and Windows jobs have not run on this head. I’ll run the relevant Linux checks locally and report their exact scope/results here. That will not replace the requested Windows/full CI run.

AI-assisted: yes; reviewed by MarcZX100.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6157584674 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5528#issuecomment-6157584674). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T23:45:35Z. --- I tried to dispatch the repository's full Build workflow for PR #5528, as requested, but GitHub returned HTTP 403 because this account does not have repository-admin rights for workflow dispatch. The current PR checks are conventions and intake only; the Linux and Windows jobs have not run on this head. I’ll run the relevant Linux checks locally and report their exact scope/results here. That will not replace the requested Windows/full CI run. AI-assisted: yes; reviewed by MarcZX100.
MarcZX10 commented 2026-10-13 23:47:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T23:47:59Z.


Focused Linux validation on exact head dfa3f1bca37d84d989dc42029416015f25e0618d: GCC 12.2, Ninja Release, BUILD_TESTING=ON. I built guest_kernel_sys_tests, guest_path_case_tests, guest_filesystem_tests, and guest_kernel_rename_tests; the corresponding CTest cases (guest_kernel_sys, guest_path_case, guest_filesystem, guest_kernel_rename) each passed three consecutive runs (12/12). The current conventions and intake checks also pass.

This is focused Linux coverage only. The full Linux/Windows Build workflow remains unrun: dispatch is denied to this account with HTTP 403 for lack of repository-admin rights, and the PR's prior CI path-filtered those jobs. The Windows/full-suite request therefore still needs a maintainer with workflow-dispatch access.

AI-assisted: yes; reviewed by MarcZX100.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6157613670 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5528#issuecomment-6157613670). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T23:47:59Z. --- Focused Linux validation on exact head `dfa3f1bca37d84d989dc42029416015f25e0618d`: GCC 12.2, Ninja Release, `BUILD_TESTING=ON`. I built `guest_kernel_sys_tests`, `guest_path_case_tests`, `guest_filesystem_tests`, and `guest_kernel_rename_tests`; the corresponding CTest cases (`guest_kernel_sys`, `guest_path_case`, `guest_filesystem`, `guest_kernel_rename`) each passed three consecutive runs (12/12). The current conventions and intake checks also pass. This is focused Linux coverage only. The full Linux/Windows Build workflow remains unrun: dispatch is denied to this account with HTTP 403 for lack of repository-admin rights, and the PR's prior CI path-filtered those jobs. The Windows/full-suite request therefore still needs a maintainer with workflow-dispatch access. AI-assisted: yes; reviewed by MarcZX100.
UmillD commented 2026-10-13 23:50:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by UmillD on 2026-10-13T23:50:13Z.


Thanks for trying to dispatch the workflow and for offering to run the relevant Linux checks.

We investigated the intermittent Windows failures further. In the instrumented runs, the readlink and rename assertions passed; the failures occurred during cleanup of temporary directories. Win32 cleanup also reproduced ERROR_DIR_NOT_EMPTY even when enumeration showed only “.” and “..”. The underlying cause remains unresolved, so we are keeping the PR as a draft pending validation.

Your Linux results will help narrow this down. Thanks again.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6157640785 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5528#issuecomment-6157640785). Originally posted by [UmillD](https://github.com/UmillD) on 2026-10-13T23:50:13Z. --- Thanks for trying to dispatch the workflow and for offering to run the relevant Linux checks. We investigated the intermittent Windows failures further. In the instrumented runs, the readlink and rename assertions passed; the failures occurred during cleanup of temporary directories. Win32 cleanup also reproduced ERROR_DIR_NOT_EMPTY even when enumeration showed only “.” and “..”. The underlying cause remains unresolved, so we are keeping the PR as a draft pending validation. Your Linux results will help narrow this down. Thanks again.
MarcZX10 commented 2026-10-13 23:54:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T23:54:04Z.


Thanks for the Windows follow-up. The Linux checks I ran cover readlink/rename and related filesystem behavior, but they do not exercise Win32 temporary-directory cleanup, so they do not isolate the ERROR_DIR_NOT_EMPTY failure. I’ll leave that Windows cleanup issue open as a validation blocker; the next useful evidence would be a focused Windows repro or a full Windows run on the current head.

AI-assisted: yes; reviewed by MarcZX100.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6157689867 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5528#issuecomment-6157689867). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T23:54:04Z. --- Thanks for the Windows follow-up. The Linux checks I ran cover readlink/rename and related filesystem behavior, but they do not exercise Win32 temporary-directory cleanup, so they do not isolate the `ERROR_DIR_NOT_EMPTY` failure. I’ll leave that Windows cleanup issue open as a validation blocker; the next useful evidence would be a focused Windows repro or a full Windows run on the current head. AI-assisted: yes; reviewed by MarcZX100.
UmillD commented 2026-10-14 00:00:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by UmillD on 2026-10-14T00:00:36Z.


Thanks for clarifying the remaining Windows validation blocker. We have a focused local reproduction on PR head dfa3f1bca.

On Windows with the supported WinLibs GCC 15.2.0 toolchain, elevated runs of guest_kernel_sys and guest_filesystem reproduced the failures. Temporary instrumentation localized them to fixture cleanup: guest_kernel_sys blocked inside std::filesystem::remove_all(root), and guest_filesystem stopped while removing the libc_rename temporary directory after its rename assertions passed.

An experimental cleanup using Win32 APIs also reproduced ERROR_DIR_NOT_EMPTY (145). At that instant, FindFirstFileW/FindNextFileW enumerated only "." and "..". A snapshot of the test process's own disk handles found no handles pointing to the affected anyps5-* paths, and no disk handles whose names could not be resolved. This narrows the investigation but does not identify an external process or exclude kernel/filter references or other pending-deletion effects.

A cleanup experiment that retried only ERROR_DIR_NOT_EMPTY within a short bound allowed guest_kernel_sys to pass 100 repetitions. guest_filesystem passed 73 repetitions before another cleanup failure, ERROR_FILE_NOT_FOUND (2). We are not proposing that experiment as a complete fix. A standalone control without AnyPS5 libraries passed 100 cleanups of ordinary directories, but did not reproduce the full fixtures.

The original tests can be stressed with administrator privileges using:

ctest --test-dir build -R '^(guest_kernel_sys|guest_filesystem|guest_kernel_rename)$' --repeat until-fail:30 --output-on-failure --timeout 30

All instrumentation and experimental cleanup changes were removed afterward; no production change or new commit was pushed. The cleanup issue remains unresolved, and we agree that full Windows validation on the current head is still needed before merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6157768952 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5528#issuecomment-6157768952). Originally posted by [UmillD](https://github.com/UmillD) on 2026-10-14T00:00:36Z. --- Thanks for clarifying the remaining Windows validation blocker. We have a focused local reproduction on PR head dfa3f1bca. On Windows with the supported WinLibs GCC 15.2.0 toolchain, elevated runs of guest_kernel_sys and guest_filesystem reproduced the failures. Temporary instrumentation localized them to fixture cleanup: guest_kernel_sys blocked inside std::filesystem::remove_all(root), and guest_filesystem stopped while removing the libc_rename temporary directory after its rename assertions passed. An experimental cleanup using Win32 APIs also reproduced ERROR_DIR_NOT_EMPTY (145). At that instant, FindFirstFileW/FindNextFileW enumerated only "." and "..". A snapshot of the test process's own disk handles found no handles pointing to the affected anyps5-* paths, and no disk handles whose names could not be resolved. This narrows the investigation but does not identify an external process or exclude kernel/filter references or other pending-deletion effects. A cleanup experiment that retried only ERROR_DIR_NOT_EMPTY within a short bound allowed guest_kernel_sys to pass 100 repetitions. guest_filesystem passed 73 repetitions before another cleanup failure, ERROR_FILE_NOT_FOUND (2). We are not proposing that experiment as a complete fix. A standalone control without AnyPS5 libraries passed 100 cleanups of ordinary directories, but did not reproduce the full fixtures. The original tests can be stressed with administrator privileges using: ctest --test-dir build -R '^(guest_kernel_sys|guest_filesystem|guest_kernel_rename)$' --repeat until-fail:30 --output-on-failure --timeout 30 All instrumentation and experimental cleanup changes were removed afterward; no production change or new commit was pushed. The cleanup issue remains unresolved, and we agree that full Windows validation on the current head is still needed before merging.
MarcZX10 commented 2026-10-14 00:16:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T00:16:00Z.


Thanks for the detailed Windows follow-up. This narrows the failure to fixture cleanup and shows the bounded retry experiment is not a complete fix (guest_filesystem still eventually hit ERROR_FILE_NOT_FOUND). Since no production/test change was pushed and the original cleanup remains intermittent, I still consider Windows validation unresolved for this PR; the cleanup experiment is useful evidence for a separate focused fix.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6157962239 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5528#issuecomment-6157962239). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-14T00:16:00Z. --- Thanks for the detailed Windows follow-up. This narrows the failure to fixture cleanup and shows the bounded retry experiment is not a complete fix (`guest_filesystem` still eventually hit `ERROR_FILE_NOT_FOUND`). Since no production/test change was pushed and the original cleanup remains intermittent, I still consider Windows validation unresolved for this PR; the cleanup experiment is useful evidence for a separate focused fix.
UmillD commented 2026-10-14 03:24:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by UmillD on 2026-10-14T03:24:29Z.


Following up with a candidate fixture-cleanup fix and additional validation. These results are for a combined validation branch, not the unchanged PR head dfa3f1bca3.

The validation branch is based on upstream 0a56aaaf4 and contains the readlink change from this PR, plus:

  • A test-only Windows cleanup helper that closes enumeration handles before deleting children, does not follow links, treats already-removed paths as complete, retries only ERROR_DIR_NOT_EMPTY within a shared 500 ms deadline, and propagates other failures. The candidate is kept separately in commit 076b24335.
  • Native Windows link creation to activate an existing GuestFilesystem block previously skipped by this toolchain. This exposed a separate path-resolution issue: a dangling directory link was classified as a directory by std::filesystem::status, allowing '..' normalization to bypass the missing target. Commit 2b1c66deb checks the reparse point's target through a native handle before permitting parent traversal. The existing error expectations were preserved.

Windows, supported WinLibs GCC 15.2, Release, elevated: filesystem_cleanup passed 3/3; guest_kernel_sys, guest_filesystem, and guest_kernel_rename each passed 100 consecutive runs (300/300, 17.41 seconds). The activated link block and readlink link cases ran; guest_realpath and guest_path_case also passed. Conventions and diff checks passed. This is focused validation, not the full Windows suite, and does not prove all cleanup races are eliminated.

Linux on the fork's validation head be5300380: all six related tests compiled and each passed three consecutive runs (18/18). Workflow and retained logs: https://github.com/UmillD/AnyPS5/actions/runs/38505743301. Branch: https://github.com/UmillD/AnyPS5/tree/validation/readlink-windows-cleanup.

No commits were added to this PR. The cleanup and dangling-link changes need separate review; these combined-branch results do not resolve validation of the exact existing PR head. Would you prefer separate focused follow-ups for these changes, or incorporating the necessary fixture cleanup here before requesting a full Linux/Windows Build run? We are keeping the one-open-PR contributor rule in mind.

AI-assisted: yes. Changes and reported results were prepared with Codex; maintainer review is still needed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6160175012 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5528#issuecomment-6160175012). Originally posted by [UmillD](https://github.com/UmillD) on 2026-10-14T03:24:29Z. --- Following up with a candidate fixture-cleanup fix and additional validation. These results are for a combined validation branch, not the unchanged PR head dfa3f1bca37d84d989dc42029416015f25e0618d. The validation branch is based on upstream 0a56aaaf4 and contains the readlink change from this PR, plus: - A test-only Windows cleanup helper that closes enumeration handles before deleting children, does not follow links, treats already-removed paths as complete, retries only ERROR_DIR_NOT_EMPTY within a shared 500 ms deadline, and propagates other failures. The candidate is kept separately in commit 076b24335. - Native Windows link creation to activate an existing GuestFilesystem block previously skipped by this toolchain. This exposed a separate path-resolution issue: a dangling directory link was classified as a directory by std::filesystem::status, allowing '..' normalization to bypass the missing target. Commit 2b1c66deb checks the reparse point's target through a native handle before permitting parent traversal. The existing error expectations were preserved. Windows, supported WinLibs GCC 15.2, Release, elevated: filesystem_cleanup passed 3/3; guest_kernel_sys, guest_filesystem, and guest_kernel_rename each passed 100 consecutive runs (300/300, 17.41 seconds). The activated link block and readlink link cases ran; guest_realpath and guest_path_case also passed. Conventions and diff checks passed. This is focused validation, not the full Windows suite, and does not prove all cleanup races are eliminated. Linux on the fork's validation head be5300380: all six related tests compiled and each passed three consecutive runs (18/18). Workflow and retained logs: https://github.com/UmillD/AnyPS5/actions/runs/38505743301. Branch: https://github.com/UmillD/AnyPS5/tree/validation/readlink-windows-cleanup. No commits were added to this PR. The cleanup and dangling-link changes need separate review; these combined-branch results do not resolve validation of the exact existing PR head. Would you prefer separate focused follow-ups for these changes, or incorporating the necessary fixture cleanup here before requesting a full Linux/Windows Build run? We are keeping the one-open-PR contributor rule in mind. AI-assisted: yes. Changes and reported results were prepared with Codex; maintainer review is still needed.
UmillD commented 2026-10-14 18:03:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by UmillD on 2026-10-14T18:03:57Z.


Validation update for PR #5528: I tested its exact readlink change combined with upstream main 2582ec119 and the candidate fixture-cleanup fixes. The PR head remains unchanged at dfa3f1bca3.

The upstream memory fix from #5730 is included; my local alternative is excluded.

  • Linux: full project and libraries built; 1072 tests passed, 48 expected skips, no failures. The eight related runtime tests also passed three consecutive runs each (24/24). Run and artifacts: https://github.com/UmillD/AnyPS5/actions/runs/38539081163 (validation head 71d6a6539).
  • Windows, supported WinLibs GCC 15.2, Release, elevated: the combined full suite passed 777 tests, with 366 expected skips and no failures. The readlink link cases executed.
  • Extended Windows validation then exposed another fixture-cleanup failure in guest_path_case. The same native cleanup helper fixed it; that test passed 100 runs afterward without elevation. The other eight related tests had already passed 100 elevated runs each. This additional change is Windows-only and leaves the active Linux code unchanged.
  • A subsequent non-elevated full-suite attempt failed the cleanup helper's symbolic-link creation check because it requires the Windows privilege available in the elevated run. I am recording this limitation rather than treating that attempt as a fully passing suite. A later elevated full suite exposed another fixture cleanup failure in savedata_memory_metadata. The same native helper was applied only on Windows; the corrected test passed 100 isolated runs. The final elevated full suite then passed: 777 passed, 366 expected skips, no failures, 67.00 seconds, on local validation head 4879dc913. The expected skips were accepted by the repository checker.

The cleanup changes are prepared separately, based on the updated main, with no production readlink or memory changes and no CI workflow in the proposed patch. Real temporary files remain rejected by the atomic-cache test, and cleanup failures have bounded retries rather than increased test timeouts. Conventions and diff checks pass.

These are combined-branch results, not a claim that the unchanged PR head alone now passes. The official upstream Build still needs a maintainer dispatch. Please advise how to sequence review of the separate fixture fixes while the one-open-PR contributor limit is active.

AI-assisted: yes. Prepared with Codex; maintainer review is still needed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6174965250 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5528#issuecomment-6174965250). Originally posted by [UmillD](https://github.com/UmillD) on 2026-10-14T18:03:57Z. --- Validation update for PR #5528: I tested its exact readlink change combined with upstream main 2582ec119 and the candidate fixture-cleanup fixes. The PR head remains unchanged at dfa3f1bca37d84d989dc42029416015f25e0618d. The upstream memory fix from #5730 is included; my local alternative is excluded. - Linux: full project and libraries built; 1072 tests passed, 48 expected skips, no failures. The eight related runtime tests also passed three consecutive runs each (24/24). Run and artifacts: https://github.com/UmillD/AnyPS5/actions/runs/38539081163 (validation head 71d6a6539). - Windows, supported WinLibs GCC 15.2, Release, elevated: the combined full suite passed 777 tests, with 366 expected skips and no failures. The readlink link cases executed. - Extended Windows validation then exposed another fixture-cleanup failure in guest_path_case. The same native cleanup helper fixed it; that test passed 100 runs afterward without elevation. The other eight related tests had already passed 100 elevated runs each. This additional change is Windows-only and leaves the active Linux code unchanged. - A subsequent non-elevated full-suite attempt failed the cleanup helper's symbolic-link creation check because it requires the Windows privilege available in the elevated run. I am recording this limitation rather than treating that attempt as a fully passing suite. A later elevated full suite exposed another fixture cleanup failure in savedata_memory_metadata. The same native helper was applied only on Windows; the corrected test passed 100 isolated runs. The final elevated full suite then passed: 777 passed, 366 expected skips, no failures, 67.00 seconds, on local validation head 4879dc913. The expected skips were accepted by the repository checker. The cleanup changes are prepared separately, based on the updated main, with no production readlink or memory changes and no CI workflow in the proposed patch. Real temporary files remain rejected by the atomic-cache test, and cleanup failures have bounded retries rather than increased test timeouts. Conventions and diff checks pass. These are combined-branch results, not a claim that the unchanged PR head alone now passes. The official upstream Build still needs a maintainer dispatch. Please advise how to sequence review of the separate fixture fixes while the one-open-PR contributor limit is active. AI-assisted: yes. Prepared with Codex; maintainer review is still needed.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!5528
No description provided.