Skip to content

add more test coverage to MTE kselftests

Joey Gouly linux-arm-kernel linux-kselftest 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 7 repliesIn review
  2. v26 patches 8 repliesSuperseded
  3. v17 patches 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6kselftest/arm64: mte: user_mem: introduce tag_offset and tag_lentools/testing/selftests/arm64/mte/check_user_mem.c+11 -81 reply
2/6kselftest/arm64: mte: user_mem: rework error handlingtools/testing/selftests/arm64/mte/check_user_mem.c+15 -71 reply
3/6kselftest/arm64: mte: user_mem: check different offsets and sizestools/testing/selftests/arm64/mte/check_user_mem.c+27 -181 reply
4/6kselftest/arm64: mte: user_mem: add test type enumtools/testing/selftests/arm64/mte/check_user_mem.c+26 -121 reply
5/6kselftest/arm64: mte: user_mem: add more test typestools/testing/selftests/arm64/mte/check_user_mem.c+21 -01 reply
6/6kselftest/arm64: mte: user_mem: test a wider range of valuestools/testing/selftests/arm64/mte/check_user_mem.c+83 -111 reply

Reviews trailers per patch

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

PatchMark BrownShuah KhanCatalin Marinas
1/6R-b T-b R-b R-b
2/6R-b T-b R-b R-b
3/6R-b T-b R-b R-b
4/6R-b T-b R-b R-b
5/6R-b T-b R-b R-b
6/6R-b T-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/6] add more test coverage to MTE kselftests

This is a series which refactors and then adds some extra tests for MTE in the kselftest framework.

The issue that these tests are for was was fixed by Robin in 295cf156231c ("arm64: Avoid premature usercopy failure") and based on a simplified example by Catalin [1].

They test some combinations of pointer offsets, sizes and syscalls to exercise different paths in the kernel.

Changes since v2 [3]:
- simplified error handling further
- added more detailed commit messages
- add reviewed-by and tested-by

Changes since v1 [2]:
- add a page_sz to the tests, for non-4K kernels
- use loops to generate more tests and avoid long lines

Thanks,
Joey

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/linux-arm-kernel/[email protected]/
[3] https://lore.kernel.org/linux-arm-kernel/[email protected]/T/

Joey Gouly (6):
kselftest/arm64: mte: user_mem: introduce tag_offset and tag_len kselftest/arm64: mte: user_mem: rework error handling kselftest/arm64: mte: user_mem: check different offsets and sizes kselftest/arm64: mte: user_mem: add test type enum kselftest/arm64: mte: user_mem: add more test types kselftest/arm64: mte: user_mem: test a wider range of values

 .../selftests/arm64/mte/check_user_mem.c      | 193 +++++++++++++++---
 1 file changed, 160 insertions(+), 33 deletions(-)
Signature · 1 line
2.17.1