Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] selftest/arm64: Fix MTE test setup and TAP reporting
@ 2026-08-21 14:15 Muhammad Usama Anjum
  2026-08-21 14:15 ` [PATCH v2 1/5] selftests/arm64: Print TAP header Muhammad Usama Anjum
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Muhammad Usama Anjum @ 2026-08-21 14:15 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Mark Rutland, Shuah Khan,
	Andrey Konovalov, Andrew Morton, Vincenzo Frascino,
	Amit Daniel Kachhap, Mark Brown, Yeoreum Yun, open list,
	moderated list:ARM64 PORT (AARCH64 ARCHITECTURE),
	open list:KERNEL SELFTEST FRAMEWORK
  Cc: Muhammad Usama Anjum

Running the mainline arm64 MTE selftests on a Pixel 8 exposed three
independent reporting problems. Fix each issue independently, then
add an arm64 Kconfig fragment covering the facilities used by the MTE
tests.

Testing was performed on a Pixel 8 with an Android 6.1 kernel built with
the new configuration. All nine static MTE binaries returned success.

Changes since v1:
- Add missing MTE TAP headers as an output-only cleanup and clarify why
  line buffering prevents duplicate GCR_EL1 plan output.
- Validate KSM privileges and optional sysfs access before setup.
- Move and expand the arm64 config fragment, and standardize subjects on
  the selftests/arm64 prefix.

Muhammad Usama Anjum (5):
  selftests/arm64: Print TAP header
  selftests/arm64: Print missing MTE TAP headers
  selftests/arm64: Treat KSM merge_across_nodes as optional
  selftests/arm64: Fix MTE prctl TAP plan
  selftests/arm64: Add MTE test config fragment

 tools/testing/selftests/arm64/config          | 17 ++++++++++
 .../selftests/arm64/mte/check_buffer_fill.c   |  2 ++
 .../selftests/arm64/mte/check_child_memory.c  |  2 ++
 .../arm64/mte/check_gcr_el1_cswitch.c         |  1 +
 .../arm64/mte/check_hugetlb_options.c         |  2 ++
 .../selftests/arm64/mte/check_ksm_options.c   | 31 +++++++++++++++++--
 .../selftests/arm64/mte/check_mmap_options.c  |  2 ++
 .../testing/selftests/arm64/mte/check_prctl.c |  2 +-
 .../arm64/mte/check_tags_inclusion.c          |  2 ++
 .../selftests/arm64/mte/check_user_mem.c      |  2 ++
 10 files changed, 59 insertions(+), 4 deletions(-)
 create mode 100644 tools/testing/selftests/arm64/config

-- 
2.47.3



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

end of thread, other threads:[~2026-08-25 10:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-21 14:15 [PATCH v2 0/5] selftest/arm64: Fix MTE test setup and TAP reporting Muhammad Usama Anjum
2026-08-21 14:15 ` [PATCH v2 1/5] selftests/arm64: Print TAP header Muhammad Usama Anjum
2026-08-21 14:15 ` [PATCH v2 2/5] selftests/arm64: Print missing MTE TAP headers Muhammad Usama Anjum
2026-08-21 16:04   ` Mark Brown
2026-08-21 16:11     ` Muhammad Usama Anjum
2026-08-21 16:21       ` Mark Brown
2026-08-25 10:21         ` Muhammad Usama Anjum
2026-08-21 14:15 ` [PATCH v2 3/5] selftests/arm64: Treat KSM merge_across_nodes as optional Muhammad Usama Anjum
2026-08-21 15:43   ` Mark Brown
2026-08-21 15:56     ` Muhammad Usama Anjum
2026-08-21 14:15 ` [PATCH v2 4/5] selftests/arm64: Fix MTE prctl TAP plan Muhammad Usama Anjum
2026-08-21 14:15 ` [PATCH v2 5/5] selftests/arm64: Add MTE test config fragment Muhammad Usama Anjum
2026-08-21 16:07   ` Mark Brown

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