fix(libc): restore syslog program-name fallback #9929

Merged
sandivd merged 3 commits from upstream-pr/9929 into main 2026-11-04 17:34:30 +00:00
sandivd commented 2026-10-22 22:13:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by sandivd on 2026-10-22T22:13:44Z.


What

Restore libc syslog's program-name fallback using the existing libkernel program-name source, following the borrowed-pointer and caching behaviour in [FreeBSD 11.4 syslog.c](github.com/freebsd/freebsd-src@8c639945a4/lib/libc/gen/syslog.c).

The implementation:

  • Uses the registered program name when no explicit openlog identifier is supplied.
  • Preserves explicit identifiers, fallback caching, and closelog behaviour.
  • Uses the existing libkernel-to-libc dependency direction without introducing a reverse dependency.
  • Covers program-name lifetime, buffer mutation, null/empty identifiers, masked messages, and library unload/reload through regression tests.
  • Preserves caller errno across the relevant syslog operations. The test also saves and restores errno around std::thread construction to remain portable across glibc versions.

Remaining console-specific limitations and borrowed-pointer lifetime requirements are documented in [libc technical debt](github.com/boykopovar/AnyPS5@fa25a4b798/docs/dev/debt/libc.md).

Current integration

Rebased onto upstream/main at [3a2b91981651569163768854a1fcdc7193b6667b](https://github.com/boykopovar/AnyPS5/commit/3a2b91981651569163768854a1fcdc7193b6667b).

PR HEAD: fa25a4b798ecf66300dd100d6c4d37bdb9c7c9da

The rebase preserves upstream declarations, API includes, source/test registrations, and unrelated technical debt entries. Production Syslog.cpp and the complete syslog regression test remain byte-identical to the previously published versions.

The final change set contains six files. The syslog debt entry was shortened from 1,700 to 694 characters without removing the remaining limitations.

Implementation, testing, review, and PR preparation were assisted by OpenAI Codex.

Tested

The following results were obtained locally on the rebased HEAD fa25a4b798ecf66300dd100d6c4d37bdb9c7c9da.

Windows 11 — MSYS2 UCRT64, GCC 16.2.0

  • Full system-library build: passed.
  • guest_syslog: 1/1 passed.
  • guest_syslog_reload: 1/1 passed, including real libkernel unload/reload.
  • Additional focused and lifecycle checks: 34/34 passed.
  • Patched-library loading: all 373 libraries loaded, zero failures.
  • Library destructor audit: 373 modules passed.
  • Header and registration checks: 2/2 passed.

Linux — WSL2 Ubuntu 24.04.1, GCC 13.3.0, glibc 2.39

  • Focused libc/libkernel component build: passed.
  • Relevant component and regression tests: 20/20 passed, including guest_syslog.

Isolated glibc 2.43 regression verification

  • The original test failed under the isolated newer runtime as expected.
  • The repaired test passed 5/5 executions.
  • This verification used an isolated glibc runtime, not a complete Ubuntu 26.04/GCC 15 environment.

Conventions and integration checks

  • git diff --check: passed.
  • Repository conventions against the tested upstream/main: zero errors, zero warnings.
  • The six-file PR diff and intended syslog behaviour were preserved during rebase.
  • The older fork-base conventions comparison still reports inherited upstream warnings and one upstream commit-title error; these are not findings against the refreshed base.

Exact commands and recorded CTest output for Windows guest_syslog, guest_syslog_reload, and Linux guest_syslog are included in the [verification comment](https://github.com/boykopovar/AnyPS5/pull/9929#issuecomment-6485952883).

Known limitations

  • Default Windows configuration encounters an nghttp2 install/export dependency failure, independently reproduced on unmodified upstream main. Runtime builds succeeded with CMAKE_SKIP_INSTALL_RULES=ON; no tests or assertions were disabled.
  • Hosted Conventions and PR labels checks passed. Hosted Build and Progress report remain action_required; no hosted product CI pass is claimed.
  • No PS5 hardware/title/homebrew execution, macOS testing, full Linux library matrix, native Linux kernel-library unload/reload, or complete project-wide test suite was performed.
  • No GPU validation was performed because GPU functionality was not changed.
  • Borrowed program-name storage must remain valid while referenced by syslog. Console logging delivery remains unverified on PS5.
  • Earlier open-PR overlap analysis identified shared-file conflicts and incomplete comparisons. That analysis has not been refreshed against the current PR set; merge coordination may still be required.

Checklist

  • Based on current main at the tested snapshot 3a2b9198; no duplicate program-name fallback implementation was identified in the earlier overlap review, subject to its documented limitations
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source (no new third-party code added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4974826337 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9929). Originally posted by [sandivd](https://github.com/sandivd) on 2026-10-22T22:13:44Z. --- ### What Restore libc syslog's program-name fallback using the existing libkernel program-name source, following the borrowed-pointer and caching behaviour in [[FreeBSD 11.4 syslog.c](https://github.com/freebsd/freebsd-src/blob/8c639945a44588f6cfdddfb057bb5aad88735da0/lib/libc/gen/syslog.c)](https://github.com/freebsd/freebsd-src/blob/8c639945a44588f6cfdddfb057bb5aad88735da0/lib/libc/gen/syslog.c). The implementation: - Uses the registered program name when no explicit `openlog` identifier is supplied. - Preserves explicit identifiers, fallback caching, and `closelog` behaviour. - Uses the existing libkernel-to-libc dependency direction without introducing a reverse dependency. - Covers program-name lifetime, buffer mutation, null/empty identifiers, masked messages, and library unload/reload through regression tests. - Preserves caller `errno` across the relevant syslog operations. The test also saves and restores `errno` around `std::thread` construction to remain portable across glibc versions. Remaining console-specific limitations and borrowed-pointer lifetime requirements are documented in [[libc technical debt](https://github.com/boykopovar/AnyPS5/blob/fa25a4b798ecf66300dd100d6c4d37bdb9c7c9da/docs/dev/debt/libc.md)](https://github.com/boykopovar/AnyPS5/blob/fa25a4b798ecf66300dd100d6c4d37bdb9c7c9da/docs/dev/debt/libc.md). **Current integration** Rebased onto upstream/main at [`[3a2b91981651569163768854a1fcdc7193b6667b](https://github.com/boykopovar/AnyPS5/commit/3a2b91981651569163768854a1fcdc7193b6667b)`](https://github.com/boykopovar/AnyPS5/commit/3a2b91981651569163768854a1fcdc7193b6667b). PR HEAD: `fa25a4b798ecf66300dd100d6c4d37bdb9c7c9da` The rebase preserves upstream declarations, API includes, source/test registrations, and unrelated technical debt entries. Production `Syslog.cpp` and the complete syslog regression test remain byte-identical to the previously published versions. The final change set contains six files. The syslog debt entry was shortened from 1,700 to 694 characters without removing the remaining limitations. Implementation, testing, review, and PR preparation were assisted by OpenAI Codex. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> The following results were obtained locally on the rebased HEAD `fa25a4b798ecf66300dd100d6c4d37bdb9c7c9da`. **Windows 11 — MSYS2 UCRT64, GCC 16.2.0** - Full system-library build: passed. - `guest_syslog`: 1/1 passed. - `guest_syslog_reload`: 1/1 passed, including real libkernel unload/reload. - Additional focused and lifecycle checks: 34/34 passed. - Patched-library loading: all 373 libraries loaded, zero failures. - Library destructor audit: 373 modules passed. - Header and registration checks: 2/2 passed. **Linux — WSL2 Ubuntu 24.04.1, GCC 13.3.0, glibc 2.39** - Focused libc/libkernel component build: passed. - Relevant component and regression tests: 20/20 passed, including `guest_syslog`. **Isolated glibc 2.43 regression verification** - The original test failed under the isolated newer runtime as expected. - The repaired test passed 5/5 executions. - This verification used an isolated glibc runtime, not a complete Ubuntu 26.04/GCC 15 environment. **Conventions and integration checks** - `git diff --check`: passed. - Repository conventions against the tested upstream/main: zero errors, zero warnings. - The six-file PR diff and intended syslog behaviour were preserved during rebase. - The older fork-base conventions comparison still reports inherited upstream warnings and one upstream commit-title error; these are not findings against the refreshed base. Exact commands and recorded CTest output for Windows `guest_syslog`, `guest_syslog_reload`, and Linux `guest_syslog` are included in the [[verification comment](https://github.com/boykopovar/AnyPS5/pull/9929#issuecomment-6485952883)](https://github.com/boykopovar/AnyPS5/pull/9929#issuecomment-6485952883). **Known limitations** - Default Windows configuration encounters an `nghttp2` install/export dependency failure, independently reproduced on unmodified upstream main. Runtime builds succeeded with `CMAKE_SKIP_INSTALL_RULES=ON`; no tests or assertions were disabled. - Hosted Conventions and PR labels checks passed. Hosted Build and Progress report remain `action_required`; no hosted product CI pass is claimed. - No PS5 hardware/title/homebrew execution, macOS testing, full Linux library matrix, native Linux kernel-library unload/reload, or complete project-wide test suite was performed. - No GPU validation was performed because GPU functionality was not changed. - Borrowed program-name storage must remain valid while referenced by syslog. Console logging delivery remains unverified on PS5. - Earlier open-PR overlap analysis identified shared-file conflicts and incomplete comparisons. That analysis has not been refreshed against the current PR set; merge coordination may still be required. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main` at the tested snapshot `3a2b9198`; no duplicate program-name fallback implementation was identified in the earlier overlap review, subject to its documented limitations - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [[technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md)](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [[technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt)](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source (no new third-party code added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-22 23:26:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T23:26:44Z.

Review: CHANGES_REQUESTED


The current head still contains the portability failure reported in the Linux run: the test saves afterFirst before the std::thread(...).join() call, then later asserts at the end that the calling thread errno is still 2. The submitted test therefore treats std::thread as preserving errno, which is not guaranteed; the reported Ubuntu 26.04/glibc 2.43 run reproduces EINVAL after the join and fails guest_syslog 5/5 until errno is saved/restored around that test step. Please keep the assertion focused on the syslog call’s errno-preservation behavior (for example, save and restore the caller errno around the thread operation), and rerun guest_syslog on Linux. This is a test portability failure, not a request to change production syslog errno semantics.

I also rechecked this head (47445ed34b46fe5bd78639f2f8b7831d7cd0fec4) against current main 895f47f4eeaf56048b9a7080b7c01a9a47cf0ecf: diff-check and conventions pass, but the branch is 151 commits behind and current main has since changed the shared libc/kernel process and build paths. Please refresh before merge, preserve the program-name registration/unload behavior and both syslog test registrations, and rerun the focused test after the refresh. No hosted product tests are currently reported as run.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5622147371 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9929#pullrequestreview-5622147371). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T23:26:44Z. **Review:** CHANGES_REQUESTED --- The current head still contains the portability failure reported in the Linux run: the test saves `afterFirst` before the `std::thread(...).join()` call, then later asserts at the end that the calling thread errno is still `2`. The submitted test therefore treats `std::thread` as preserving errno, which is not guaranteed; the reported Ubuntu 26.04/glibc 2.43 run reproduces `EINVAL` after the join and fails `guest_syslog` 5/5 until errno is saved/restored around that test step. Please keep the assertion focused on the syslog call’s errno-preservation behavior (for example, save and restore the caller errno around the thread operation), and rerun `guest_syslog` on Linux. This is a test portability failure, not a request to change production syslog errno semantics. I also rechecked this head (`47445ed34b46fe5bd78639f2f8b7831d7cd0fec4`) against current main `895f47f4eeaf56048b9a7080b7c01a9a47cf0ecf`: diff-check and conventions pass, but the branch is 151 commits behind and current main has since changed the shared libc/kernel process and build paths. Please refresh before merge, preserve the program-name registration/unload behavior and both syslog test registrations, and rerun the focused test after the refresh. No hosted product tests are currently reported as run.
MarcZX10 commented 2026-10-28 22:21:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T22:21:02Z.

Review: CHANGES_REQUESTED


The reviewed code now includes the errno save/restore around thread creation, addressing the prior glibc portability failure. The author reports 15/15 focused Windows tests, 9/9 focused WSL tests, and five passing executions with isolated glibc 2.43; these are reports for reviewed contents, not fresh runs on this exact merged head. Current hosted conventions and labels pass, but product jobs are not shown as run.

The current head 57c6df1f5620c34835e450490fbc574c854e74d1 is non-mergeable (DIRTY) against main; the latest merge of main is from October 26 and is 3,704 commits behind the current tip. Please resolve the current merge conflicts, confirm the declaration/include/test-fixture resolutions, and rerun the focused guest_syslog tests on the resulting tree. This integration check blocks approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5690454494 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9929#pullrequestreview-5690454494). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T22:21:02Z. **Review:** CHANGES_REQUESTED --- The reviewed code now includes the errno save/restore around thread creation, addressing the prior glibc portability failure. The author reports 15/15 focused Windows tests, 9/9 focused WSL tests, and five passing executions with isolated glibc 2.43; these are reports for reviewed contents, not fresh runs on this exact merged head. Current hosted conventions and labels pass, but product jobs are not shown as run. The current head `57c6df1f5620c34835e450490fbc574c854e74d1` is non-mergeable (`DIRTY`) against `main`; the latest merge of main is from October 26 and is 3,704 commits behind the current tip. Please resolve the current merge conflicts, confirm the declaration/include/test-fixture resolutions, and rerun the focused `guest_syslog` tests on the resulting tree. This integration check blocks approval.
MarcZX10 commented 2026-10-28 23:56:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T23:56:24Z.

Review: CHANGES_REQUESTED


Re-checked — changes requested for current-main integration

The syslog integration changes are preserved and the author reports broad passing tests, but the branch still needs to be brought up to current main before approval.

What I ran

  • Reviewed exact head 98cc65ce6e4c8c9c160e946c54d2f73c34391e27; current main is 3a2b91981651569163768854a1fcdc7193b6667b.
  • git merge-tree --write-tree upstream/main upstream/pr-9929 — clean preview, tree 2163fe8b5702ab158244c941ccdeddfbca1609f9.
  • git diff --check upstream/main...upstream/pr-9929 — passed.
  • python3 tools/check_conventions.py --base upstream/main --head upstream/pr-9929 — 0 errors; it reports one debt-length warning for a 1,700-character entry.
  • I did not rerun the component tests. The author reports 15/15 focused Windows tests, 17/17 lifecycle tests, 20/20 Linux tests, and 5/5 isolated glibc regression runs on the tree based on c9207624bc.

Results

Check Result
Current-main merge preview Clean
Convention and whitespace checks Passed with one non-blocking debt-length warning
Author-reported focused Windows/Linux tests Pass on the older tested tree
Current-main integration tests Not verified

Findings

The update preserves the existing syslog behavior and the new program-name registration; the reported tests cover the focused path and the author appropriately does not claim hosted product CI passed. The current-main merge preview is clean.

However, the tested branch is based on c9207624bc, while current main is 3a2b91981651569163768854a1fcdc7193b6667b. CONTRIBUTING.md requires branches to stay up to date. Since current main also changed libc/CMakeLists.txt, libc/include/General.hpp, and docs/dev/debt/libc.md after this branch point, please rebase onto current main and rerun the focused guest_syslog tests on the resulting tree. The merge preview alone does not establish that the updated test/build integration passes.

Non-blocking: the convention check flags the 1,700-character syslog debt entry for length; consider shortening it to the remaining gap and the behavior needed to explain it.

Sources

Not verified

I did not run the Windows reload/unload test, a Linux component build, the isolated glibc test, or any console behavior. Those results above are attributed to the author.

To get this to a good state

Rebase onto current main, rerun guest_syslog and guest_syslog_reload where available, and attach the exact updated head and output. I can then finish the review.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5691216615 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9929#pullrequestreview-5691216615). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T23:56:24Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes requested for current-main integration The syslog integration changes are preserved and the author reports broad passing tests, but the branch still needs to be brought up to current `main` before approval. ## What I ran - Reviewed exact head `98cc65ce6e4c8c9c160e946c54d2f73c34391e27`; current `main` is `3a2b91981651569163768854a1fcdc7193b6667b`. - `git merge-tree --write-tree upstream/main upstream/pr-9929` — clean preview, tree `2163fe8b5702ab158244c941ccdeddfbca1609f9`. - `git diff --check upstream/main...upstream/pr-9929` — passed. - `python3 tools/check_conventions.py --base upstream/main --head upstream/pr-9929` — 0 errors; it reports one `debt-length` warning for a 1,700-character entry. - I did not rerun the component tests. The author reports 15/15 focused Windows tests, 17/17 lifecycle tests, 20/20 Linux tests, and 5/5 isolated glibc regression runs on the tree based on `c9207624bc`. ## Results | Check | Result | |---|---| | Current-main merge preview | Clean | | Convention and whitespace checks | Passed with one non-blocking debt-length warning | | Author-reported focused Windows/Linux tests | Pass on the older tested tree | | Current-main integration tests | Not verified | ## Findings The update preserves the existing syslog behavior and the new program-name registration; the reported tests cover the focused path and the author appropriately does not claim hosted product CI passed. The current-main merge preview is clean. However, the tested branch is based on `c9207624bc`, while current `main` is `3a2b91981651569163768854a1fcdc7193b6667b`. `CONTRIBUTING.md` requires branches to stay up to date. Since current `main` also changed `libc/CMakeLists.txt`, `libc/include/General.hpp`, and `docs/dev/debt/libc.md` after this branch point, please rebase onto current `main` and rerun the focused `guest_syslog` tests on the resulting tree. The merge preview alone does not establish that the updated test/build integration passes. Non-blocking: the convention check flags the 1,700-character syslog debt entry for length; consider shortening it to the remaining gap and the behavior needed to explain it. ## Sources - [Current PR head](https://github.com/boykopovar/AnyPS5/commit/98cc65ce6e4c8c9c160e946c54d2f73c34391e27) - [Author's fresh test report](https://github.com/boykopovar/AnyPS5/pull/9929#issuecomment-6483539908) - [Contribution rule on keeping branches current](https://github.com/boykopovar/AnyPS5/blob/3a2b91981651569163768854a1fcdc7193b6667b/CONTRIBUTING.md#L60) ## Not verified I did not run the Windows reload/unload test, a Linux component build, the isolated glibc test, or any console behavior. Those results above are attributed to the author. ## To get this to a good state Rebase onto current `main`, rerun `guest_syslog` and `guest_syslog_reload` where available, and attach the exact updated head and output. I can then finish the review.
MarcZX10 commented 2026-10-29 02:12:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T02:12:19Z.

Review: APPROVED


Re-checked — approved

I reviewed exact head fa25a4b798ecf66300dd1000? against current main (3a2b91981651569163768854a1fcdc7193b6667b). The program-name fallback integration and unload/reload handling are preserved, and the new head addresses the merge and focused-test issues from my previous review.

What I ran

  • git merge-tree --write-tree upstream/main refs/remotes/review/9929
  • git diff --check upstream/main...refs/remotes/review/9929
  • python3 tools/check_conventions.py --base upstream/main --head refs/remotes/review/9929
  • Inspected the exact-head diff for Syslog.cpp, process-name registration, test wiring, reload behavior, and the updated debt entry.
  • Read the author's exact-head Windows and Linux test report. I did not rerun those component tests locally.

Results

Check Result
Current-main merge preview Clean (bf58f2af1d5a7fbd0da8a2a91a38ad5792686c1c)
Diff whitespace Passed
Conventions Passed
Hosted conventions and labels Passed
Author-reported exact-head Windows focused tests guest_syslog and guest_syslog_reload passed
Author-reported Linux focused tests guest_syslog passed in the 20-test run; isolated glibc 2.43 regression passed 5/5
Raw local check output
Merge preview: bf58f2af1d5a7fbd0da8a2a91a38ad5792686c1c
Diff check: clean
All conventions checks passed.
Hosted checks: conventions pass; labels pass

Negative control

No separate negative-control run was relevant to this change. The reported guest_syslog_reload test exercises the fallback before kernel load, while the kernel module is loaded, after unload, and after reload; it also checks that an explicit identity survives unload and is cleared by closelog.

Findings

No blocking findings on the reviewed head. The implementation registers the address of the kernel's program-name pointer, lazily caches its fallback for syslog output, and clears the registration when libkernel unloads. The tests cover registration lifecycle, borrowed program-name/identity storage, pointer mutation, errno preservation, and the existing mask/facility behavior. The Windows reload test is wired only on Windows, where the module unload behavior is relevant.

The author explicitly reports that the hosted product build remains action_required; I do not count it as a passing hosted build. The supplied Windows, Linux, and isolated glibc results are attributed to the author.

Sources

Not verified locally

I did not run the Windows DLL reload test, Linux component suite, isolated glibc regression, full product build, or console behavior locally. The focused Windows/Linux and glibc results above come from the author's report.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5692054757 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9929#pullrequestreview-5692054757). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T02:12:19Z. **Review:** APPROVED --- # Re-checked — approved I reviewed exact head `fa25a4b798ecf66300dd1000?` against current `main` (`3a2b91981651569163768854a1fcdc7193b6667b`). The program-name fallback integration and unload/reload handling are preserved, and the new head addresses the merge and focused-test issues from my previous review. ## What I ran - `git merge-tree --write-tree upstream/main refs/remotes/review/9929` - `git diff --check upstream/main...refs/remotes/review/9929` - `python3 tools/check_conventions.py --base upstream/main --head refs/remotes/review/9929` - Inspected the exact-head diff for `Syslog.cpp`, process-name registration, test wiring, reload behavior, and the updated debt entry. - Read the author's exact-head Windows and Linux test report. I did not rerun those component tests locally. ## Results | Check | Result | |---|---| | Current-main merge preview | Clean (`bf58f2af1d5a7fbd0da8a2a91a38ad5792686c1c`) | | Diff whitespace | Passed | | Conventions | Passed | | Hosted conventions and labels | Passed | | Author-reported exact-head Windows focused tests | `guest_syslog` and `guest_syslog_reload` passed | | Author-reported Linux focused tests | `guest_syslog` passed in the 20-test run; isolated glibc 2.43 regression passed 5/5 | <details><summary>Raw local check output</summary> ```text Merge preview: bf58f2af1d5a7fbd0da8a2a91a38ad5792686c1c Diff check: clean All conventions checks passed. Hosted checks: conventions pass; labels pass ``` </details> ## Negative control No separate negative-control run was relevant to this change. The reported `guest_syslog_reload` test exercises the fallback before kernel load, while the kernel module is loaded, after unload, and after reload; it also checks that an explicit identity survives unload and is cleared by `closelog`. ## Findings No blocking findings on the reviewed head. The implementation registers the address of the kernel's program-name pointer, lazily caches its fallback for syslog output, and clears the registration when libkernel unloads. The tests cover registration lifecycle, borrowed program-name/identity storage, pointer mutation, errno preservation, and the existing mask/facility behavior. The Windows reload test is wired only on Windows, where the module unload behavior is relevant. The author explicitly reports that the hosted product build remains `action_required`; I do not count it as a passing hosted build. The supplied Windows, Linux, and isolated glibc results are attributed to the author. ## Sources - [Current PR head](https://github.com/boykopovar/AnyPS5/commit/fa25a4b798ecf66300dd1000?diff=split) - [Author's exact-head test report](https://github.com/boykopovar/AnyPS5/pull/9929#issuecomment-6485722500) - [Current PR checks](https://github.com/boykopovar/AnyPS5/pull/9929/checks) ## Not verified locally I did not run the Windows DLL reload test, Linux component suite, isolated glibc regression, full product build, or console behavior locally. The focused Windows/Linux and glibc results above come from the author's report.
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!9929
No description provided.