public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
From: Janosch Frank <frankja@linux.ibm.com>
To: kvm@vger.kernel.org
Cc: linux-s390@vger.kernel.org, mjrosato@linux.ibm.com,
	freimuth@linux.ibm.com, imbrenda@linux.ibm.com,
	borntraeger@linux.ibm.com
Subject: [PATCH v2 0/2] KVM: s390: Limit adapter indicator access to page
Date: Tue,  3 Mar 2026 13:46:33 +0000	[thread overview]
Message-ID: <20260303135250.3665-1-frankja@linux.ibm.com> (raw)

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


             reply	other threads:[~2026-03-03 13:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-03 13:46 Janosch Frank [this message]
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

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=20260303135250.3665-1-frankja@linux.ibm.com \
    --to=frankja@linux.ibm.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=freimuth@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=mjrosato@linux.ibm.com \
    /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