fix(libkernel): retire an EV_ONESHOT note through its delete callback and follow Windows $Deleted paths #7049

Merged
blawesom merged 5 commits from upstream-pr/7049 into main 2026-10-25 11:38:22 +00:00
blawesom commented 2026-10-17 08:19:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-17T08:19:31Z.


What

Carries the additive pieces of #6510 (as offered there after its feature was superseded by #5847), revised per the review of b64fd7377:

  • deleteEventFunc invocation when an EV_ONESHOT note retires in CollectTriggered
  • Windows delete detection through the POSIX recycle-bin path, now matching \$Extend$Deleted`exactly instead of any path containing$Deleted`
  • the vnode modify guard is dropped — FreeBSD's kqueue_register sets kn_sfflags unconditionally for filters without f_touch, matching main's unconditional SetVnodeNotes
  • the timer modify relaxation (data 0 keeps the period) stays, now with a debt-entry line in docs/dev/debt/libkernel.md

Tested

Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV): full suite passes except the known main regression (agc_driver_tessellation segfault, #4727); conventions pass. New tests:

  • VnodeOneshotWatchStops: a vnode EV_ONESHOT fires once, the note is gone, and on Linux the retired watch's inotify descriptor count returns to its pre-watch level (with a bounded wait for the watch thread to exit) — the leak the review described
  • PeriodicTimerFiresTwice: a plain periodic timer fires twice (uncovered on main before)
  • TimerDisableEnableRearm: a disabled periodic timer's EV_ENABLE reports the expiries missed while disabled in one step and keeps the note's phase, and an EV_ADD | EV_ENABLE re-add still throws
  • RecycleBinDeleteWatchedFile (Windows-gated): a watched file renamed under \$Extend$Deleted`reportsNOTE_DELETE`

The requested timer test is in the branch now (TimerDisableEnableRearm): EV_DISABLE followed by EV_ENABLE with data == 0 on a periodic timer reports the expiries missed while disabled in one step and keeps the note's phase, as FreeBSD 11's filt_timerexpire counts a disabled note and keeps its p_nexttime. The next-wait abort described in the earlier round no longer reproduces: it was observed on the pre-rebase head, before main's equeue wait refactor (5cbc46029b). One guard change came out of writing it: a timer modify that sets fflags was silently ignored, where kqueue_register copies it onto the note — it now refuses with the other re-adds, waiting for the measured rules.

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 (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical 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
  • Generic behaviour, not specific to one title
  • Depends on: none (#6510 is superseded by this PR; its feature base #5847 is already on main)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a (libkernel; the guest kqueue tests run CPU-side)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4898542266 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7049). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-17T08:19:31Z. --- ### What Carries the additive pieces of #6510 (as offered there after its feature was superseded by #5847), revised per the review of `b64fd7377`: - `deleteEventFunc` invocation when an `EV_ONESHOT` note retires in `CollectTriggered` - Windows delete detection through the POSIX recycle-bin path, now matching `\`$Extend\$Deleted\`` exactly instead of any path containing `$Deleted` - the vnode modify guard is **dropped** — FreeBSD's `kqueue_register` sets `kn_sfflags` unconditionally for filters without `f_touch`, matching `main`'s unconditional `SetVnodeNotes` - the timer modify relaxation (data 0 keeps the period) stays, now with a debt-entry line in `docs/dev/debt/libkernel.md` ### Tested Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): full suite passes except the known `main` regression (`agc_driver_tessellation` segfault, #4727); conventions pass. New tests: - `VnodeOneshotWatchStops`: a vnode `EV_ONESHOT` fires once, the note is gone, and on Linux the retired watch's inotify descriptor count returns to its pre-watch level (with a bounded wait for the watch thread to exit) — the leak the review described - `PeriodicTimerFiresTwice`: a plain periodic timer fires twice (uncovered on `main` before) - `TimerDisableEnableRearm`: a disabled periodic timer's `EV_ENABLE` reports the expiries missed while disabled in one step and keeps the note's phase, and an `EV_ADD | EV_ENABLE` re-add still throws - `RecycleBinDeleteWatchedFile` (Windows-gated): a watched file renamed under `\`$Extend\$Deleted\`` reports `NOTE_DELETE` **The requested timer test is in the branch now** (`TimerDisableEnableRearm`): `EV_DISABLE` followed by `EV_ENABLE` with `data == 0` on a periodic timer reports the expiries missed while disabled in one step and keeps the note's phase, as FreeBSD 11's `filt_timerexpire` counts a disabled note and keeps its `p_nexttime`. The next-wait abort described in the earlier round no longer reproduces: it was observed on the pre-rebase head, before `main`'s equeue wait refactor (`5cbc46029b`). One guard change came out of writing it: a timer modify that sets `fflags` was silently ignored, where `kqueue_register` copies it onto the note — it now refuses with the other re-adds, waiting for the measured rules. ### 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 (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical 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 - [x] Generic behaviour, not specific to one title - [x] Depends on: none (#6510 is superseded by this PR; its feature base #5847 is already on `main`) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a (libkernel; the guest kqueue tests run CPU-side) - [x] AI-assisted: yes
oneandonlydean commented 2026-10-17 08:27:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T08:27:14Z.


Review of b64fd7377: the EV_ONESHOT detach is correct (it matches FreeBSD kqueue_scan, and it's safe under the lock). Three things block merge:

  1. The vnode guard departs from FreeBSD. In kqueue_register (kern_event.c:1345-1357), every change to an existing knote reaches the "user may change some filter values" block, and filters without f_touch (vnode included) get kn->kn_sfflags = kev->fflags unconditionally. So on FreeBSD, EV_ENABLE/EV_DISABLE with fflags == 0 clears the vnode interest. Main matches that today (SetVnodeNotes(event, change.fflags) is unconditional). Please drop the guard, or point to console/libkernel evidence that the PS5 differs.
  2. None of the 4 production changes is tested. The new tests use only EVFILT_USER/READ/WRITE, which are already on main. Could you add:
    • a vnode EV_ONESHOT test (trigger once, then check the watch is stopped; on Linux, count the threads or inotify fds before and after, since on main each retired oneshot leaks a detached RunHostWatch thread);
    • EVFILT_TIMER EV_DISABLE/EV_ENABLE with data == 0: no firing while disabled, and the period is kept after EV_ENABLE;
    • a Windows variant of the delete test that exercises the $Deleted path (RenameAndDeleteWatchedFile is #ifndef _WIN32).
  3. CI hasn't run. The conventions check fails on the PR template (What/Tested/Checklist are missing), so linux and windows were skipped. Please fill in the template.

Minor:

  • path.find(L"$Deleted") matches any path containing that text. With POSIX delete semantics the file moves under \$Extend\$Deleted\, so match L"\\$Extend\\$Deleted\\".
  • Treating timer data == 0 as "keep the period" is a sane choice, but FreeBSD stores the 0. Please add a line to docs/dev/debt/libkernel.md.

When this lands, #6510 should be closed as superseded, since this carries its parts.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6231732061 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7049#issuecomment-6231732061). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-17T08:27:14Z. --- Review of b64fd7377: the EV_ONESHOT detach is correct (it matches FreeBSD `kqueue_scan`, and it's safe under the lock). Three things block merge: 1. **The vnode guard departs from FreeBSD.** In `kqueue_register` (kern_event.c:1345-1357), every change to an existing knote reaches the "user may change some filter values" block, and filters without `f_touch` (vnode included) get `kn->kn_sfflags = kev->fflags` unconditionally. So on FreeBSD, `EV_ENABLE`/`EV_DISABLE` with `fflags == 0` clears the vnode interest. Main matches that today (`SetVnodeNotes(event, change.fflags)` is unconditional). Please drop the guard, or point to console/libkernel evidence that the PS5 differs. 2. **None of the 4 production changes is tested.** The new tests use only EVFILT_USER/READ/WRITE, which are already on main. Could you add: - a vnode EV_ONESHOT test (trigger once, then check the watch is stopped; on Linux, count the threads or inotify fds before and after, since on main each retired oneshot leaks a detached `RunHostWatch` thread); - EVFILT_TIMER EV_DISABLE/EV_ENABLE with `data == 0`: no firing while disabled, and the period is kept after EV_ENABLE; - a Windows variant of the delete test that exercises the `$Deleted` path (`RenameAndDeleteWatchedFile` is `#ifndef _WIN32`). 3. **CI hasn't run.** The `conventions` check fails on the PR template (What/Tested/Checklist are missing), so linux and windows were skipped. Please fill in the template. Minor: - `path.find(L"$Deleted")` matches any path containing that text. With POSIX delete semantics the file moves under `\$Extend\$Deleted\`, so match `L"\\$Extend\\$Deleted\\"`. - Treating timer `data == 0` as "keep the period" is a sane choice, but FreeBSD stores the 0. Please add a line to `docs/dev/debt/libkernel.md`. When this lands, #6510 should be closed as superseded, since this carries its parts.
blawesom commented 2026-10-17 14:18:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-17T14:18:35Z.


Addressed the review in b3e3e8118: the vnode guard is dropped, the $Deleted match is the exact recycle-bin path, the requested vnode-oneshot/periodic/recycle-bin tests are in (with the inotify release check), the debt line for the timer period is added, and the template is filled. One finding did not make it in — the timer EV_DISABLE/EV_ENABLE cycle aborts on the next wait after a single re-fire, so the relaxed guard needs the timer state to re-arm on enable before that test can land; details in the Tested section of the PR body.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6234988958 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7049#issuecomment-6234988958). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-17T14:18:35Z. --- Addressed the review in `b3e3e8118`: the vnode guard is dropped, the $Deleted match is the exact recycle-bin path, the requested vnode-oneshot/periodic/recycle-bin tests are in (with the inotify release check), the debt line for the timer period is added, and the template is filled. One finding did not make it in — the timer EV_DISABLE/EV_ENABLE cycle aborts on the next wait after a single re-fire, so the relaxed guard needs the timer state to re-arm on enable before that test can land; details in the Tested section of the PR body.
blawesom commented 2026-10-18 08:17:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-18T08:17:37Z.


Re-anchored onto current main (53b717de6) — main had moved past the branch, so the needs-rebase label was fair. The one conflict was the kqueue test runner: main's new LowWaterMarks() call kept alongside this PR's test calls. Full suite green apart from the known main regression (agc_driver_tessellation, Mesa #5444); conventions pass; the kqueue tests including the review-requested ones all pass on the re-anchored head.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6247546165 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7049#issuecomment-6247546165). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-18T08:17:37Z. --- Re-anchored onto current `main` (`53b717de6`) — `main` had moved past the branch, so the needs-rebase label was fair. The one conflict was the kqueue test runner: `main`'s new `LowWaterMarks()` call kept alongside this PR's test calls. Full suite green apart from the known `main` regression (`agc_driver_tessellation`, Mesa #5444); conventions pass; the kqueue tests including the review-requested ones all pass on the re-anchored head.
jotitadev commented 2026-10-18 20:45:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-18T20:45:52Z.

Review: COMMENTED


Static review plus a small arm64 repro on macOS (Apple M2 Max, macOS 27.2, Apple clang 21), head 53b717de6. Two problems in the new tests in core/libs/tests/GuestKqueue.cpp.

1. RecycleBinDeleteWatchedFile never runs on any platform. In main() its call is nested inside the non-Windows block:

#ifndef _WIN32                       // line 963
    RenameAndDeleteWatchedFile();
    VnodeOneshotWatchStops();
    PeriodicTimerFiresTwice();
#ifdef _WIN32                        // line 967: always false here
    RecycleBinDeleteWatchedFile();
#endif
#endif

The function itself is defined only under #ifdef _WIN32 (line 760), so the \$Extend\$Deleted\ change in FileEvent.cpp (IsDeleted/SnapshotHints) has no test that actually runs, even though the PR body lists it under Tested. Moving the #ifdef _WIN32 ... #endif block after the closing #endif fixes it.

2. The leak check in VnodeOneshotWatchStops passes vacuously on macOS. InotifyWatchCount (lines 705-716) iterates /proc/self/fd under #ifndef _WIN32. macOS has no /proc, so directory_iterator sets the error code and the count is always 0. That makes Require(InotifyWatchCount() == watchesBefore) (line 743) true regardless of the fix. The macOS host watch is a ::kqueue() per note (FileEvent.cpp:446), closed when StopVnode stops the watch thread, so the same leak is possible there.

Repro: the PR's InotifyWatchCount copied as is, plus 3 deliberately leaked kqueue() descriptors:

InotifyWatchCount before=0 after=0 (err: No such file or directory) -> check passes: yes (vacuous)
kqueue fds via proc_pidinfo before=0 after=3 -> leak detected: yes

Suggestion: gate the current helper on __linux__. On __APPLE__, count PROX_FDTYPE_KQUEUE entries from proc_pidinfo(getpid(), PROC_PIDLISTFDS, ...) (<libproc.h>), which detected the leaked descriptors above. Alternatively, skip the leak assertion where the count is not meaningful, so the test does not claim coverage it does not have.

(The branch also currently conflicts with main.)

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5564863992 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7049#pullrequestreview-5564863992). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-18T20:45:52Z. **Review:** COMMENTED --- Static review plus a small arm64 repro on macOS (Apple M2 Max, macOS 27.2, Apple clang 21), head `53b717de6`. Two problems in the new tests in `core/libs/tests/GuestKqueue.cpp`. **1. `RecycleBinDeleteWatchedFile` never runs on any platform.** In `main()` its call is nested inside the non-Windows block: ```cpp #ifndef _WIN32 // line 963 RenameAndDeleteWatchedFile(); VnodeOneshotWatchStops(); PeriodicTimerFiresTwice(); #ifdef _WIN32 // line 967: always false here RecycleBinDeleteWatchedFile(); #endif #endif ``` The function itself is defined only under `#ifdef _WIN32` (line 760), so the `\$Extend\$Deleted\` change in `FileEvent.cpp` (`IsDeleted`/`SnapshotHints`) has no test that actually runs, even though the PR body lists it under Tested. Moving the `#ifdef _WIN32 ... #endif` block after the closing `#endif` fixes it. **2. The leak check in `VnodeOneshotWatchStops` passes vacuously on macOS.** `InotifyWatchCount` (lines 705-716) iterates `/proc/self/fd` under `#ifndef _WIN32`. macOS has no `/proc`, so `directory_iterator` sets the error code and the count is always 0. That makes `Require(InotifyWatchCount() == watchesBefore)` (line 743) true regardless of the fix. The macOS host watch is a `::kqueue()` per note (`FileEvent.cpp:446`), closed when `StopVnode` stops the watch thread, so the same leak is possible there. Repro: the PR's `InotifyWatchCount` copied as is, plus 3 deliberately leaked `kqueue()` descriptors: ``` InotifyWatchCount before=0 after=0 (err: No such file or directory) -> check passes: yes (vacuous) kqueue fds via proc_pidinfo before=0 after=3 -> leak detected: yes ``` Suggestion: gate the current helper on `__linux__`. On `__APPLE__`, count `PROX_FDTYPE_KQUEUE` entries from `proc_pidinfo(getpid(), PROC_PIDLISTFDS, ...)` (`<libproc.h>`), which detected the leaked descriptors above. Alternatively, skip the leak assertion where the count is not meaningful, so the test does not claim coverage it does not have. (The branch also currently conflicts with `main`.) AI-assisted: yes (Claude Code)
adriadam10 commented 2026-10-19 12:55:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T12:55:08Z.

Review: CHANGES_REQUESTED


The production change looks right: the deleteEventFunc call mirrors the existing one in CollectOncePerWait, and the exact \$Extend\$Deleted\ match addresses the earlier review. The branch needs the following before it can merge (it also conflicts with main in core/libs/tests/GuestKqueue.cpp and docs/dev/debt/libkernel.md):

  • core/libs/tests/GuestKqueue.cpp (main(), ~line 967): RecycleBinDeleteWatchedFile() is called inside #ifndef _WIN32, so its #ifdef _WIN32 is never true and the $Deleted change has no test that runs. Move the #ifdef _WIN32 block after the closing #endif (as reported by @jotitadev).
  • InotifyWatchCount (~line 706) reads /proc/self/fd; on macOS that directory does not exist, the count is always 0 and the leak assertion passes without checking anything. Gate it on __linux__ and skip the assertion elsewhere (or count kqueue descriptors via proc_pidinfo).
  • The diff also adds DisableAndEnable, Dispatch, ForceOneshot and StressTest (~165 lines) that the description does not mention and that belong to the superseded #6510 feature already covered by DisableAndDispatch on main. Drop them, or move them to their own PR with their own justification. StressTest depends on 4 threads and 1–2 ms sleeps and asserts strict arrival order, which is a flake risk on the CI runners.
  • Cosmetics: the over-indented DisableAndEnable(); call and the double blank line before StressTest.

Please rebase on current main (keep main's LowWaterMarks()/DisableAndDispatch() calls) and re-run guest_kqueue. Happy to re-review once these are addressed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5571836690 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7049#pullrequestreview-5571836690). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T12:55:08Z. **Review:** CHANGES_REQUESTED --- The production change looks right: the `deleteEventFunc` call mirrors the existing one in `CollectOncePerWait`, and the exact `\$Extend\$Deleted\` match addresses the earlier review. The branch needs the following before it can merge (it also conflicts with `main` in `core/libs/tests/GuestKqueue.cpp` and `docs/dev/debt/libkernel.md`): - `core/libs/tests/GuestKqueue.cpp` (`main()`, ~line 967): `RecycleBinDeleteWatchedFile()` is called inside `#ifndef _WIN32`, so its `#ifdef _WIN32` is never true and the `$Deleted` change has no test that runs. Move the `#ifdef _WIN32` block after the closing `#endif` (as reported by @jotitadev). - `InotifyWatchCount` (~line 706) reads `/proc/self/fd`; on macOS that directory does not exist, the count is always 0 and the leak assertion passes without checking anything. Gate it on `__linux__` and skip the assertion elsewhere (or count kqueue descriptors via `proc_pidinfo`). - The diff also adds `DisableAndEnable`, `Dispatch`, `ForceOneshot` and `StressTest` (~165 lines) that the description does not mention and that belong to the superseded #6510 feature already covered by `DisableAndDispatch` on `main`. Drop them, or move them to their own PR with their own justification. `StressTest` depends on 4 threads and 1–2 ms sleeps and asserts strict arrival order, which is a flake risk on the CI runners. - Cosmetics: the over-indented `DisableAndEnable();` call and the double blank line before `StressTest`. Please rebase on current `main` (keep `main`'s `LowWaterMarks()`/`DisableAndDispatch()` calls) and re-run `guest_kqueue`. Happy to re-review once these are addressed.
blawesom commented 2026-10-21 17:12:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-21T17:12:23Z.


Rebased onto current main (d34da5d69) and addressed the review in 895ca7c6:

  • RecycleBinDeleteWatchedFile() now runs on Windows: its call moved after the closing #endif of the #ifndef _WIN32 block, so the \$Extend\$Deleted\ path is exercised
  • InotifyWatchCount and both leak assertions gate on __linux__; on macOS and Windows the leak check is skipped instead of passing vacuously (macOS has no /proc)
  • DisableAndEnable, Dispatch, ForceOneshot and StressTest are dropped with their main() calls (superseded #6510 feature; StressTest asserted strict arrival order across 4 threads with 1–2 ms sleeps — CI flake risk), and the two includes only they needed are gone
  • The kqueue test-runner conflict resolved keeping main's side (StandardInput, WatchKqueue, edge-triggered calls) alongside this PR's test calls
  • The debt-file conflict resolved keeping both entries (main's new entries plus this PR's EVFILT_TIMER line)

Tested: Linux (CachyOS, kernel 7.2.10, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV): guest_kqueue passes on the rebased head; tools/check_conventions.py --base origin/main passes. The Windows-gated RecycleBinDeleteWatchedFile still needs a Windows run to confirm it executes there.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6321963639 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7049#issuecomment-6321963639). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-21T17:12:23Z. --- Rebased onto current `main` (`d34da5d69`) and addressed the review in `895ca7c6`: - `RecycleBinDeleteWatchedFile()` now runs on Windows: its call moved after the closing `#endif` of the `#ifndef _WIN32` block, so the `\$Extend\$Deleted\` path is exercised - `InotifyWatchCount` and both leak assertions gate on `__linux__`; on macOS and Windows the leak check is skipped instead of passing vacuously (macOS has no `/proc`) - `DisableAndEnable`, `Dispatch`, `ForceOneshot` and `StressTest` are dropped with their `main()` calls (superseded #6510 feature; `StressTest` asserted strict arrival order across 4 threads with 1–2 ms sleeps — CI flake risk), and the two includes only they needed are gone - The kqueue test-runner conflict resolved keeping main's side (`StandardInput`, `WatchKqueue`, edge-triggered calls) alongside this PR's test calls - The debt-file conflict resolved keeping both entries (main's new entries plus this PR's `EVFILT_TIMER` line) Tested: Linux (CachyOS, kernel 7.2.10, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): `guest_kqueue` passes on the rebased head; `tools/check_conventions.py --base origin/main` passes. The Windows-gated `RecycleBinDeleteWatchedFile` still needs a Windows run to confirm it executes there.
blawesom commented 2026-10-22 06:26:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-22T06:26:05Z.


@adriadam10 — re-requesting your review, as you offered:

Addressed per your review; head is now 3ecd18feaf (rebased, same content as 072d780c66).

  • Rebased onto current main (d6eafa54d0); main's LowWaterMarks() and DisableAndDispatch() are kept.
  • RecycleBinDeleteWatchedFile() now runs on Windows: its #ifdef _WIN32 block sits after the closing #endif of the non-Windows block, so the $Extend$Deleted path is exercised.
  • InotifyWatchCount and both leak assertions gate on __linux__; elsewhere the count is not asserted. I took your "skip the assertion where the count is not meaningful" option rather than proc_pidinfo kqueue counting on macOS — happy to switch if you would rather have real coverage there.
  • DisableAndEnable, Dispatch, ForceOneshot and StressTest are dropped together with their main() calls, so the indentation and blank-line cosmetics went with them.
  • guest_kqueue re-run on the rebased head: Passed (4.2 s) — Linux (CachyOS, kernel 7.2.10, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, Ryzen 7 9800X3D).
  • tools/check_conventions.py --base origin/main passes; tools/pr_overlap.py reports only the shared docs/dev/debt/libkernel.md line and the same-file PRs already known open (#7088, #7653), none of which this builds on.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6334290236 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7049#issuecomment-6334290236). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-22T06:26:05Z. --- @adriadam10 — re-requesting your review, as you offered: Addressed per your review; head is now `3ecd18feaf` (rebased, same content as `072d780c66`). - Rebased onto current `main` (`d6eafa54d0`); `main`'s `LowWaterMarks()` and `DisableAndDispatch()` are kept. - `RecycleBinDeleteWatchedFile()` now runs on Windows: its `#ifdef _WIN32` block sits after the closing `#endif` of the non-Windows block, so the `$Extend$Deleted` path is exercised. - `InotifyWatchCount` and both leak assertions gate on `__linux__`; elsewhere the count is not asserted. I took your "skip the assertion where the count is not meaningful" option rather than `proc_pidinfo` kqueue counting on macOS — happy to switch if you would rather have real coverage there. - `DisableAndEnable`, `Dispatch`, `ForceOneshot` and `StressTest` are dropped together with their `main()` calls, so the indentation and blank-line cosmetics went with them. - `guest_kqueue` re-run on the rebased head: **Passed** (4.2 s) — Linux (CachyOS, kernel 7.2.10, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, Ryzen 7 9800X3D). - `tools/check_conventions.py --base origin/main` passes; `tools/pr_overlap.py` reports only the shared `docs/dev/debt/libkernel.md` line and the same-file PRs already known open (#7088, #7653), none of which this builds on.
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!7049
No description provided.