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 0021F369D7A; Wed, 20 May 2026 18:35:35 +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=1779302137; cv=none; b=YRtH6H/1LCevRwf5hureSIG1JjVVqP5fDJ/wNMSH2nbK6A6QsuOxZ25+D4OtEfksKh0ZbQVFzo4TVC3pioh+6jediRWdLWyQGK6WMdSUSwNNfg/3aku4kzLRB5QbSiPydMKzmKKQhfd7pxE/rx31TDOIMJZeXXOMcJLHH+4e4Sk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779302137; c=relaxed/simple; bh=+r0LMdrFoXAHXD1lDrmWn4Tfr9V3lvOlEHO7D71pzlY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FOh74xX8Otx8vKYp0yyH9xaPWzdV9ia3KAQMh2QhJm/U4R9AuIBFyZlcUIYqUO+wAo5zixbcjh8b8HFsffP+DpjE4jmveZ8cGTWKH8a6wj9/uEm+j68GKocYtTW9RFVQLT+G7PVh1DZhJcPPXtn/rshlaNL/3j37M9dLtctaVQU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=T28sN17t; 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="T28sN17t" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 064E91F000E9; Wed, 20 May 2026 18:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779302135; bh=dXz+XFeo9CtiZjTqjyrK/VtIQc94qPcU7ApjT4oPG8c=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=T28sN17t8neUv2fY6UyXr1ukXd7AmTJlrUPazF0vkBlBn64QXTTDlmDYwFYgUF+11 jIZ/rJWsncPNsUrXXU50pH4Ei7K7TdhaAQPItB+ogjqwePhds27PpK89Mfc6awjFui m0uXDzPsmyoAlEpxlXR1WDVlwVP7TSWQIaTPJXJw= 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.6 151/508] selftests/mm: skip migration tests if NUMA is unavailable Date: Wed, 20 May 2026 18:19:34 +0200 Message-ID: <20260520162101.907711173@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162058.573354582@linuxfoundation.org> References: <20260520162058.573354582@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-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 6908569ef4065..877ee32d04c82 100644 --- a/tools/testing/selftests/mm/migration.c +++ b/tools/testing/selftests/mm/migration.c @@ -33,7 +33,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