Skip to content

Commit

Permalink
selftests/mm temporary fix of hmm infinite loop
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
PlaidCat committed Oct 23, 2024
1 parent c0ce232 commit 9b46c72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/testing/selftests/mm/hmm-tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ FIXTURE_TEARDOWN(hmm)
{
int ret = close(self->fd);

if (ret != 0) {
fprintf(stderr, "close retunred (%d) fd is (%d)\n", ret, self->fd);
exit(1);
}
ASSERT_EQ(ret, 0);
self->fd = -1;
}
Expand Down

0 comments on commit 9b46c72

Please sign in to comment.