From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBB4553B61E for ; Wed, 9 Sep 2026 10:45:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788950714; cv=none; b=UIdNtv5I1ryVvm4BaLPmSwsObrt3t3w0fdcxJa0nsGEFRGiJ8bwP+T7gSoQOZ2cILx940wTKX84Z+/EhMbLeqAyfkEsMkmbZN51or1ip8p1czlreSaPvN/M4x1cxv6fsFBwY/JSz6Pv3JyLAV0UU97LqX3pyeQfmn5rzWhW972c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788950714; c=relaxed/simple; bh=EGGQ23Y9Fn1w6i9t8W93jQ131XqPKyKpR4xuyF6uvEk=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=Xozol33TjU3kdcyyJvuUzIPDoX/k7hHE4GSgdeHj577nagUpA37gJPlXrZeueanu9fUZegH8HqxgzgjmEOTZY9IG6MawIphyk5GdVthGDHtBCJPf0XqDeIbCG1khMi3hzDZWEzFcyOCzaakE4weSqSavdvlpwPR7R2Mz3/dXt3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Qshy4XI+; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Qshy4XI+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D73D51F00A3A; Wed, 9 Sep 2026 10:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788950713; bh=g2KVjqr4fJzzdrIXJ/601K6mtKMyJSc78d29laYw03w=; h=Subject:To:Cc:From:Date; b=Qshy4XI+bqjuVZ0NzVP9PymCjQ7q0hm5duA0so0AZtDHJmJ7jPVyavOx3yNMsNuyo 9s39nY5XYxws7tZwgeptzKgqdw+TBafg6K/cYUjLGos0mgtBzDlJ3kaBqmobudCh2Z SstIBYlHgbyxnd7zu6JnjSlw2wGv9bUFOFKa07b4= Subject: FAILED: patch "[PATCH] KVM: s390: Zero initialize data structures for" failed to apply to 6.18-stable tree To: borntraeger@linux.ibm.com,imbrenda@linux.ibm.com,mjrosato@linux.ibm.com Cc: From: Date: Wed, 09 Sep 2026 12:35:23 +0200 Message-ID: <2026090923-freestyle-whacking-e0e0@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.18-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.18.y git checkout FETCH_HEAD git cherry-pick -x 4e2c7f7cbc27418f9a290399b986c1b85ff93b90 # git commit -s git send-email --to '' --in-reply-to '2026090923-freestyle-whacking-e0e0@gregkh' --subject-prefix 'PATCH 6.18.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 4e2c7f7cbc27418f9a290399b986c1b85ff93b90 Mon Sep 17 00:00:00 2001 From: Christian Borntraeger Date: Wed, 5 Aug 2026 13:04:49 +0200 Subject: [PATCH] KVM: s390: Zero initialize data structures for inject_pfault_token __kvm_inject_pfault_token() only sets .type and .u.ext.ext_params2 of the on-stack struct kvm_s390_irq but the full ext substructure is copied into the cpu local variable on inject. ext_params and pad contain stale stack values. Interrupt delivery only uses ext_params2, so nothing leaks to the guest, but a host user can use the migration ioctls to get to the data. Fix by zero-initializing the irq struct. Do the same for the inti data structure. Fixes: 383d0b050106 ("KVM: s390: handle pending local interrupts via bitmap") Cc: stable@vger.kernel.org Signed-off-by: Christian Borntraeger Reviewed-by: Matthew Rosato Reviewed-by: Claudio Imbrenda Signed-off-by: Claudio Imbrenda Message-ID: <20260805110455.7200-3-borntraeger@linux.ibm.com> diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 518a69c55e85..611dcb534210 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -4474,8 +4474,8 @@ int kvm_s390_try_set_tod_clock(struct kvm *kvm, const struct kvm_s390_vm_tod_clo static void __kvm_inject_pfault_token(struct kvm_vcpu *vcpu, bool start_token, unsigned long token) { - struct kvm_s390_interrupt inti; - struct kvm_s390_irq irq; + struct kvm_s390_interrupt inti = {}; + struct kvm_s390_irq irq = {}; struct kvm_s390_interrupt_info *inti_mem = NULL; int ret = 0;