* [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
* [PATCH v2 1/2] KVM: s390: Limit adapter indicator access to mapped 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 ` Janosch Frank
2026-03-04 20:16 ` Matthew Rosato
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
1 sibling, 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
While we check the address for errors, we don't seem to check the bit
offsets and since they are 32 and 64 bits a lot of memory can be
reached indirectly via those offsets.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Fixes: 84223598778b ("KVM: s390: irq routing for adapter interrupts.")
Suggested-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
---
arch/s390/kvm/interrupt.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c
index 18932a65ca68..1a702e8ef574 100644
--- a/arch/s390/kvm/interrupt.c
+++ b/arch/s390/kvm/interrupt.c
@@ -2724,6 +2724,9 @@ static unsigned long get_ind_bit(__u64 addr, unsigned long bit_nr, bool swap)
bit = bit_nr + (addr % PAGE_SIZE) * 8;
+ /* kvm_set_routing_entry() should never allow this to happen */
+ WARN_ON_ONCE(bit > (PAGE_SIZE * BITS_PER_BYTE - 1));
+
return swap ? (bit ^ (BITS_PER_LONG - 1)) : bit;
}
@@ -2852,6 +2855,7 @@ int kvm_set_routing_entry(struct kvm *kvm,
struct kvm_kernel_irq_routing_entry *e,
const struct kvm_irq_routing_entry *ue)
{
+ const struct kvm_irq_routing_s390_adapter *adapter;
u64 uaddr_s, uaddr_i;
int idx;
@@ -2862,6 +2866,14 @@ int kvm_set_routing_entry(struct kvm *kvm,
return -EINVAL;
e->set = set_adapter_int;
+ adapter = &ue->u.adapter;
+ if (adapter->summary_addr + (adapter->summary_offset / 8) >=
+ (adapter->summary_addr & PAGE_MASK) + PAGE_SIZE)
+ return -EINVAL;
+ if (adapter->ind_addr + (adapter->ind_offset / 8) >=
+ (adapter->ind_addr & PAGE_MASK) + PAGE_SIZE)
+ return -EINVAL;
+
idx = srcu_read_lock(&kvm->srcu);
uaddr_s = gpa_to_hva(kvm, ue->u.adapter.summary_addr);
uaddr_i = gpa_to_hva(kvm, ue->u.adapter.ind_addr);
--
2.51.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v2 2/2] KVM: s390: selftests: Add IRQ routing address offset tests
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-03 13:46 ` Janosch Frank
2026-03-04 20:19 ` Matthew Rosato
1 sibling, 1 reply; 9+ messages in thread
From: Janosch Frank @ 2026-03-03 13:46 UTC (permalink / raw)
To: kvm; +Cc: linux-s390, mjrosato, freimuth, imbrenda, borntraeger
This test tries to setup routes which have address + offset
combinations which cross a page.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
---
tools/testing/selftests/kvm/Makefile.kvm | 1 +
.../testing/selftests/kvm/s390/irq_routing.c | 75 +++++++++++++++++++
2 files changed, 76 insertions(+)
create mode 100644 tools/testing/selftests/kvm/s390/irq_routing.c
diff --git a/tools/testing/selftests/kvm/Makefile.kvm b/tools/testing/selftests/kvm/Makefile.kvm
index fdec90e85467..271cbb63af36 100644
--- a/tools/testing/selftests/kvm/Makefile.kvm
+++ b/tools/testing/selftests/kvm/Makefile.kvm
@@ -205,6 +205,7 @@ TEST_GEN_PROGS_s390 += s390/ucontrol_test
TEST_GEN_PROGS_s390 += s390/user_operexec
TEST_GEN_PROGS_s390 += s390/keyop
TEST_GEN_PROGS_s390 += rseq_test
+TEST_GEN_PROGS_s390 += s390/irq_routing
TEST_GEN_PROGS_riscv = $(TEST_GEN_PROGS_COMMON)
TEST_GEN_PROGS_riscv += riscv/sbi_pmu_test
diff --git a/tools/testing/selftests/kvm/s390/irq_routing.c b/tools/testing/selftests/kvm/s390/irq_routing.c
new file mode 100644
index 000000000000..7819a0af19a8
--- /dev/null
+++ b/tools/testing/selftests/kvm/s390/irq_routing.c
@@ -0,0 +1,75 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * IRQ routing offset tests.
+ *
+ * Copyright IBM Corp. 2026
+ *
+ * Authors:
+ * Janosch Frank <frankja@linux.ibm.com>
+ */
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/ioctl.h>
+
+#include "test_util.h"
+#include "kvm_util.h"
+#include "kselftest.h"
+#include "ucall_common.h"
+
+extern char guest_code[];
+asm("guest_code:\n"
+ "diag %r0,%r0,0\n"
+ "j .\n");
+
+static void test(void)
+{
+ struct kvm_irq_routing *routing;
+ struct kvm_vcpu *vcpu;
+ struct kvm_vm *vm;
+ vm_paddr_t mem;
+ int ret;
+
+ struct kvm_irq_routing_entry ue = {
+ .type = KVM_IRQ_ROUTING_S390_ADAPTER,
+ .gsi = 1,
+ };
+
+ vm = vm_create_with_one_vcpu(&vcpu, guest_code);
+ mem = vm_phy_pages_alloc(vm, 2, 4096 * 42, 0);
+
+ routing = kvm_gsi_routing_create();
+ routing->nr = 1;
+ routing->entries[0] = ue;
+ routing->entries[0].u.adapter.summary_addr = (uintptr_t)mem;
+ routing->entries[0].u.adapter.ind_addr = (uintptr_t)mem;
+
+ routing->entries[0].u.adapter.summary_offset = 4096 * 8;
+ ret = __vm_ioctl(vm, KVM_SET_GSI_ROUTING, routing);
+ ksft_test_result(ret == -1 && errno == EINVAL, "summary offset outside of page\n");
+
+ routing->entries[0].u.adapter.summary_offset -= 4;
+ ret = __vm_ioctl(vm, KVM_SET_GSI_ROUTING, routing);
+ ksft_test_result(ret == 0, "summary offset inside of page\n");
+
+ routing->entries[0].u.adapter.ind_offset = 4096 * 8;
+ ret = __vm_ioctl(vm, KVM_SET_GSI_ROUTING, routing);
+ ksft_test_result(ret == -1 && errno == EINVAL, "ind offset outside of page\n");
+
+ routing->entries[0].u.adapter.ind_offset -= 4;
+ ret = __vm_ioctl(vm, KVM_SET_GSI_ROUTING, routing);
+ ksft_test_result(ret == 0, "ind offset inside of page\n");
+
+ kvm_vm_free(vm);
+}
+
+int main(int argc, char *argv[])
+{
+ TEST_REQUIRE(kvm_has_cap(KVM_CAP_IRQ_ROUTING));
+
+ ksft_print_header();
+ ksft_set_plan(4);
+ test();
+
+ ksft_finished(); /* Print results and exit() accordingly */
+}
--
2.51.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/2] KVM: s390: Limit adapter indicator access to mapped page
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-05 16:52 ` Christian Borntraeger
1 sibling, 1 reply; 9+ messages in thread
From: Matthew Rosato @ 2026-03-04 20:16 UTC (permalink / raw)
To: Janosch Frank, kvm; +Cc: linux-s390, freimuth, imbrenda, borntraeger
On 3/3/26 8:46 AM, Janosch Frank wrote:
> While we check the address for errors, we don't seem to check the bit
> offsets and since they are 32 and 64 bits a lot of memory can be
> reached indirectly via those offsets.
>
> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
> Fixes: 84223598778b ("KVM: s390: irq routing for adapter interrupts.")
> Suggested-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
> ---
> arch/s390/kvm/interrupt.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c
> index 18932a65ca68..1a702e8ef574 100644
> --- a/arch/s390/kvm/interrupt.c
> +++ b/arch/s390/kvm/interrupt.c
> @@ -2724,6 +2724,9 @@ static unsigned long get_ind_bit(__u64 addr, unsigned long bit_nr, bool swap)
>
> bit = bit_nr + (addr % PAGE_SIZE) * 8;
>
> + /* kvm_set_routing_entry() should never allow this to happen */
> + WARN_ON_ONCE(bit > (PAGE_SIZE * BITS_PER_BYTE - 1));
> +
> return swap ? (bit ^ (BITS_PER_LONG - 1)) : bit;
> }
>
> @@ -2852,6 +2855,7 @@ int kvm_set_routing_entry(struct kvm *kvm,
> struct kvm_kernel_irq_routing_entry *e,
> const struct kvm_irq_routing_entry *ue)
> {
> + const struct kvm_irq_routing_s390_adapter *adapter;
> u64 uaddr_s, uaddr_i;
> int idx;
>
> @@ -2862,6 +2866,14 @@ int kvm_set_routing_entry(struct kvm *kvm,
> return -EINVAL;
> e->set = set_adapter_int;
>
> + adapter = &ue->u.adapter;
> + if (adapter->summary_addr + (adapter->summary_offset / 8) >=
> + (adapter->summary_addr & PAGE_MASK) + PAGE_SIZE)
> + return -EINVAL;
> + if (adapter->ind_addr + (adapter->ind_offset / 8) >=
> + (adapter->ind_addr & PAGE_MASK) + PAGE_SIZE)
> + return -EINVAL;
> +
> idx = srcu_read_lock(&kvm->srcu);
> uaddr_s = gpa_to_hva(kvm, ue->u.adapter.summary_addr);
> uaddr_i = gpa_to_hva(kvm, ue->u.adapter.ind_addr);
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 2/2] KVM: s390: selftests: Add IRQ routing address offset tests
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
0 siblings, 1 reply; 9+ messages in thread
From: Matthew Rosato @ 2026-03-04 20:19 UTC (permalink / raw)
To: Janosch Frank, kvm; +Cc: linux-s390, freimuth, imbrenda, borntraeger
On 3/3/26 8:46 AM, Janosch Frank wrote:
> This test tries to setup routes which have address + offset
> combinations which cross a page.
>
> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
> ---
LGTM, verified half of these tests fail without the first patch from this series; all pass once it is applied.
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
> tools/testing/selftests/kvm/Makefile.kvm | 1 +
> .../testing/selftests/kvm/s390/irq_routing.c | 75 +++++++++++++++++++
> 2 files changed, 76 insertions(+)
> create mode 100644 tools/testing/selftests/kvm/s390/irq_routing.c
>
> diff --git a/tools/testing/selftests/kvm/Makefile.kvm b/tools/testing/selftests/kvm/Makefile.kvm
> index fdec90e85467..271cbb63af36 100644
> --- a/tools/testing/selftests/kvm/Makefile.kvm
> +++ b/tools/testing/selftests/kvm/Makefile.kvm
> @@ -205,6 +205,7 @@ TEST_GEN_PROGS_s390 += s390/ucontrol_test
> TEST_GEN_PROGS_s390 += s390/user_operexec
> TEST_GEN_PROGS_s390 += s390/keyop
> TEST_GEN_PROGS_s390 += rseq_test
> +TEST_GEN_PROGS_s390 += s390/irq_routing
>
> TEST_GEN_PROGS_riscv = $(TEST_GEN_PROGS_COMMON)
> TEST_GEN_PROGS_riscv += riscv/sbi_pmu_test
> diff --git a/tools/testing/selftests/kvm/s390/irq_routing.c b/tools/testing/selftests/kvm/s390/irq_routing.c
> new file mode 100644
> index 000000000000..7819a0af19a8
> --- /dev/null
> +++ b/tools/testing/selftests/kvm/s390/irq_routing.c
> @@ -0,0 +1,75 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +/*
> + * IRQ routing offset tests.
> + *
> + * Copyright IBM Corp. 2026
> + *
> + * Authors:
> + * Janosch Frank <frankja@linux.ibm.com>
> + */
> +#include <stdio.h>
> +#include <stdlib.h>
> +#include <string.h>
> +#include <sys/ioctl.h>
> +
> +#include "test_util.h"
> +#include "kvm_util.h"
> +#include "kselftest.h"
> +#include "ucall_common.h"
> +
> +extern char guest_code[];
> +asm("guest_code:\n"
> + "diag %r0,%r0,0\n"
> + "j .\n");
> +
> +static void test(void)
> +{
> + struct kvm_irq_routing *routing;
> + struct kvm_vcpu *vcpu;
> + struct kvm_vm *vm;
> + vm_paddr_t mem;
> + int ret;
> +
> + struct kvm_irq_routing_entry ue = {
> + .type = KVM_IRQ_ROUTING_S390_ADAPTER,
> + .gsi = 1,
> + };
> +
> + vm = vm_create_with_one_vcpu(&vcpu, guest_code);
> + mem = vm_phy_pages_alloc(vm, 2, 4096 * 42, 0);
> +
> + routing = kvm_gsi_routing_create();
> + routing->nr = 1;
> + routing->entries[0] = ue;
> + routing->entries[0].u.adapter.summary_addr = (uintptr_t)mem;
> + routing->entries[0].u.adapter.ind_addr = (uintptr_t)mem;
> +
> + routing->entries[0].u.adapter.summary_offset = 4096 * 8;
> + ret = __vm_ioctl(vm, KVM_SET_GSI_ROUTING, routing);
> + ksft_test_result(ret == -1 && errno == EINVAL, "summary offset outside of page\n");
> +
> + routing->entries[0].u.adapter.summary_offset -= 4;
> + ret = __vm_ioctl(vm, KVM_SET_GSI_ROUTING, routing);
> + ksft_test_result(ret == 0, "summary offset inside of page\n");
> +
> + routing->entries[0].u.adapter.ind_offset = 4096 * 8;
> + ret = __vm_ioctl(vm, KVM_SET_GSI_ROUTING, routing);
> + ksft_test_result(ret == -1 && errno == EINVAL, "ind offset outside of page\n");
> +
> + routing->entries[0].u.adapter.ind_offset -= 4;
> + ret = __vm_ioctl(vm, KVM_SET_GSI_ROUTING, routing);
> + ksft_test_result(ret == 0, "ind offset inside of page\n");
> +
> + kvm_vm_free(vm);
> +}
> +
> +int main(int argc, char *argv[])
> +{
> + TEST_REQUIRE(kvm_has_cap(KVM_CAP_IRQ_ROUTING));
> +
> + ksft_print_header();
> + ksft_set_plan(4);
> + test();
> +
> + ksft_finished(); /* Print results and exit() accordingly */
> +}
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/2] KVM: s390: Limit adapter indicator access to mapped page
2026-03-04 20:16 ` Matthew Rosato
@ 2026-03-05 14:04 ` Matthew Rosato
2026-03-09 12:17 ` Janosch Frank
0 siblings, 1 reply; 9+ messages in thread
From: Matthew Rosato @ 2026-03-05 14:04 UTC (permalink / raw)
To: Janosch Frank, kvm; +Cc: linux-s390, freimuth, imbrenda, borntraeger
On 3/4/26 3:16 PM, Matthew Rosato wrote:
> On 3/3/26 8:46 AM, Janosch Frank wrote:
>> While we check the address for errors, we don't seem to check the bit
>> offsets and since they are 32 and 64 bits a lot of memory can be
>> reached indirectly via those offsets.
>>
>> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
>> Fixes: 84223598778b ("KVM: s390: irq routing for adapter interrupts.")
>> Suggested-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
>
> Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
>
Like with v1, I used a modified QEMU to attempt various invocations to convince myself this works. So feel free to also add:
Tested-by: Matthew Rosato <mjrosato@linux.ibm.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 2/2] KVM: s390: selftests: Add IRQ routing address offset tests
2026-03-04 20:19 ` Matthew Rosato
@ 2026-03-05 14:27 ` Matthew Rosato
0 siblings, 0 replies; 9+ messages in thread
From: Matthew Rosato @ 2026-03-05 14:27 UTC (permalink / raw)
To: Janosch Frank, kvm; +Cc: linux-s390, freimuth, imbrenda, borntraeger
On 3/4/26 3:19 PM, Matthew Rosato wrote:
> On 3/3/26 8:46 AM, Janosch Frank wrote:
>> This test tries to setup routes which have address + offset
>> combinations which cross a page.
>>
>> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
>> ---
>
> LGTM, verified half of these tests fail without the first patch from this series; all pass once it is applied.
>
> Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
>
>
As mentioned above I ran tests with a few different kernel builds against this patch, so if you'd like you can also have:
Tested-by: Matthew Rosato <mjrosato@linux.ibm.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/2] KVM: s390: Limit adapter indicator access to mapped page
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 16:52 ` Christian Borntraeger
1 sibling, 0 replies; 9+ messages in thread
From: Christian Borntraeger @ 2026-03-05 16:52 UTC (permalink / raw)
To: Janosch Frank, kvm; +Cc: linux-s390, mjrosato, freimuth, imbrenda
Am 03.03.26 um 14:46 schrieb Janosch Frank:
> While we check the address for errors, we don't seem to check the bit
> offsets and since they are 32 and 64 bits a lot of memory can be
> reached indirectly via those offsets.
>
> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
> Fixes: 84223598778b ("KVM: s390: irq routing for adapter interrupts.")
> Suggested-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
> ---
> arch/s390/kvm/interrupt.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c
> index 18932a65ca68..1a702e8ef574 100644
> --- a/arch/s390/kvm/interrupt.c
> +++ b/arch/s390/kvm/interrupt.c
> @@ -2724,6 +2724,9 @@ static unsigned long get_ind_bit(__u64 addr, unsigned long bit_nr, bool swap)
>
> bit = bit_nr + (addr % PAGE_SIZE) * 8;
>
> + /* kvm_set_routing_entry() should never allow this to happen */
> + WARN_ON_ONCE(bit > (PAGE_SIZE * BITS_PER_BYTE - 1));
> +
> return swap ? (bit ^ (BITS_PER_LONG - 1)) : bit;
> }
>
> @@ -2852,6 +2855,7 @@ int kvm_set_routing_entry(struct kvm *kvm,
> struct kvm_kernel_irq_routing_entry *e,
> const struct kvm_irq_routing_entry *ue)
> {
> + const struct kvm_irq_routing_s390_adapter *adapter;
> u64 uaddr_s, uaddr_i;
> int idx;
>
> @@ -2862,6 +2866,14 @@ int kvm_set_routing_entry(struct kvm *kvm,
> return -EINVAL;
> e->set = set_adapter_int;
>
> + adapter = &ue->u.adapter;
> + if (adapter->summary_addr + (adapter->summary_offset / 8) >=
> + (adapter->summary_addr & PAGE_MASK) + PAGE_SIZE)
> + return -EINVAL;
> + if (adapter->ind_addr + (adapter->ind_offset / 8) >=
> + (adapter->ind_addr & PAGE_MASK) + PAGE_SIZE)
> + return -EINVAL;
> +
> idx = srcu_read_lock(&kvm->srcu);
> uaddr_s = gpa_to_hva(kvm, ue->u.adapter.summary_addr);
> uaddr_i = gpa_to_hva(kvm, ue->u.adapter.ind_addr);
we could consider a follow-on patch to use the local adapter variable here
and below as well. But not as part of this fix.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/2] KVM: s390: Limit adapter indicator access to mapped page
2026-03-05 14:04 ` Matthew Rosato
@ 2026-03-09 12:17 ` Janosch Frank
0 siblings, 0 replies; 9+ messages in thread
From: Janosch Frank @ 2026-03-09 12:17 UTC (permalink / raw)
To: Matthew Rosato, kvm; +Cc: linux-s390, freimuth, imbrenda, borntraeger
On 3/5/26 15:04, Matthew Rosato wrote:
> On 3/4/26 3:16 PM, Matthew Rosato wrote:
>> On 3/3/26 8:46 AM, Janosch Frank wrote:
>>> While we check the address for errors, we don't seem to check the bit
>>> offsets and since they are 32 and 64 bits a lot of memory can be
>>> reached indirectly via those offsets.
>>>
>>> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
>>> Fixes: 84223598778b ("KVM: s390: irq routing for adapter interrupts.")
>>> Suggested-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
>>
>> Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
>>
>
> Like with v1, I used a modified QEMU to attempt various invocations to convince myself this works. So feel free to also add:
>
> Tested-by: Matthew Rosato <mjrosato@linux.ibm.com>
>
>
>
Thank you for testing this!
^ 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