public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] KVM: s390: Limit adapter indicator access to page
@ 2026-03-03 13:46 Janosch Frank
  2026-03-03 13:46 ` [PATCH v2 1/2] KVM: s390: Limit adapter indicator access to mapped page Janosch Frank
  2026-03-03 13:46 ` [PATCH v2 2/2] KVM: s390: selftests: Add IRQ routing address offset tests Janosch Frank
  0 siblings, 2 replies; 9+ messages in thread
From: Janosch Frank @ 2026-03-03 13:46 UTC (permalink / raw)
  To: kvm; +Cc: linux-s390, mjrosato, freimuth, imbrenda, borntraeger

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

-- 
2.51.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-03-09 12:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-03 13:46 [PATCH v2 0/2] KVM: s390: Limit adapter indicator access to page Janosch Frank
2026-03-03 13:46 ` [PATCH v2 1/2] KVM: s390: Limit adapter indicator access to mapped page Janosch Frank
2026-03-04 20:16   ` Matthew Rosato
2026-03-05 14:04     ` Matthew Rosato
2026-03-09 12:17       ` Janosch Frank
2026-03-05 16:52   ` Christian Borntraeger
2026-03-03 13:46 ` [PATCH v2 2/2] KVM: s390: selftests: Add IRQ routing address offset tests Janosch Frank
2026-03-04 20:19   ` Matthew Rosato
2026-03-05 14:27     ` Matthew Rosato

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox