From nobody Mon Sep 28 15:34:29 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77287477987; Thu, 20 Aug 2026 15:34:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787240054; cv=none; b=HEi5w+yIBcP9CpFdw2KnTBmoS5Dt4zxRDntQ/v5dqR3+POI5avfFlTNCmcMF8FbCbV5iSnAk9oTguI50eFCXd+B1w8KoWwSkb7d+Xq4w1PLyXK792SvswLnx43sLJaxVYh1eIh1NaIoXG65wMHCR0APyphzxDyfeJEXJHBN3b0M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787240054; c=relaxed/simple; bh=CvlsiaC9CEj3pqCNXtrP9ggl485N6tB8uCE1Z39SSLg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fA1w9LYCxZEV038yQ9jIPMLZkEah3UusBp6FQpdd1BUwwKBPfbk6vwttUlCOG4sISb5ZXhCZbGlHZvrSMdOtTiyZxTAfC7tMZo2/1NiIXFUNJPbzbfn7p4SKgANzDXBV/hw9FWSwTx2HDzEJofynK3JzdteyenF0l6QWELJAcBk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=Um62joE4; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="Um62joE4" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F32501691; Thu, 20 Aug 2026 08:34:06 -0700 (PDT) Received: from e142334-100.cambridge.arm.com (e142334-100.cambridge.arm.com [10.2.198.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 049683F763; Thu, 20 Aug 2026 08:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1787240050; bh=CvlsiaC9CEj3pqCNXtrP9ggl485N6tB8uCE1Z39SSLg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Um62joE45H0VQ9/7gE3OxZ939G0p3RxMOG9cGPNx0c0qP3jmYB0NCT9QRGyAPaF3E wgkyOnEYxEMu8Q2xTVVZqmxxe6T8aJhhYGu1VaPN+B06kgJjcm4+ObFbabuPo0CPK1 wc2/vvWCjJqzcnrzuaUw2ab7F0b80Yrf1PYs5Uec= From: Muhammad Usama Anjum To: Catalin Marinas , Will Deacon , Mark Rutland , Shuah Khan , Andrey Konovalov , Andrew Morton , Vincenzo Frascino , Amit Daniel Kachhap , Mark Brown , Yeoreum Yun , linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)), linux-kselftest@vger.kernel.org (open list:KERNEL SELFTEST FRAMEWORK) Cc: Muhammad Usama Anjum Subject: [PATCH 1/4] selftest/arm64: Print TAP header Date: Thu, 20 Aug 2026 16:33:23 +0100 Message-ID: <20260820153331.2448875-2-usama.anjum@arm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260820153331.2448875-1-usama.anjum@arm.com> References: <20260820153331.2448875-1-usama.anjum@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The test sets a TAP plan and emits a result but does not print the TAP version header. Direct execution therefore starts with: 1..1 instead of "TAP version 13", leaving the output malformed for TAP consumers. Print the kselftest header before the plan, matching the other arm64 MTE tests. Fixes: 29f080881601 ("kselftest/arm64: check GCR_EL1 after context switch") Signed-off-by: Muhammad Usama Anjum Reviewed-by: Mark Brown --- tools/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c b/to= ols/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c index 325bca0de0f6e..d23f154d3288c 100644 --- a/tools/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c +++ b/tools/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c @@ -131,6 +131,7 @@ int main(int argc, char *argv[]) if (err) return err; =20 + ksft_print_header(); ksft_set_plan(1); =20 evaluate_test(mte_gcr_fork_test(), --=20 2.47.3 From nobody Mon Sep 28 15:34:29 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EDB04772AB; Thu, 20 Aug 2026 15:34:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787240055; cv=none; b=p7MjwkuaLIZGWR+KS29drZ7XJ7fCLH08Czysv+yvQ50sdPKbMQk9XuZ8hY9IK7eVcgjoV4+5OlMRMrRGxyG9kLyMb1k4BKgfvjqV1aTtiDis0Q5UY12foOPojDyuBreOd+33m7ZzwRRWyyU86SDq1TNT4gSkuiaCYNo2x9z5idQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787240055; c=relaxed/simple; bh=D+dw7q4S0N+yJRYhBUe7UafbY5UCUkJuweMW4eXTnyM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BqBJJfdSCDLoy1L4I7NBjL1g2jDmG9fUU19qfwREWZbOox5OwlA1a3eX4u4EdKCdUcNKTz1lX48NLFqy21i5qXB3hA8PBJwHmapjaTeVmLTzHliBkqSkrTVrmTEGKNjhLDvV+nfxQ9ZUlSbF0aRZlQqMCxYUmekV6EK9OjtT7ZA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=hcAJQxBJ; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="hcAJQxBJ" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 115B41D31; Thu, 20 Aug 2026 08:34:09 -0700 (PDT) Received: from e142334-100.cambridge.arm.com (e142334-100.cambridge.arm.com [10.2.198.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1ED753F763; Thu, 20 Aug 2026 08:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1787240052; bh=D+dw7q4S0N+yJRYhBUe7UafbY5UCUkJuweMW4eXTnyM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hcAJQxBJ99jeN2FBGZx4KLmW6K1tUomD2sPRr/GElxK2E5lma7f/fqEMbOs0gLeRA ycH4w7bs81Xhjqll4F1K+eXNRJsHhUadwAGQC8CmHYBUTHpwXra/9+f8zXTIVAIG8E 4cfzSgLjkeHvkfIUyJiEuYLZ92/jZp76UVWSJSPI= From: Muhammad Usama Anjum To: Catalin Marinas , Will Deacon , Mark Rutland , Shuah Khan , Andrey Konovalov , Andrew Morton , Vincenzo Frascino , Amit Daniel Kachhap , Mark Brown , Yeoreum Yun , linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)), linux-kselftest@vger.kernel.org (open list:KERNEL SELFTEST FRAMEWORK) Cc: Muhammad Usama Anjum Subject: [PATCH 2/4] selftest/arm64: Treat KSM merge_across_nodes as optional Date: Thu, 20 Aug 2026 16:33:24 +0100 Message-ID: <20260820153331.2448875-3-usama.anjum@arm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260820153331.2448875-1-usama.anjum@arm.com> References: <20260820153331.2448875-1-usama.anjum@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The MTE KSM test unconditionally saves, enables and restores the merge_across_nodes sysfs attribute. The kernel only creates this attribute when CONFIG_NUMA=3Dy. A non-NUMA kernel consequently prints the following message three times even though all KSM subtests pass: # ERR: missing /sys/kernel/mm/ksm/merge_across_nodes Check whether the attribute exists and only access it when present. This preserves the existing setup and restore behavior on NUMA kernels without requiring NUMA or reducing KSM coverage on single-node systems. Fixes: f981d8fa2646 ("kselftest/arm64: Verify KSM page merge for MTE pages") Signed-off-by: Muhammad Usama Anjum --- .../testing/selftests/arm64/mte/check_ksm_options.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/arm64/mte/check_ksm_options.c b/tools/= testing/selftests/arm64/mte/check_ksm_options.c index 0cf5faef17248..b36945fc883d3 100644 --- a/tools/testing/selftests/arm64/mte/check_ksm_options.c +++ b/tools/testing/selftests/arm64/mte/check_ksm_options.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -22,6 +23,7 @@ =20 static size_t page_sz; static unsigned long ksm_sysfs[5]; +static bool has_merge_across_nodes; =20 static unsigned long read_sysfs(char *str) { @@ -56,8 +58,11 @@ static void write_sysfs(char *str, unsigned long val) =20 static void mte_ksm_setup(void) { - ksm_sysfs[0] =3D read_sysfs(PATH_KSM "merge_across_nodes"); - write_sysfs(PATH_KSM "merge_across_nodes", 1); + has_merge_across_nodes =3D !access(PATH_KSM "merge_across_nodes", F_OK); + if (has_merge_across_nodes) { + ksm_sysfs[0] =3D read_sysfs(PATH_KSM "merge_across_nodes"); + write_sysfs(PATH_KSM "merge_across_nodes", 1); + } ksm_sysfs[1] =3D read_sysfs(PATH_KSM "sleep_millisecs"); write_sysfs(PATH_KSM "sleep_millisecs", 0); ksm_sysfs[2] =3D read_sysfs(PATH_KSM "run"); @@ -70,7 +75,8 @@ static void mte_ksm_setup(void) =20 static void mte_ksm_restore(void) { - write_sysfs(PATH_KSM "merge_across_nodes", ksm_sysfs[0]); + if (has_merge_across_nodes) + write_sysfs(PATH_KSM "merge_across_nodes", ksm_sysfs[0]); write_sysfs(PATH_KSM "sleep_millisecs", ksm_sysfs[1]); write_sysfs(PATH_KSM "run", ksm_sysfs[2]); write_sysfs(PATH_KSM "max_page_sharing", ksm_sysfs[3]); --=20 2.47.3 From nobody Mon Sep 28 15:34:29 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9E5F479895; Thu, 20 Aug 2026 15:34:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787240057; cv=none; b=rp4eAT0cALx09sYpjdsM1o2BOO+DaQqyMr1R+5z9M6W18TJT5qkUKylgfBKh0rLSKJ8l6w5LEo8f9f1AvFMzyXGCLsG1xHYUYHD03jZfRAbVRz2AioV/EOrykj4+eJcF4kxHj4ZzEhRrFUDOEyKrXBcUpSFNqYfo8caey765PCQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787240057; c=relaxed/simple; bh=vre9auiptf+o+amdAV0uA/7EFkQAVeq7gsNLbAqiU8c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TnvoqkI9QHp8rHnhrpOr+VwYfcxr49+NtHQ385xQMzaAMDYBIpVhfzGSrL/UMHd4LzVftUKoOalSVJ/elPhfSCTQn4LYhs5DaTFxUD7WH20/6g+nXMhGM44UvW49ND551R6jE0LZNjMqkuwFAK5GhyzlON5kMXCj7hXL/jO5fSU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=ILuiY8iG; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="ILuiY8iG" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2A13B153B; Thu, 20 Aug 2026 08:34:11 -0700 (PDT) Received: from e142334-100.cambridge.arm.com (e142334-100.cambridge.arm.com [10.2.198.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2FBB53F763; Thu, 20 Aug 2026 08:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1787240055; bh=vre9auiptf+o+amdAV0uA/7EFkQAVeq7gsNLbAqiU8c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ILuiY8iGLLhfAIqBKU9UGmoQePaZW4vluIC1qsZoLQQaGLK1np9ZVli07H9RN+ojP S8hnGYPAty5WZzdm42RTrrzEhXRDmOkWppwJD666o3+vpKjnsZUGsqoVQD9371sizq ElOfDFmb9U2+2Ch12mQJBdb5ICdboTOWEt2lspcs= From: Muhammad Usama Anjum To: Catalin Marinas , Will Deacon , Mark Rutland , Shuah Khan , Andrey Konovalov , Andrew Morton , Vincenzo Frascino , Amit Daniel Kachhap , Mark Brown , Yeoreum Yun , linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)), linux-kselftest@vger.kernel.org (open list:KERNEL SELFTEST FRAMEWORK) Cc: Muhammad Usama Anjum Subject: [PATCH 3/4] selftest/arm64: Fix MTE prctl TAP plan Date: Thu, 20 Aug 2026 16:33:25 +0100 Message-ID: <20260820153331.2448875-4-usama.anjum@arm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260820153331.2448875-1-usama.anjum@arm.com> References: <20260820153331.2448875-1-usama.anjum@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The MTE prctl test emits one result from check_basic_read() followed by one result for each of the seven entries in mte_modes[]. However, the TAP plan only accounts for the array entries, producing: # Planned tests !=3D run tests (7 !=3D 8) Include the basic read check in the plan so that all eight emitted results are declared. Fixes: 1f488fb91378 ("kselftest/arm64/mte: Add MTE_STORE_ONLY testcases") Signed-off-by: Muhammad Usama Anjum Reviewed-by: Mark Brown --- tools/testing/selftests/arm64/mte/check_prctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/arm64/mte/check_prctl.c b/tools/testin= g/selftests/arm64/mte/check_prctl.c index f7f320defa7b9..d16a91117eef9 100644 --- a/tools/testing/selftests/arm64/mte/check_prctl.c +++ b/tools/testing/selftests/arm64/mte/check_prctl.c @@ -119,7 +119,7 @@ int main(void) int i; =20 ksft_print_header(); - ksft_set_plan(ARRAY_SIZE(mte_modes)); + ksft_set_plan(ARRAY_SIZE(mte_modes) + 1); =20 check_basic_read(); for (i =3D 0; i < ARRAY_SIZE(mte_modes); i++) --=20 2.47.3 From nobody Mon Sep 28 15:34:29 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9212047A878; Thu, 20 Aug 2026 15:34:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787240058; cv=none; b=Yd+htlsjCDLeBp5IOni6r/KBVBz2WgZDd53yvlSTL6WDO2wTMeTW3p9wH6JDCbs0gupJR69IzGb4xt4TjyNWwyoobt/JlVGtJlmXP0RsEpKKlsuVHKh9fpnunLS0S5Q1+2le61jkmN2c4X4crzOADkxEvkvPhYySeRQUyNE5rAw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787240058; c=relaxed/simple; bh=XiIMUAI3CQTSrJclmRgZXDewMHXUs7lMHRaU8Wfpa4M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=R1YOjJlzq/5/d7cc42GSzeD4pdi+POEUyzOpqyrvhDVCZ8/Q6UOTb607B/upODBAWRoXpXxj7cKMpYxkFcwiT8WpE0Xea1ZVxZJ4BZdMJNBMFsCWg1giD+m/2QGYUusL1FHCypNCgt8JI25HbSnBDTPXnJRFxpPQvHhjY0YyxwU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=sqPysWCE; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="sqPysWCE" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 410CD1691; Thu, 20 Aug 2026 08:34:13 -0700 (PDT) Received: from e142334-100.cambridge.arm.com (e142334-100.cambridge.arm.com [10.2.198.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 49D983F763; Thu, 20 Aug 2026 08:34:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1787240057; bh=XiIMUAI3CQTSrJclmRgZXDewMHXUs7lMHRaU8Wfpa4M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sqPysWCE6zOjewZ/05h1yx2wTxbz/AhF4/2AV7LXJZCyUHIZoMggpYHP0HIEmZByQ LOBJJFFh1tfqbDGJlKaAOfH9AdLF9qo/WzeepKNsOikeIa5sNPA/Rd8sj5sBxh4Nl6 e2KKrOVKxclOHwikMlkQh/hxVKZ4Kv6csgogmFYU= From: Muhammad Usama Anjum To: Catalin Marinas , Will Deacon , Mark Rutland , Shuah Khan , Andrey Konovalov , Andrew Morton , Vincenzo Frascino , Amit Daniel Kachhap , Mark Brown , Yeoreum Yun , linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)), linux-kselftest@vger.kernel.org (open list:KERNEL SELFTEST FRAMEWORK) Cc: Muhammad Usama Anjum Subject: [PATCH 4/4] selftest/arm64: Add MTE test config fragment Date: Thu, 20 Aug 2026 16:33:26 +0100 Message-ID: <20260820153331.2448875-5-usama.anjum@arm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260820153331.2448875-1-usama.anjum@arm.com> References: <20260820153331.2448875-1-usama.anjum@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The arm64 selftest collection has no Kconfig fragment, so kernels built with the selftest requirements are not guaranteed to provide the support used by the MTE tests. Add a fragment covering the userspace MTE and tagged-address ABIs, KSM and its sysfs interface, explicit HugeTLB mappings and their proc/sysctl interfaces, and tmpfs-backed file mappings. Do not request NUMA solely for the optional KSM merge_across_nodes. Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/arm64/mte/config | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tools/testing/selftests/arm64/mte/config diff --git a/tools/testing/selftests/arm64/mte/config b/tools/testing/selft= ests/arm64/mte/config new file mode 100644 index 0000000000000..8587ce70c294a --- /dev/null +++ b/tools/testing/selftests/arm64/mte/config @@ -0,0 +1,8 @@ +CONFIG_ARM64_MTE=3Dy +CONFIG_ARM64_TAGGED_ADDR_ABI=3Dy +CONFIG_HUGETLBFS=3Dy +CONFIG_KSM=3Dy +CONFIG_PROC_FS=3Dy +CONFIG_SYSCTL=3Dy +CONFIG_SYSFS=3Dy +CONFIG_TMPFS=3Dy --=20 2.47.3