From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3786A2628D; Wed, 20 May 2026 17:31:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779298282; cv=none; b=oHZKSoYevRxMfiw5SULGs7HjrKxSOhrVJZF7eFu/Qf4ORB5GwnjT11oFmo9yT9HyjijVwg3eqztQqLF5B6ZkI++vrVtYJn2IxiVZkufOIKpFI+sknb+fRZZcpfhypGoK/s9TokOuOxZ9L96+GGYh0O+2jONr9C8MdaELU5EwS/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779298282; c=relaxed/simple; bh=Qpqm1L0A2bCox12pQYVQmbaoXRJPedaQ9YYOWCHSER4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iKJVhp3v1km38ynEoLDgVEShpZzvQeU9Qtm+fGPxCYYWQXMdXEkapB1clZh5V5ww6QkT5v3GjnqBDUrzwsNOJ3jt+8lCeGiSVcw2ckqhpMc7VyoymDcZ32FVC/REd22EMh1CK5zaO8I2tD1EOVQ5HR3pdld4wKuign0ShBlqsDg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MEZyFZmG; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MEZyFZmG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FB811F000E9; Wed, 20 May 2026 17:31:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779298281; bh=mdKLpfOxzf9mnIkQSN4VDMW+TRX3el5Vr192YHg1DEw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=MEZyFZmGjJqIP8VVlB8cnN3Sg84k6cT1dcuYwoMHFZmPzUkqF6PflX+zPtzkgO16s dot22zX7Supl6i2KL14x32KL4/7VkXL0bI8D5I2rnHBG/zcGVX7ZuIhXkC568Yf5Bg EHrFl1R0WpXlERcHZA5r80VhlvVsXgxngNs9T/5A= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, AnishMulay , SeongJae Park , Dev Jain , Anshuman Khandual , Sayali Patil , "David Hildenbrand (Arm)" , Liam Howlett , Lorenzo Stoakes , Michal Hocko , Mike Rapoport , Shuah Khan , Suren Baghdasaryan , Vlastimil Babka , Andrew Morton , Sasha Levin Subject: [PATCH 6.18 310/957] selftests/mm: skip migration tests if NUMA is unavailable Date: Wed, 20 May 2026 18:13:13 +0200 Message-ID: <20260520162141.255389542@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162134.554764788@linuxfoundation.org> References: <20260520162134.554764788@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: AnishMulay [ Upstream commit 54218f10dfbe88c8e41c744fd45a756cde60b8c4 ] Currently, the migration test asserts that numa_available() returns 0. On systems where NUMA is not available (returning -1), such as certain ARM64 configurations or single-node systems, this assertion fails and crashes the test. Update the test to check the return value of numa_available(). If it is less than 0, skip the test gracefully instead of failing. This aligns the behavior with other MM selftests (like rmap) that skip when NUMA support is missing. Link: https://lkml.kernel.org/r/20260218163941.13499-1-anishm7030@gmail.com Fixes: 0c2d08728470 ("mm: add selftests for migration entries") Signed-off-by: AnishMulay Reviewed-by: SeongJae Park Reviewed-by: Dev Jain Reviewed-by: Anshuman Khandual Tested-by: Sayali Patil Acked-by: David Hildenbrand (Arm) Cc: Liam Howlett Cc: Lorenzo Stoakes Cc: Michal Hocko Cc: Mike Rapoport Cc: Shuah Khan Cc: Suren Baghdasaryan Cc: Vlastimil Babka Signed-off-by: Andrew Morton Signed-off-by: Sasha Levin --- tools/testing/selftests/mm/migration.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/mm/migration.c b/tools/testing/selftests/mm/migration.c index ea945eebec2f6..aa556c708d6bc 100644 --- a/tools/testing/selftests/mm/migration.c +++ b/tools/testing/selftests/mm/migration.c @@ -36,7 +36,8 @@ FIXTURE_SETUP(migration) { int n; - ASSERT_EQ(numa_available(), 0); + if (numa_available() < 0) + SKIP(return, "NUMA not available"); self->nthreads = numa_num_task_cpus() - 1; self->n1 = -1; self->n2 = -1; -- 2.53.0