Skip to content

Minor hmm_test fixes and cleanups

Alistair Popple dri-devel linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 11 repliesIn review 2 of 3 applied

Patches in v1 2 of 3 applied

#Subject and filesSizeRepliesApplied
1/3lib: test_hmm: evict device pages on file close to avoid use-after-freelib/test_hmm.c+62 -503 repliesApplied
2/3selftests/mm: hmm-tests: don't hardcode THP size to 2MBtools/testing/selftests/mm/hmm-tests.c+16 -674 replies
3/3lib: test_hmm: Implement a device release methodlib/test_hmm.c+15 -32 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchBalbir SinghZenghui Yu (Huawei)
1/3R-b T-b
2/3R-b
3/3A-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Minor hmm_test fixes and cleanups

Just a couple of minor fixups and cleanups for the HMM kernel selftests. These were mostly reported by Zenghui Yu with special thanks to Lorenzo for analysing and pointing out the problems.

Alistair Popple (3):
lib: test_hmm: evict device pages on file close to avoid
use-after-free
selftests/mm: hmm-tests: don't hardcode THP size to 2MB
lib: test_hmm: Implement a device release method

 lib/test_hmm.c                         | 130 +++++++++++++++----------
 tools/testing/selftests/mm/hmm-tests.c |  83 +++-------------
 2 files changed, 93 insertions(+), 120 deletions(-)
Signature · 1 line
2.53.0