[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250805111446.40937-1-imbrenda@linux.ibm.com>
Date: Tue, 5 Aug 2025 13:14:44 +0200
From: Claudio Imbrenda <imbrenda@...ux.ibm.com>
To: linux-kernel@...r.kernel.org
Cc: linux-s390@...r.kernel.org, kvm@...r.kernel.org, david@...hat.com,
frankja@...ux.ibm.com, seiden@...ux.ibm.com, nsg@...ux.ibm.com,
nrb@...ux.ibm.com, schlameuss@...ux.ibm.com, hca@...ux.ibm.com,
mhartmay@...ux.ibm.com, borntraeger@...ibm.com
Subject: [PATCH v1 0/2] KVM: s390: Fix two bugs
This small series fixes two bugs in s390 KVM. One is small and trivial,
the other is pretty bad.
* The wrong type of flag was being passed to vcpu_dat_fault_handler();
it expects a FOLL_* flag, but a FAULT_FLAG_* was passed instead.
* Due to incorrect usage of mmu_notifier_register(), in some rare cases
when running a secure guest, the struct mm for the userspace process
would get freed too early and cause a use-after-free.
Claudio Imbrenda (2):
KVM: s390: Fix incorrect usage of mmu_notifier_register()
KVM: s390: Fix FOLL_*/FAULT_FLAG_* confusion
arch/s390/kvm/kvm-s390.c | 8 ++++----
arch/s390/kvm/pv.c | 14 +++++++++-----
2 files changed, 13 insertions(+), 9 deletions(-)
--
2.50.1
Powered by blists - more mailing lists