Re: [PATCH] KVM: s390: pci: Fix aisb calculation

From: Christian Borntraeger

Date: Mon Apr 27 2026 - 05:16:37 EST


Am 24.04.26 um 21:39 schrieb Matthew Rosato:
The current implementation of aisb calculation will erroneously index
via an unsigned long * as well as multiply by 8B for every 64-bits in
the offset; only one or the other is required. This throws off aisb
calculations once the number of devices exceeds 64, and can result
in out-of-bounds access as well as failure to indicate summary bits
associated with those devices in guests.

Fix this by converting to a physical address before applying the
offset, as is already done in arch/s390/pci/pci_irq.c.

Fixes: 3c5a1b6f0a18 ("KVM: s390: pci: provide routines for enabling/disabling interrupt forwarding")
Signed-off-by: Matthew Rosato <mjrosato@xxxxxxxxxxxxx>

thanks applied.