All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] selftests/mm: refactor pkey helpers and fix mmap error handling
@ 2026-05-25  7:30 Hongfu Li
  2026-05-25  7:30 ` [PATCH v2 1/2] selftests/mm: refactor pkey test helpers and unify assertions Hongfu Li
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Hongfu Li @ 2026-05-25  7:30 UTC (permalink / raw)
  To: akpm, david, ljs, liam, vbabka, rppt, surenb, mhocko, shuah
  Cc: linux-mm, linux-kselftest, linux-kernel, Hongfu Li

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@kylinos.cn/

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.

Hongfu Li (2):
  selftests/mm: Refactor pkey test helpers and unify assertions
  selftests/mm: add missing mmap() return checks in pkey tests

 tools/testing/selftests/mm/pkey-helpers.h     |  5 +-
 tools/testing/selftests/mm/pkey-powerpc.h     |  2 +-
 .../selftests/mm/pkey_sighandler_tests.c      | 20 ++--
 tools/testing/selftests/mm/pkey_util.c        | 81 +++++++++++++++
 tools/testing/selftests/mm/protection_keys.c  | 98 ++-----------------
 5 files changed, 109 insertions(+), 97 deletions(-)

---
v2:
- Update commit message
- Move shared tracing and assertion helpers to a common file,
  replace assert() with pkey_assert() in sighandler tests
- Drop assert() from main() in protection_keys.c and add a proper error
  message instead.
-- 
2.50.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-05-28  8:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-25  7:30 [PATCH v2 0/2] selftests/mm: refactor pkey helpers and fix mmap error handling Hongfu Li
2026-05-25  7:30 ` [PATCH v2 1/2] selftests/mm: refactor pkey test helpers and unify assertions Hongfu Li
2026-05-25  7:30 ` [PATCH v2 2/2] selftests/mm: add missing mmap() return checks in pkey tests Hongfu Li
2026-05-25 20:02 ` [PATCH v2 0/2] selftests/mm: refactor pkey helpers and fix mmap error handling Andrew Morton
2026-05-26  7:05   ` Hongfu Li
2026-05-27 16:24     ` Lorenzo Stoakes
2026-05-28  8:29       ` Hongfu Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.