Revert "KVM: PPC: e500: Mark "struct page" pfn accessed before dropping mmu_lock"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

This reverts commit 59e21c4613b0a46f46eb124984928df46d88ad57 which is
commit 84cf78dcd9d65c45ab73998d4ad50f433d53fb93 upstream.

It should not have been applied.

Link: https://lore.kernel.org/r/CABgObfb5U9zwTQBPkPB=mKu-vMrRspPCm4wfxoQpB+SyAnb5WQ@xxxxxxxxxxxxxx
Reported-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 arch/powerpc/kvm/e500_mmu_host.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- a/arch/powerpc/kvm/e500_mmu_host.c
+++ b/arch/powerpc/kvm/e500_mmu_host.c
@@ -498,9 +498,11 @@ static inline int kvmppc_e500_shadow_map
 	kvmppc_mmu_flush_icache(pfn);
 
 out:
+	spin_unlock(&kvm->mmu_lock);
+
 	/* Drop refcount on page, so that mmu notifiers can clear it */
 	kvm_release_pfn_clean(pfn);
-	spin_unlock(&kvm->mmu_lock);
+
 	return ret;
 }
 


Patches currently in stable-queue which might be from gregkh@xxxxxxxxxxxxxxxxxxx are

queue-6.6/ksmbd-fix-bug-on-trap-in-smb2_lock.patch
queue-6.6/riscv-save-restore-envcfg-csr-during-cpu-suspend.patch
queue-6.6/bluetooth-add-check-for-mgmt_alloc_skb-in-mgmt_device_connected.patch
queue-6.6/hid-appleir-fix-potential-null-dereference-at-raw-event-handle.patch
queue-6.6/hwmon-peci-dimmtemp-do-not-provide-fake-thresholds-data.patch
queue-6.6/mptcp-fix-scheduling-while-atomic-in-mptcp_pm_nl_append_new_local_addr.patch
queue-6.6/drm-amd-display-fix-null-check-for-pipe_ctx-plane_state-in-resource_build_scaling_params.patch
queue-6.6/usb-gadget-u_ether-set-is_suspend-flag-if-remote-wakeup-fails.patch
queue-6.6/kbuild-userprogs-use-correct-lld-when-linking-through-clang.patch
queue-6.6/mei-me-add-panther-lake-p-did.patch
queue-6.6/x86-microcode-amd-add-some-forgotten-models-to-the-sha-check.patch
queue-6.6/usb-gadget-set-self-powered-based-on-maxpower-and-bmattributes.patch
queue-6.6/loongarch-use-polling-play_dead-when-resuming-from-hibernation.patch
queue-6.6/dma-kmsan-export-kmsan_handle_dma-for-modules.patch
queue-6.6/drm-radeon-fix-rs400_gpu_init-for-ati-mobility-radeon-xpress-200m.patch
queue-6.6/revert-kvm-e500-always-restore-irqs.patch
queue-6.6/mm-page_alloc-fix-uninitialized-variable.patch
queue-6.6/x86-cpu-validate-cpuid-leaf-0x2-edx-output.patch
queue-6.6/iio-adc-at91-sama5d2_adc-fix-sama7g5-realbits-value.patch
queue-6.6/char-misc-deallocate-static-minor-in-error-path.patch
queue-6.6/gpio-rcar-use-raw_spinlock-to-protect-register-access.patch
queue-6.6/revert-of-reserved-memory-fix-using-wrong-number-of-cells-to-get-property-alignment.patch
queue-6.6/cdx-fix-possible-uaf-error-in-driver_override_show.patch
queue-6.6/eeprom-digsy_mtc-make-gpio-lookup-table-match-the-device.patch
queue-6.6/ksmbd-fix-out-of-bounds-in-parse_sec_desc.patch
queue-6.6/usb-typec-ucsi-fix-null-pointer-access.patch
queue-6.6/rapidio-add-check-for-rio_add_net-in-rio_scan_alloc_net.patch
queue-6.6/usb-dwc3-set-suspendenable-soon-after-phy-init.patch
queue-6.6/alsa-hda-realtek-update-alc222-depop-optimize.patch
queue-6.6/x86-cacheinfo-validate-cpuid-leaf-0x2-edx-output.patch
queue-6.6/alsa-hda-realtek-fix-incorrect-is_reachable-usage.patch
queue-6.6/block-fix-conversion-of-gpt-partition-name-to-7-bit.patch
queue-6.6/drivers-virt-acrn-hsm-use-kzalloc-to-avoid-info-leak-in-pmcmd_ioctl.patch
queue-6.6/usb-renesas_usbhs-use-devm_usb_get_phy.patch
queue-6.6/efi-don-t-map-the-entire-mokvar-table-to-determine-its-size.patch
queue-6.6/alsa-seq-avoid-module-auto-load-handling-at-event-delivery.patch
queue-6.6/mm-hugetlb-add-huge-page-size-param-to-huge_ptep_get_and_clear.patch
queue-6.6/iio-dac-ad3552r-clear-reset-status-flag.patch
queue-6.6/revert-drivers-card_reader-rtsx_usb-restore-interrupt-based-detection.patch
queue-6.6/tracing-tprobe-events-fix-a-memory-leak-when-tprobe-with-retval.patch
queue-6.6/nfs-fix-nfs_release_folio-to-not-deadlock-via-kcompactd-writeback.patch
queue-6.6/platform-x86-thinkpad_acpi-add-battery-quirk-for-thinkpad-x131e.patch
queue-6.6/wifi-cfg80211-regulatory-improve-invalid-hints-checking.patch
queue-6.6/loongarch-set-max_pfn-with-the-pfn-of-the-last-page.patch
queue-6.6/kvm-svm-drop-debugctl-from-guest-s-effective-value.patch
queue-6.6/usb-hub-lack-of-clearing-xhc-resources.patch
queue-6.6/ksmbd-fix-type-confusion-via-race-condition-when-using-ipc_msg_send_request.patch
queue-6.6/kvm-svm-suppress-debugctl.btf-on-amd.patch
queue-6.6/slimbus-messaging-free-transaction-id-in-delayed-interrupt-scenario.patch
queue-6.6/intel_th-pci-add-panther-lake-p-u-support.patch
queue-6.6/xhci-pci-fix-indentation-in-the-pci-device-id-definitions.patch
queue-6.6/revert-kvm-ppc-e500-mark-struct-page-dirty-in-kvmppc_e500_shadow_map.patch
queue-6.6/iio-filter-admv8818-force-initialization-of-sdo.patch
queue-6.6/revert-kvm-ppc-e500-use-__kvm_faultin_pfn-to-handle-page-faults.patch
queue-6.6/bus-mhi-host-pci_generic-use-pci_try_reset_function-to-avoid-deadlock.patch
queue-6.6/intel_th-pci-add-arrow-lake-support.patch
queue-6.6/drivers-core-fix-device-leak-in-__fw_devlink_relax_cycles.patch
queue-6.6/arm64-hugetlb-fix-huge_ptep_get_and_clear-for-non-present-ptes.patch
queue-6.6/usb-typec-tcpci_rt1711h-unmask-alert-interrupts-to-fix-functionality.patch
queue-6.6/gpio-aggregator-protect-driver-attr-handlers-against-module-unload.patch
queue-6.6/usb-renesas_usbhs-call-clk_put.patch
queue-6.6/usb-dwc3-gadget-prevent-irq-storm-when-th-re-executes.patch
queue-6.6/revert-kvm-ppc-e500-mark-struct-page-pfn-accessed-before-dropping-mmu_lock.patch
queue-6.6/x86-cpu-properly-parse-cpuid-leaf-0x2-tlb-descriptor-0x63.patch
queue-6.6/kvm-x86-explicitly-zero-eax-and-ebx-when-perfmon_v2-isn-t-supported-by-kvm.patch
queue-6.6/wifi-nl80211-reject-cooked-mode-if-it-is-set-along-with-other-flags.patch
queue-6.6/usb-xhci-enable-the-trb-overfetch-quirk-on-via-vl805.patch
queue-6.6/intel_th-pci-add-panther-lake-h-support.patch
queue-6.6/alsa-hda-intel-add-dell-alc3271-to-power_save-denylist.patch
queue-6.6/alsa-hda-realtek-add-supported-mic-mute-led-for-lenovo-platform.patch
queue-6.6/rapidio-fix-an-api-misues-when-rio_add_net-fails.patch
queue-6.6/s390-traps-fix-test_monitor_call-inline-assembly.patch
queue-6.6/loongarch-convert-unreachable-to-bug.patch
queue-6.6/ksmbd-fix-use-after-free-in-smb2_lock.patch
queue-6.6/x86-amd_nb-use-rdmsr_safe-in-amd_get_mmconfig_range.patch
queue-6.6/bluetooth-add-check-for-mgmt_alloc_skb-in-mgmt_remote_name.patch
queue-6.6/usb-typec-ucsi-increase-timeout-for-ppm-reset-operations.patch
queue-6.6/riscv-fix-enabling-cbo.zero-when-running-in-m-mode.patch
queue-6.6/mm-don-t-skip-arch_sync_kernel_mappings-in-error-paths.patch
queue-6.6/usb-renesas_usbhs-flush-the-notify_hotplug_work.patch
queue-6.6/usb-quirks-add-delay_init-and-no_lpm-for-prolific-mass-storage-card-reader.patch
queue-6.6/usb-gadget-fix-setting-self-powered-state-on-suspend.patch
queue-6.6/usb-gadget-check-bmattributes-only-if-configuration-is-valid.patch
queue-6.6/usb-atm-cxacru-fix-a-flaw-in-existing-endpoint-checks.patch




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux