lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220304141141.32767-5-seiden@linux.ibm.com>
Date:   Fri,  4 Mar 2022 09:11:41 -0500
From:   Steffen Eiden <seiden@...ux.ibm.com>
To:     linux-s390@...r.kernel.org
Cc:     Heiko Carstens <hca@...ux.ibm.com>,
        Vasily Gorbik <gor@...ux.ibm.com>,
        Christian Borntraeger <borntraeger@...ux.ibm.com>,
        Alexander Gordeev <agordeev@...ux.ibm.com>,
        Janosch Frank <frankja@...ux.ibm.com>,
        David Hildenbrand <david@...hat.com>,
        Claudio Imbrenda <imbrenda@...ux.ibm.com>,
        Shuah Khan <shuah@...nel.org>, Nico Boehr <nrb@...ux.ibm.com>,
        linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
        linux-kselftest@...r.kernel.org
Subject: [PATCH v3 4/4]  selftests: drivers/s390x: Add uvdevice  QUI tests

Add test variant to also verify that QUI-error paths
are working as intended.

  ./test-uv-device
  TAP version 13
  1..10
  # Starting 10 tests from 4 test cases.
  #  RUN           uvio_fixture.qui.fault_ioctl_arg ...
  #            OK  uvio_fixture.qui.fault_ioctl_arg
  ok 1 uvio_fixture.qui.fault_ioctl_arg
  #  RUN           uvio_fixture.qui.fault_uvio_arg ...
  #            OK  uvio_fixture.qui.fault_uvio_arg
  ok 2 uvio_fixture.qui.fault_uvio_arg
  #  RUN           uvio_fixture.qui.inval_ioctl_cb ...
  #            OK  uvio_fixture.qui.inval_ioctl_cb
  ok 3 uvio_fixture.qui.inval_ioctl_cb
  #  RUN           uvio_fixture.qui.inval_ioctl_cmd ...
  #            OK  uvio_fixture.qui.inval_ioctl_cmd
  ok 4 uvio_fixture.qui.inval_ioctl_cmd
  #  RUN           uvio_fixture.att.fault_ioctl_arg ...
  #            OK  uvio_fixture.att.fault_ioctl_arg
  ok 5 uvio_fixture.att.fault_ioctl_arg
  #  RUN           uvio_fixture.att.fault_uvio_arg ...
  #            OK  uvio_fixture.att.fault_uvio_arg
  ok 6 uvio_fixture.att.fault_uvio_arg
  #  RUN           uvio_fixture.att.inval_ioctl_cb ...
  #            OK  uvio_fixture.att.inval_ioctl_cb
  ok 7 uvio_fixture.att.inval_ioctl_cb
  #  RUN           uvio_fixture.att.inval_ioctl_cmd ...
  #            OK  uvio_fixture.att.inval_ioctl_cmd
  ok 8 uvio_fixture.att.inval_ioctl_cmd
  #  RUN           attest_fixture.att_inval_request ...
  #            OK  attest_fixture.att_inval_request
  ok 9 attest_fixture.att_inval_request
  #  RUN           attest_fixture.att_inval_addr ...
  #            OK  attest_fixture.att_inval_addr
  ok 10 attest_fixture.att_inval_addr
  # PASSED: 10 / 10 tests passed.
  # Totals: pass:10 fail:0 xfail:0 xpass:0 skip:0 error:0

Signed-off-by: Steffen Eiden <seiden@...ux.ibm.com>
Acked-by: Janosch Frank <frankja@...ux.ibm.com>
---
 .../testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c b/tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
index ea0cdc37b44f..44a6fbefc156 100644
--- a/tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
+++ b/tools/testing/selftests/drivers/s390x/uvdevice/test_uvdevice.c
@@ -30,6 +30,11 @@ FIXTURE_VARIANT(uvio_fixture) {
 	uint32_t arg_size;
 };
 
+FIXTURE_VARIANT_ADD(uvio_fixture, qui) {
+	.ioctl_cmd = UVIO_IOCTL_QUI,
+	.arg_size = BUFFER_SIZE,
+};
+
 FIXTURE_VARIANT_ADD(uvio_fixture, att) {
 	.ioctl_cmd = UVIO_IOCTL_ATT,
 	.arg_size = sizeof(struct uvio_attest),
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ