Skip to content

Commit 5470cad

Browse files
committed
selftests/mm temporary fix of hmm infinite loop
jira SECO-170 In Rocky9 if you run ./run_vmtests.sh -t hmm it will fail and cause an infinite loop on ASSERTs in FIXTURE_TEARDOWN() This temporary fix is based on the discussion here https://patchwork.kernel.org/project/linux-kselftest/patch/26017fe3-5ad7-6946-57db-e5ec48063ceb@suse.cz/#25046055 We will investigate further kselftest updates that will resolve the root causes of this. Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent 9679450 commit 5470cad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/testing/selftests/mm/hmm-tests.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ FIXTURE_TEARDOWN(hmm)
159159
{
160160
int ret = close(self->fd);
161161

162+
if (ret != 0) {
163+
fprintf(stderr, "close returned (%d) fd is (%d)\n", ret, self->fd);
164+
exit(1);
165+
}
162166
ASSERT_EQ(ret, 0);
163167
self->fd = -1;
164168
}

0 commit comments

Comments
 (0)