mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Oliver Swede <oli.swede@arm.com>
To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>
Cc: Robin Murphy <robin.murphy@arm.com>,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 0/1] Add usercopy fixup accuracy tests
Date: Wed, 16 Sep 2020 10:46:35 +0000	[thread overview]
Message-ID: <20200916104636.19172-1-oli.swede@arm.com> (raw)

This adds a selftest subtarget that can be used to verify the
accuracy of the usercopy fixup routines.

The patch contains a test module that integrates with the selftest
framework and can be specified as a subtarget for the arm64 selftest
target. It can be invoked through the same method as the other
subtargets, provided that test_usercopy_fixup is installed prior to the
run. This enables debugging of modifications made to the usercopy fixup
routines, and/or provides a method of verification across system
configurations.

Comments are welcome regarding the suitability of this location for these
tests, and any other suggestions would also be greatly appreciated.

This was used in conjunction with lib/test_user_copy.c to help verify
the following usercopy fixup patches:
https://lore.kernel.org/lkml/20200914150958.2200-1-oli.swede@arm.com/

Thanks in advance,
Oli

Oliver Swede (1):
  kselftest: arm64: Add usercopy fixup accuracy tests

 arch/arm64/Kconfig.debug                      |   7 +
 arch/arm64/lib/Makefile                       |   2 +
 arch/arm64/lib/test_usercopy_fixup.c          | 276 ++++++++++++++++++
 tools/testing/selftests/arm64/Makefile        |   2 +-
 tools/testing/selftests/arm64/README          |   2 +-
 .../testing/selftests/arm64/usercopy/Makefile |   3 +
 tools/testing/selftests/arm64/usercopy/config |   1 +
 .../arm64/usercopy/run_fixup_tests.sh         |   4 +
 8 files changed, 295 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm64/lib/test_usercopy_fixup.c
 create mode 100644 tools/testing/selftests/arm64/usercopy/Makefile
 create mode 100644 tools/testing/selftests/arm64/usercopy/config
 create mode 100755 tools/testing/selftests/arm64/usercopy/run_fixup_tests.sh

-- 
2.17.1


             reply	other threads:[~2020-09-16 20:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-16 10:46 Oliver Swede [this message]
2020-09-16 10:46 ` [PATCH 1/1] kselftest: arm64: " Oliver Swede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200916104636.19172-1-oli.swede@arm.com \
    --to=oli.swede@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robin.murphy@arm.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®