Patch 1/2 had been sent about weeks ago, the original
link here:
https://patchwork.kernel.org/project/linux-mm/patch/20211011022241.97072-2-…
It seems to be ignored, and send out again here.
Patch 2/2 is sent out first time. And Patch 1/2 and
2/2 both to fix different bugs for commit
eb6ecbed0aa2 ("mm, thp: relax the VM_DENYWRITE constraint on file-backed
THPs").
In addition, I find the stable version (I had check 5.14) has contained
above commit (eb6ecbed0aa2), so I will add "cc stable mail list"
when sending Patches.
Thanks!
Rongwei Wang (2):
mm, thp: lock filemap when truncating page cache
mm, thp: fix incorrect unmap behavior for private pages
fs/open.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
--
2.27.0
Hi Greg, Hi Sasha,
Please take this backport of the upstream commit a46044a92add ("s390/pci: fix
zpci_zdev_put() on reserve") for the v5.10 stable series. Unlike the v5.14
series we do *NOT* include commit 023cc3cb1e4b ("s390/pci: cleanup resources only if
necessary") either as a separate commit subsumed. We don't yet have the
zdev->has_resource attribute that was added as part of v5.13 and do not need it
for this fix.
Thanks,
Niklas
Niklas Schnelle (1):
s390/pci: fix zpci_zdev_put() on reserve
arch/s390/include/asm/pci.h | 3 ++
arch/s390/pci/pci.c | 45 ++++++++++++++++++++++++++----
arch/s390/pci/pci_event.c | 4 +--
drivers/pci/hotplug/s390_pci_hpc.c | 9 +-----
4 files changed, 46 insertions(+), 15 deletions(-)
--
2.25.1
The size of the data in the scratch buffer is not divided by the size of
each port I/O operation, so vcpu->arch.pio.count ends up being larger
than it should be by a factor of size.
Cc: stable(a)vger.kernel.org
Fixes: 7ed9abfe8e9f ("KVM: SVM: Support string IO operations for an SEV-ES guest")
Signed-off-by: Paolo Bonzini <pbonzini(a)redhat.com>
---
arch/x86/kvm/svm/sev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c
index c36b5fe4c27c..e672493b5d8d 100644
--- a/arch/x86/kvm/svm/sev.c
+++ b/arch/x86/kvm/svm/sev.c
@@ -2583,7 +2583,7 @@ int sev_es_string_io(struct vcpu_svm *svm, int size, unsigned int port, int in)
return -EINVAL;
return kvm_sev_es_string_io(&svm->vcpu, size, port,
- svm->ghcb_sa, svm->ghcb_sa_len, in);
+ svm->ghcb_sa, svm->ghcb_sa_len / size, in);
}
void sev_es_init_vmcb(struct vcpu_svm *svm)
--
2.27.0
Hi Greg, Hi Sasha,
Please take this backport of the upstream commit a46044a92add ("s390/pci: fix
zpci_zdev_put() on reserve") for the v5.14 stable series. After adding the
prerequisite commit 023cc3cb1e4b ("s390/pci: cleanup resources only if
necessary") both it and the original upstream patch apply cleanly. I have also
tested them with the original problem situation on top of v5.14.14 and
confirmed the issue to be fixed.
Thanks,
Niklas
Niklas Schnelle (2):
s390/pci: cleanup resources only if necessary
s390/pci: fix zpci_zdev_put() on reserve
arch/s390/include/asm/pci.h | 2 ++
arch/s390/pci/pci.c | 48 ++++++++++++++++++++++++++----
arch/s390/pci/pci_event.c | 4 +--
drivers/pci/hotplug/s390_pci_hpc.c | 9 +-----
4 files changed, 47 insertions(+), 16 deletions(-)
--
2.25.1
Hi Greg, Hi Sasha,
Please take this backport of the upstream commit a46044a92add ("s390/pci: fix
zpci_zdev_put() on reserve") for the v5.14 stable series. After adding the
prerequisite commit 02368b7cf6c7 ("s390/pci: cleanup resources only if
necessary") both it and the original upstream patch apply cleanly. I have also
tested them with the original problem situation on top of v5.14.14 and
confirmed the issue to be fixed.
Thanks,
Niklas
Changes since v2:
- Correct upstream commit hash
Niklas Schnelle (2):
s390/pci: cleanup resources only if necessary
s390/pci: fix zpci_zdev_put() on reserve
arch/s390/include/asm/pci.h | 2 ++
arch/s390/pci/pci.c | 48 ++++++++++++++++++++++++++----
arch/s390/pci/pci_event.c | 4 +--
drivers/pci/hotplug/s390_pci_hpc.c | 9 +-----
4 files changed, 47 insertions(+), 16 deletions(-)
--
2.25.1