mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH RESEND v3 0/2] selftests/mm: Validate selections and scope memfd_secret setup
@ 2026-09-09 15:23 Tianyi Chen
  2026-09-09 15:23 ` [PATCH RESEND v3 1/2] selftests/mm: Reject invalid test selections before running tests Tianyi Chen
  2026-09-09 15:23 ` [PATCH RESEND v3 2/2] selftests/mm: Only prepare ptrace_scope when memfd_secret is selected Tianyi Chen
  0 siblings, 2 replies; 6+ messages in thread
From: Tianyi Chen @ 2026-09-09 15:23 UTC (permalink / raw)
  To: Andrew Morton, David Hildenbrand
  Cc: Shuah Khan, linux-mm, linux-kselftest, linux-kernel, Joel Savitz,
	Tianyi Chen

run_vmtests.sh can reach test setup after invalid options or category
selections. Its memfd_secret preparation can also change ptrace_scope
when that category was not selected.

Patch 1 rejects invalid selections before setup. Patch 2 gates
memfd_secret preparation on category selection and executable presence.

This replaces my earlier Gmail resend, whose outbound delivery wrapped
long lines and damaged patch whitespace. Thanks to David for reporting it.
The patches are unchanged and are attached as text/plain to preserve
their contents. I switched to Gmail because my previous address had
delivery problems.

Both patches remain based on mm-unstable b02c77c78ff7. The parser checks
and focused VM selection tests reported in the previous posting passed;
there are no code changes in this resend.

Changes in v3:
- Initialize VM_SELFTEST_ITEMS to "default" before getopts, as David
  suggested. Only -t changes the selection.
- Use Assisted-by: LLM in both patches.
- Carry David's Acked-by on patch 2, unchanged from v2.

Tianyi Chen (2):
  selftests/mm: Reject invalid test selections before running tests
  selftests/mm: Only prepare ptrace_scope when memfd_secret is selected

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

end of thread, other threads:[~2026-09-10 10:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-09 15:23 [PATCH RESEND v3 0/2] selftests/mm: Validate selections and scope memfd_secret setup Tianyi Chen
2026-09-09 15:23 ` [PATCH RESEND v3 1/2] selftests/mm: Reject invalid test selections before running tests Tianyi Chen
2026-09-09 15:33   ` David Hildenbrand (Arm)
2026-09-10 10:25     ` Tianyi Chen
2026-09-10 10:30       ` David Hildenbrand (Arm)
2026-09-09 15:23 ` [PATCH RESEND v3 2/2] selftests/mm: Only prepare ptrace_scope when memfd_secret is selected Tianyi Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®