Skip to content

Commit 9b46c72

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.
1 parent c0ce232 commit 9b46c72

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
@@ -154,6 +154,10 @@ FIXTURE_TEARDOWN(hmm)
154154
{
155155
int ret = close(self->fd);
156156

157+
if (ret != 0) {
158+
fprintf(stderr, "close retunred (%d) fd is (%d)\n", ret, self->fd);
159+
exit(1);
160+
}
157161
ASSERT_EQ(ret, 0);
158162
self->fd = -1;
159163
}

0 commit comments

Comments
 (0)