Re: [PATCH v2 0/2] selftests/mm: refactor pkey helpers and fix mmap error handling

From: Hongfu Li

Date: Tue May 26 2026 - 03:07:17 EST


> > 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

Thanks. I'll go through the problem reported by the AI review and make
corresponding fixes in v2.

Best regards,
Hongfu