Patch "Revert "regulator: core: Fix nested locking of supplies"" has been added to the 4.4-stable tree

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

 



This is a note to let you know that I've just added the patch titled

    Revert "regulator: core: Fix nested locking of supplies"

to the 4.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     revert-regulator-core-fix-nested-locking-of-supplies.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From foo@baz Mon May  2 11:14:34 PDT 2016
Date: Mon, 02 May 2016 11:14:34 -0700
To: Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx>
From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Subject: Revert "regulator: core: Fix nested locking of supplies"

This reverts commit b1999fa6e8145305a6c8bda30ea20783717708e6 which was
commit 70a7fb80e85ae7f78f8e90cec3fbd862ea6a4d4b upstream.

It causes run-time breakage in the 4.4-stable tree and more patches are
needed to be applied first before this one in order to resolve the
issue.

Reported-by: Guenter Roeck <linux@xxxxxxxxxxxx>
Cc: Mark Brown <broonie@xxxxxxxxxx>
Cc: Arnd Bergmann <arnd@xxxxxxxx>
Cc: Thierry Reding <treding@xxxxxxxxxx>
Cc: Mark Brown <broonie@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
 drivers/regulator/core.c |   10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -132,14 +132,6 @@ static bool have_full_constraints(void)
 	return has_full_constraints || of_have_populated_dt();
 }
 
-static inline struct regulator_dev *rdev_get_supply(struct regulator_dev *rdev)
-{
-	if (rdev && rdev->supply)
-		return rdev->supply->rdev;
-
-	return NULL;
-}
-
 /**
  * regulator_lock_supply - lock a regulator and its supplies
  * @rdev:         regulator source
@@ -148,7 +140,7 @@ static void regulator_lock_supply(struct
 {
 	int i;
 
-	for (i = 0; rdev->supply; rdev = rdev_get_supply(rdev), i++)
+	for (i = 0; rdev->supply; rdev = rdev->supply->rdev, i++)
 		mutex_lock_nested(&rdev->mutex, i);
 }
 


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

queue-4.4/numa-fix-proc-pid-numa_maps-for-thp.patch
queue-4.4/crypto-talitos-fix-aead-tcrypt-tests.patch
queue-4.4/dm-cache-metadata-fix-cmd_read_lock-acquiring-write-lock.patch
queue-4.4/pinctrl-mediatek-correct-debounce-time-unit-in-mtk_gpio_set_debounce.patch
queue-4.4/cgroup-make-sure-a-parent-css-isn-t-freed-before-its-children.patch
queue-4.4/xen-kconfig-don-t-select-input_xen_kbddev_frontend.patch
queue-4.4/alsa-pcxhr-fix-missing-mutex-unlock.patch
queue-4.4/alsa-hda-add-dock-support-for-thinkpad-x260.patch
queue-4.4/mm-vmscan-reclaim-highmem-zone-if-buffer_heads-is-over-limit.patch
queue-4.4/i2c-exynos5-fix-possible-abba-deadlock-by-keeping-i2c-clock-prepared.patch
queue-4.4/regulator-core-ensure-we-lock-all-regulators.patch
queue-4.4/alsa-hda-keep-powering-up-adcs-on-cirrus-codecs.patch
queue-4.4/x86-edac-sb_edac.c-repair-damage-introduced-when-fixing-channel-address.patch
queue-4.4/slub-clean-up-code-for-kmem-cgroup-support-to-kmem_cache_free_bulk.patch
queue-4.4/powerpc-scan_features-updates-incorrect-bits-for-real_le.patch
queue-4.4/usb-gadget-f_fs-fix-use-after-free.patch
queue-4.4/efi-expose-non-blocking-set_variable-wrapper-to-efivars.patch
queue-4.4/drm-i915-fixup-the-free-space-logic-in-ring_prepare.patch
queue-4.4/mm-huge_memory-replace-vm_no_thp-vm_bug_on-with-actual-vma-check.patch
queue-4.4/powerpc-update-tm-user-feature-bits-in-scan_features.patch
queue-4.4/sched-cgroup-fix-cleanup-cgroup-teardown-init.patch
queue-4.4/drm-i915-use-fw_domains_put_with_fifo-on-hsw.patch
queue-4.4/asoc-ssm4567-reset-device-before-regcache_sync.patch
queue-4.4/drm-i915-skl_update_scaler-wants-a-rotation-bitmask-instead-of-bit-number.patch
queue-4.4/amdgpu-uvd-add-uvd-fw-version-for-amdgpu.patch
queue-4.4/pwm-brcmstb-fix-check-of-devm_ioremap_resource-return-code.patch
queue-4.4/block-loop-fix-filesystem-corruption-in-case-of-aio-dio.patch
queue-4.4/debugfs-make-automount-point-inodes-permanently-empty.patch
queue-4.4/input-pmic8xxx-pwrkey-fix-algorithm-for-converting-trigger-delay.patch
queue-4.4/revert-drm-amdgpu-disable-runtime-pm-on-px-laptops-without-dgpu-power-control.patch
queue-4.4/drm-dp-mst-restore-primary-hub-guid-on-resume.patch
queue-4.4/drm-nouveau-gr-gf100-select-a-stream-master-to-fixup-tfb-offset-queries.patch
queue-4.4/drm-dp-mst-validate-port-in-drm_dp_payload_send_msg.patch
queue-4.4/usb-usbip-fix-potential-out-of-bounds-write.patch
queue-4.4/drm-amdgpu-when-suspending-if-uvd-vce-was-running.-need-to-cancel-delay-work.patch
queue-4.4/arm-dts-am43x-epos-fix-clk-parent-for-synctimer.patch
queue-4.4/arm-mvebu-correct-unit-address-for-linksys.patch
queue-4.4/block-partition-initialize-percpuref-before-sending-out-kobj_add.patch
queue-4.4/drm-amdgpu-bump-the-afmt-limit-for-cz-st-polaris.patch
queue-4.4/vb2-memops-fix-over-allocation-of-frame-vectors.patch
queue-4.4/drm-i915-cleanup-phys-status-page-too.patch
queue-4.4/toshiba_acpi-fix-regression-caused-by-hotkey-enabling-value.patch
queue-4.4/pinctrl-single-fix-pcs_parse_bits_in_pinctrl_entry-to-use-__ffs-than-ffs.patch
queue-4.4/usb-hcd-out-of-bounds-access-in-for_each_companion.patch
queue-4.4/ib-security-restrict-use-of-the-write-interface.patch
queue-4.4/iwlwifi-mvm-fix-memory-leak-in-paging.patch
queue-4.4/drm-qxl-fix-cursor-position-with-non-zero-hotspot.patch
queue-4.4/asoc-dapm-make-sure-we-have-a-card-when-displaying-component-widgets.patch
queue-4.4/nl80211-check-netlink-protocol-in-socket-release-notification.patch
queue-4.4/asm-generic-futex-re-enable-preemption-in-futex_atomic_cmpxchg_inatomic.patch
queue-4.4/drm-radeon-add-a-quirk-for-a-xfx-r9-270x.patch
queue-4.4/alsa-hda-add-pci-id-for-intel-broxton-t.patch
queue-4.4/drm-amdkfd-uninitialized-variable-in-dbgdev_wave_control_set_registers.patch
queue-4.4/mm-hwpoison-fix-wrong-num_poisoned_pages-accounting.patch
queue-4.4/s390-pci-add-extra-padding-to-function-measurement-block.patch
queue-4.4/videobuf2-v4l2-verify-planes-array-in-buffer-dequeueing.patch
queue-4.4/iwlwifi-pcie-lower-the-debug-level-for-rsa-semaphore-access.patch
queue-4.4/crypto-sha1-mb-use-corrcet-pointer-while-completing-jobs.patch
queue-4.4/x86-apic-handle-zero-vector-gracefully-in-clear_vector_irq.patch
queue-4.4/workqueue-fix-ghost-pending-flag-while-doing-mq-io.patch
queue-4.4/regulator-core-fix-nested-locking-of-supplies.patch
queue-4.4/revert-drm-radeon-disable-runtime-pm-on-px-laptops-without-dgpu-power-control.patch
queue-4.4/cpufreq-intel_pstate-fix-processing-for-turbo-activation-ratio.patch
queue-4.4/dm-cache-metadata-fix-read_lock-macros-and-cleanup-write_lock-macros.patch
queue-4.4/drm-nouveau-core-use-vzalloc-for-allocating-ramht.patch
queue-4.4/arm-omap2-hwmod-fix-updating-of-sysconfig-register.patch
queue-4.4/arm64-update-pte_rdonly-in-set_pte_at-for-prot_none-permission.patch
queue-4.4/alsa-hda-don-t-trust-the-reported-actual-power-state.patch
queue-4.4/drm-radeon-fix-initial-connector-audio-value.patch
queue-4.4/input-gtco-fix-crash-on-detecting-device-without-endpoints.patch
queue-4.4/crypto-ccp-prevent-information-leakage-on-export.patch
queue-4.4/drm-amdgpu-use-defines-for-crtcs-and-amft-blocks.patch
queue-4.4/drm-radeon-fix-vertical-bars-appear-on-monitor-v2.patch
queue-4.4/drm-amdgpu-fix-regression-on-cik-v2.patch
queue-4.4/ib-mlx5-expose-correct-max_sge_rd-limit.patch
queue-4.4/usb-xhci-applying-xhci_pme_stuck_quirk-to-intel-bxt-b0-host.patch
queue-4.4/lib-lz4-fixed-zram-with-lz4-on-big-endian-machines.patch
queue-4.4/x86-mce-avoid-using-object-after-free-in-genpool.patch
queue-4.4/dmaengine-dw-fix-master-selection.patch
queue-4.4/arm64-honour-pte_write-in-set_pte_at-for-kernel-mappings.patch
queue-4.4/kvm-x86-do-not-leak-guest-xcr0-into-host-interrupt-handlers.patch
queue-4.4/powerpc-update-cpu_user_features2-in-scan_features.patch
queue-4.4/crypto-talitos-fix-crash-in-talitos_cra_init.patch
queue-4.4/alsa-hda-realtek-add-alc3234-headset-mode-for-optiplex-9020m.patch
queue-4.4/futex-handle-unlock_pi-race-gracefully.patch
queue-4.4/edac-i7core-sb_edac-don-t-return-notify_bad-from-mce_decoder-callback.patch
queue-4.4/perf-intel-pt-fix-segfault-tracing-transactions.patch
queue-4.4/regulator-core-fix-regulator_lock_supply-regression.patch
queue-4.4/cxl-keep-irq-mappings-on-context-teardown.patch
queue-4.4/drm-i915-fix-race-condition-in-intel_dp_destroy_mst_connector.patch
queue-4.4/v4l2-dv-timings.h-fix-polarity-for-4k-formats.patch
queue-4.4/cgroup-cpuset-replace-cpuset_post_attach_flush-with-cgroup_subsys-post_attach-callback.patch
queue-4.4/iommu-dma-restore-scatterlist-offsets-correctly.patch
queue-4.4/asoc-rt5640-correct-the-digital-interface-data-select.patch
queue-4.4/futex-acknowledge-a-new-waiter-in-counter-before-plist.patch
queue-4.4/drm-dp-mst-get-validated-port-ref-in-drm_dp_update_payload_part1.patch
queue-4.4/netlink-don-t-send-netlink_urelease-for-unbound-sockets.patch
queue-4.4/memcg-relocate-charge-moving-from-attach-to-post_attach.patch
queue-4.4/x86-mm-xen-suppress-hugetlbfs-in-pv-guests.patch
queue-4.4/i2c-cpm-fix-build-break-due-to-incompatible-pointer-types.patch
queue-4.4/efi-fix-out-of-bounds-read-in-variable_matches.patch
queue-4.4/assoc_array-don-t-call-compare_object-on-a-node.patch
queue-4.4/iommu-amd-fix-checking-of-pci-dma-aliases.patch
queue-4.4/xhci-fix-10-second-timeout-on-removal-of-pci-hotpluggable-xhci-controllers.patch
queue-4.4/videobuf2-core-check-user-space-planes-array-in-dqbuf.patch
queue-4.4/asoc-s3c24xx-use-const-snd_soc_component_driver-pointer.patch
queue-4.4/arm-omap2-fix-up-interconnect-barrier-initialization-for-dra7.patch
queue-4.4/drm-loongson-3-doesn-t-fully-support-wc-memory.patch
queue-4.4/drm-radeon-forbid-mapping-of-userptr-bo-through-radeon-device-file.patch
queue-4.4/usb-xhci-fix-wild-pointers-in-xhci_mem_cleanup.patch
queue-4.4/xhci-resume-usb-3-roothub-first.patch
queue-4.4/dmaengine-pxa_dma-fix-the-maximum-requestor-line.patch
queue-4.4/kvm-arm-arm64-handle-forward-time-correction-gracefully.patch
queue-4.4/revert-regulator-core-fix-nested-locking-of-supplies.patch
queue-4.4/dmaengine-hsu-correct-use-of-channel-status-register.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]