Re: [PATCH v2 0/2] selftests/mm: refactor pkey helpers and fix mmap error handling
From: Andrew Morton
Date: Mon May 25 2026 - 16:02:08 EST
On Mon, 25 May 2026 15:30:24 +0800 Hongfu Li <lihongfu@xxxxxxxxxx> wrote:
> This series is version 2 of the previous patch [0]. In v2, the changes are
> split into two patches for easier review.
> [0] https://lore.kernel.org/all/20260518082120.3890552-1-lihongfu@xxxxxxxxxx/
>
> The main changes in this series are to refactor shared tracing and assertion
> helpers into a common file, unify both pkey selftests on pkey_assert() and
> per-test tracing for consistent diagnostics, and add missing mmap() return
> checks with MAP_FAILED used throughout for readability and consistency.
Thanks. AI review seems to have found a legitimate problem:
https://sashiko.dev/#/patchset/20260525073026.27594-1-lihongfu@xxxxxxxxxx