Skip to content

selftests: kvm: s390: Reject invalid ioctls on ucontrol VMs

Christoph Schlameuss kvm linux-kselftest linux-s390 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 10 repliesIn review
  2. v16 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- added documentation changes
- simplify uc_flic_attrs; remove .getrc and .setrc from uc_flic_attrs (Thanks Claudio)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6kvm: s390: Reject setting flic pfault attributes on ucontrol VMsDocumentation/virt/kvm/devices/s390_flic.rst arch/s390/kvm/interrupt.c+8 -01 reply
2/6selftests: kvm: s390: Add ucontrol flic attr selfteststools/testing/selftests/kvm/s390x/ucontrol_test.c+148 -02 replies
3/6kvm: s390: Reject KVM_SET_GSI_ROUTING on ucontrol VMsDocumentation/virt/kvm/api.rst arch/s390/kvm/interrupt.c+5 -02 replies
4/6selftests: kvm: s390: Add ucontrol gis routing testtools/testing/selftests/kvm/s390x/ucontrol_test.c+19 -02 replies
5/6selftests: kvm: s390: Streamline uc_skey test to issue iske after ssketools/testing/selftests/kvm/s390x/ucontrol_test.c+5 -171 reply
6/6selftests: kvm: s390: Add has device attr check to uc_attr_mem_limit selftesttools/testing/selftests/kvm/s390x/ucontrol_test.c+4 -11 reply

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchClaudio ImbrendaHariharan Mari
SeriesR-b
1/6R-b
2/6T-b R-b
3/6T-b R-b
4/6T-b R-b
5/6T-b
6/6T-b

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/6] selftests: kvm: s390: Reject invalid ioctls on ucontrol VMs

This patch series adds more test case issuing ioctls to ucontrol VMs and its floating interrupt controller.
The test cases trigger three possible null pointer dereferences within the handling of the KVM_DEV_FLIC_APF_ENABLE, KVM_DEV_FLIC_APF_DISABLE_WAIT and KVM_SET_GSI_ROUTING ioctl.

All of these issues do only exist on ucontrol VMs. Fixes for the issues are included within the patch series.

v2:
- added documentation changes
- simplify uc_flic_attrs; remove .getrc and .setrc from uc_flic_attrs (Thanks Claudio)

Christoph Schlameuss (6):
kvm: s390: Reject setting flic pfault attributes on ucontrol VMs
selftests: kvm: s390: Add ucontrol flic attr selftests
kvm: s390: Reject KVM_SET_GSI_ROUTING on ucontrol VMs
selftests: kvm: s390: Add ucontrol gis routing test
selftests: kvm: s390: Streamline uc_skey test to issue iske after sske
selftests: kvm: s390: Add has device attr check to uc_attr_mem_limit
selftest

 Documentation/virt/kvm/api.rst                |   3 +
 Documentation/virt/kvm/devices/s390_flic.rst  |   4 +
 arch/s390/kvm/interrupt.c                     |   6 +
 .../selftests/kvm/s390x/ucontrol_test.c       | 194 ++++++++++++++++--
 4 files changed, 189 insertions(+), 18 deletions(-)
Signature · 1 line
2.47.1