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 63CAD371056; Wed, 20 May 2026 16:42:59 +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=1779295381; cv=none; b=ierGv4w+0+BKILO/g6mYI7yjEo6o23QEob56hXQK5AALv+rDnOLBeoCCDp5GkYW+elt2D6YLdRsQkPd7EWlmLUgZGKcrVM8yxvM15RtKiMFtCC/Ddlx10farOEpDeTLo0dRMMoGu8mGbhL5YrWA6o/MdL4z4Mgt0CTKa1WzF928= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779295381; c=relaxed/simple; bh=ZAykyASMUIF7DoK5OpT3tLpzYGc+wlECM29jg7SL9Ik=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rnlbEYstNWWryHuZgw3f1VTB33PQ9GdapHq4MFRV1AAqL4obHIdqjSl4I7lKDaoN42vMd0ZqnukAIYzOhBzVqGjfCxZPHf+VoI+nr0iwaj1vcfIXcjeYcixUmNj7hf0+9t2Ou6Mmu8L4FF1eVIHw6aGuBt6q0i4bJtBNUd73Xvc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Pg4WTBSZ; 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="Pg4WTBSZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E2DD1F000E9; Wed, 20 May 2026 16:42:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779295379; bh=SnSLziOAsgnvFXKNB8+OwAbz72J95Ds2UAXEmZwS3dc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Pg4WTBSZ2wRv2Y5M5ZoCCcqMAyYvoCfXJYx0B+GY64jlXSFLJGa8xVTdUTcq6AQ+q w0OO+V6qAp0dFEFhvDXwS0ezZ+KWvhMtt+LlnzZLcDFC+/uLjj8FneNP1c4kmMXUw3 NZu/z6PcLjYyr8c7YUpC6CNMRuz4yBz9Z/SMw/SA= 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 7.0 0398/1146] selftests/mm: skip migration tests if NUMA is unavailable Date: Wed, 20 May 2026 18:10:48 +0200 Message-ID: <20260520162157.205456841@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162148.390695140@linuxfoundation.org> References: <20260520162148.390695140@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 7.0-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 ee24b88c2b248..60e78bbfc0e3e 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