Skip to content

KVM: s390: Limit adapter indicator access to page

Janosch Frank kvm linux-s390 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

Reworked KVM limit check.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: s390: Limit adapter indicator access to mapped pagearch/s390/kvm/interrupt.c+12 -04 replies
2/2KVM: s390: selftests: Add IRQ routing address offset teststools/testing/selftests/kvm/Makefile.kvm tools/testing/selftests/kvm/s390/irq_routing.c+76 -02 replies

Reviews trailers per patch

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

PatchMatthew RosatoChristian Borntraeger
1/2R-b T-b R-b
2/2R-b T-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/2] KVM: s390: Limit adapter indicator access to page

We currently check the address of the indicator fields but not the sum of address and offset. This patch remedies that problem and limits the address + offset combination to a single page.

The selftest is very rudimentary but it's a start.

v2:
Reworked KVM limit check.

Changed good-case test to subtract 4 bits instead of 8. That should ensure that we catch the error I made in v1.

Janosch Frank (2):
KVM: s390: Limit adapter indicator access to mapped page
KVM: s390: selftests: Add IRQ routing address offset tests

 arch/s390/kvm/interrupt.c                     | 12 +++
 tools/testing/selftests/kvm/Makefile.kvm      |  1 +
 .../testing/selftests/kvm/s390/irq_routing.c  | 75 +++++++++++++++++++
 3 files changed, 88 insertions(+)
 create mode 100644 tools/testing/selftests/kvm/s390/irq_routing.c
Signature · 1 line
2.51.0