Skip to content

Commit 782e0aa

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/[email protected]/#25046055 We will investigate further kselftest updates that will resolve the root causes of this. Signed-off-by: Jonathan Maple <[email protected]>
1 parent 20b61fd commit 782e0aa

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 retunred (%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)