Re: [PATCH v5 0/3] tools/mm/page_owner_sort: fix filtering and cleanup issues

From: Andrew Morton

Date: Mon Jun 29 2026 - 00:42:37 EST


On Mon, 29 Jun 2026 09:43:13 +0800 Yichong Chen <chenyichong@xxxxxxxxxxxxx> wrote:

> Resend the page_owner_sort cleanup series with corrected threading.
>
> This version replaces the single patch currently queued in mm-new by
> splitting the cleanup into smaller patches and adding the search_pattern()
> bounds fix.
>
> Patch 1 renames is_need() to filter_record() and makes the filter path
> return explicit results. Patch 2 fixes the per-record allocation leaks.
> Patch 3 bounds search_pattern() output copies, addressing the pre-existing
> issue reported by Sashiko/AI review.

Thanks, I'll add this for testing and further review.

It looks like AI review found a minorish issue:

https://sashiko.dev/#/patchset/20260629014316.130307-1-chenyichong@xxxxxxxxxxxxx