mbox series

[v1,0/7] add more tests to MTE kselftests

Message ID 20220125150920.23955-1-joey.gouly@arm.com (mailing list archive)
Headers show
Series add more tests to MTE kselftests | expand

Message

Joey Gouly Jan. 25, 2022, 3:09 p.m. UTC
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.

Thanks,
Joey

[1] https://lore.kernel.org/all/20210624150911.GA25097@arm.com/

Joey Gouly (7):
  kselftest/arm64: mte: user_mem: introduce tag_offset and tag_len
  kselftest/arm64: mte: user_mem: add tests using tag_offset
  kselftest/arm64: mte: user_mem: add test with mte tag inside a page
  kselftest/arm64: mte: user_mem: rework error handling
  kselftest/arm64: mte: user_mem: check different offsets and sizes
  kselftest/arm64: mte: add test type enum
  kselftest/arm64: mte: add more test types

 .../selftests/arm64/mte/check_user_mem.c      | 145 ++++++++++++++----
 1 file changed, 112 insertions(+), 33 deletions(-)