Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796407068; b=MHaelB9ydKV/HaKM7RvgtXGFL2IXHk4xa68mCZ3csHky/s2ebAguwgT4hlS0foITvcuH tl8dMpEzOF4XYJCjRh1FlLcL6oLJTlHLSTUiveIblc0fTsi5jM6DKP3OREaVaSwbocWMe dsKJz9YJQHz86R6EYo/l6L+pO4UMI/G2B3jlL07zvTG3psqQfUrO22i4sLvER7LJIsWQK I4kGynYbIBDHasVixDjPGJQMa3Z5T8mEPa9AUjU7t5Lh/4hoNlFRIdtVF2nqaesT0h5SH MsIYi5B33fgx711Gl8aEXEgFEy4/B+ehvSO6egwdM0eV3d/AG0vuL4T3gPqSWFtgnww== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796407068; h=DMARC-Filter:DKIM-Signature:X-MC-Rep:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:From:To:Cc:Subject:Date: Message-ID:MIME-Version:X-Scanned-By:X-Mimecast-MFC-PROC-ID: X-Mimecast-Originator:Content-Transfer-Encoding:content-type; bh=tHf8lZeUQYAx4LApC/yaszJw8HjkEdIL+qXPos5LS3o=; b=H+A4N+RVYkQ226qspVXJ6ogdh/+3kaFZNYy+y8YHpeOhb8N2PbEZb35DNSfIlIqdEKYK Be7FSgMMuuhz9G9PU1q6/QT2F2PwuUK23eO5oWx6C2tChN1S2/e6rMTiSSQSSC0NPx6P/ wJT7BkzeG+l5DC01sL5+USxgNjiW/qf63jJrXzKEfBwmsJhWhxvHX2pN1yvWDJXMVv2oG VbJiyEYne6jJ9Pe1M7uTVuRziB28FXqulBk+QzvCIB7cwymuXr/7IEy9ig6EPY6JOhYir ujUk0NiHsoi/vlAuWKXvUwgAy+t5R0BEp9BO2/6GGZbzb7HIyCnchPq7Fq0japXaVMA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b="Nq6/2HiF"; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5086F606A32C for ; Fri, 4 Dec 2026 17:57:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5086F606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Nq6/2HiF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796407068; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tHf8lZeUQYAx4LApC/yaszJw8HjkEdIL+qXPos5LS3o=; b=Nq6/2HiFdnWMSTh18TprlQ9ZYKvhJ64Jj8kpDbGR8FFWj+bS+67evmxjyCqV110FyhmG+J Jp1xiMAJ37YRnO1F1Eo57aX8IIN01SsnoQx3ZuvskDEKlUFIsAHaR62HJ7JJCIUgD4B8c7 jhNtsgYpl0ryiLYxzpV/NzP7VZfa9VI= X-MC-Rep: binary re single Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS with 8BITMIME (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-615-ESxtHZOePmGKUrzGwZWeBA-1; Fri, 4 Dec 2026 17:57:44 +0000 X-MC-Unique: ESxtHZOePmGKUrzGwZWeBA-1 X-Mimecast-MFC-AGG-ID: ESxtHZOePmGKUrzGwZWeBA_1796407063 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1D06018F5F0B; Fri, 4 Dec 2026 17:57:43 +0000 (UTC) Received: from pbonzini-thinkpadx1carbon6th.rmtit.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5FE6618019CD; Fri, 4 Dec 2026 17:57:41 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: maz@kernel.org, oupton@kernel.org, kvmarm@lists.linux.dev Subject: [PATCH 0/4] Fixes for various kvm-arm vulnerabilities Date: Fri, 4 Dec 2026 18:57:36 +0100 Message-ID: <20261204175740.2153746-1-pbonzini@redhat.com> X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-MFC-PROC-ID: rHCijCTKvAHeL-pZfKRwtMSyqg7fi1dx7_Nf9prKc6Y_1796407063 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true - Bound PINTID during ITE table restore, avoiding the possibility that the guest plants an out-of-range LPI INTID in its own in-memory ITS tables prior to restore. - Do not blindly trust the vINTID field coming from KVM, and reject anything that is out of the boundaries that the hardware ITS is configured to support. - Add signal_pending checks to the scan_its_table() loop; device table entries with num_eventid_bits = 16 (or 65536 EventIDs per device) are valid but takes a long time to restore. - Remove quadratic complexity from the algorithm used to prune IRQs sitting in the AP list has a quadratic complexity, and simplify the locking while at that. Thanks, Paolo Marc Zyngier (2): irqchip/gic-v4: Contain VMAPTI vINTID to the expected boundaries KVM: arm64: vgic: Linearise AP list pruning process Raghavendra Rao Ananta (2): KVM: arm64: vgic-its: Bound PINTID during ITE table restore KVM: arm64: vgic-its: Add signal checks in scan_its_table() arch/arm64/kvm/vgic/vgic-its.c | 6 +- arch/arm64/kvm/vgic/vgic.c | 175 +++++++++++++++---------------- drivers/irqchip/irq-gic-v3-its.c | 3 +- 3 files changed, 94 insertions(+), 90 deletions(-) -- 2.56.1