Skip to content

Small userfaultfd selftest fixups

Axel Rasmussen linux-kselftest linux-mm lkml 1 version Applied

Status from this message: [merged] userfaultfd-selftests-fix-feature-support-detection.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 3 repliesApplied 3/3

Changes in v2 from the cover letter

- Substantially rewrote "fix feature support detection"; previously, it tried to do some larger refactor wherein the global test_uffdio_* variables were removed. This was controversial, so it now simply queries features in set_test_type, and leaves the rest of the program structure largely the same.
- The "fix calculation of expected ioctls" patch is conceptually the same as v1, but changed slightly to fit with the modified feature support detection in v2.
- Moved patch 3/3 to 1/3, since it is uncontroversial and could be merged on its own. I don't want the other two to cause merge conflicts for it in future versions.
- Picked up a R-B.

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3userfaultfd/selftests: don't rely on GNU extensions for random numberstools/testing/selftests/vm/userfaultfd.c+4 -220 repliesApplied
2/3userfaultfd/selftests: fix feature support detectiontools/testing/selftests/vm/userfaultfd.c+31 -233 repliesApplied
3/3userfaultfd/selftests: fix calculation of expected ioctlstools/testing/selftests/vm/userfaultfd.c+38 -390 repliesApplied

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchPeter Xu
1/3R-b
2/3R-b
3/3

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

Read the v2 thread

Cover letter [PATCH v2 0/3] Small userfaultfd selftest fixups

Changes from v1 -> v2:
- Substantially rewrote "fix feature support detection"; previously, it tried to do some larger refactor wherein the global test_uffdio_* variables were removed. This was controversial, so it now simply queries features in set_test_type, and leaves the rest of the program structure largely the same.
- The "fix calculation of expected ioctls" patch is conceptually the same as v1, but changed slightly to fit with the modified feature support detection in v2.
- Moved patch 3/3 to 1/3, since it is uncontroversial and could be merged on its own. I don't want the other two to cause merge conflicts for it in future versions.
- Picked up a R-B.

Axel Rasmussen (3):
userfaultfd/selftests: don't rely on GNU extensions for random numbers userfaultfd/selftests: fix feature support detection userfaultfd/selftests: fix calculation of expected ioctls

 tools/testing/selftests/vm/userfaultfd.c | 157 +++++++++++------------
 1 file changed, 73 insertions(+), 84 deletions(-)

--
2.33.0.800.g4c38ced690-goog