All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch "Revert "cpufreq: Fix governor module removal race"" has been added to the 4.14-stable tree
@ 2018-04-06  8:05 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2018-04-06  8:05 UTC (permalink / raw)
  To: gregkh, alexander.levin, ben.hutchings, rafael.j.wysocki, viresh.kumar
  Cc: stable, stable-commits


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

    Revert "cpufreq: Fix governor module removal race"

to the 4.14-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-cpufreq-fix-governor-module-removal-race.patch
and it can be found in the queue-4.14 subdirectory.

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


>From foo@baz Fri Apr  6 10:03:41 CEST 2018
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: Fri, 6 Apr 2018 09:06:23 +0200
Subject: Revert "cpufreq: Fix governor module removal race"

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

This reverts commit 0049457bfde661cf47410eaacad65845c9a2bb45 which was
commit a8b149d32b663c1a4105273295184b78f53d33cf upstream.

The backport was not correct, so just drop it entirely.

Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/cpufreq/cpufreq.c |    6 ------
 1 file changed, 6 deletions(-)

--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -631,8 +631,6 @@ static int cpufreq_parse_governor(char *
 			*governor = t;
 			err = 0;
 		}
-		if (t && !try_module_get(t->owner))
-			t = NULL;
 
 		mutex_unlock(&cpufreq_governor_mutex);
 	}
@@ -761,10 +759,6 @@ static ssize_t store_scaling_governor(st
 		return -EINVAL;
 
 	ret = cpufreq_set_policy(policy, &new_policy);
-
-	if (new_policy.governor)
-		module_put(new_policy.governor->owner);
-
 	return ret ? ret : count;
 }
 


Patches currently in stable-queue which might be from gregkh@linuxfoundation.org are

queue-4.14/rdma-ucma-check-af-family-prior-resolving-address.patch
queue-4.14/netfilter-x_tables-add-and-use-xt_check_proc_name.patch
queue-4.14/phy-qcom-ufs-add-module_license-tag.patch
queue-4.14/powerpc-64s-fix-lost-pending-interrupt-due-to-race-causing-lost-update-to-irq_happened.patch
queue-4.14/usb-serial-ftdi_sio-add-support-for-harman-firmwarehubemulator.patch
queue-4.14/crypto-caam-fix-null-dereference-at-error-path.patch
queue-4.14/revert-base-arch_topology-fix-section-mismatch-build-warnings.patch
queue-4.14/vt-change-sgr-21-to-follow-the-standards.patch
queue-4.14/percpu-add-__gfp_noretry-semantics-to-the-percpu-balancing-path.patch
queue-4.14/fix-slab-name-biovec-1-21-12.patch
queue-4.14/xfrm_user-uncoditionally-validate-esn-replay-attribute-struct.patch
queue-4.14/netfilter-x_tables-make-allocation-less-aggressive.patch
queue-4.14/usb-dwc2-improve-gadget-state-disconnection-handling.patch
queue-4.14/crypto-x86-cast5-avx-fix-ecb-encryption-when-long-sg-follows-short-one.patch
queue-4.14/crypto-arm-arm64-fix-random-regeneration-of-s_shipped.patch
queue-4.14/dev-mem-avoid-overwriting-err-in-read_mem.patch
queue-4.14/bluetooth-fix-missing-encryption-refresh-on-security-request.patch
queue-4.14/crypto-ccp-return-an-actual-key-size-from-rsa-max_size-callback.patch
queue-4.14/i2c-i2c-stm32f7-fix-no-check-on-returned-setup.patch
queue-4.14/revert-arm-dts-omap3-n900-fix-the-audio-codec-s-reset-pin.patch
queue-4.14/arm-omap-fix-sram-w-x-mapping.patch
queue-4.14/mtd-jedec_probe-fix-crash-in-jedec_read_mfr.patch
queue-4.14/input-i8042-add-lenovo-thinkpad-l460-to-i8042-reset-list.patch
queue-4.14/perf-hwbp-simplify-the-perf-hwbp-code-fix-documentation.patch
queue-4.14/bitmap-fix-memset-optimization-on-big-endian-systems.patch
queue-4.14/input-alps-fix-trackstick-detection-on-thinkpad-l570-and-latitude-7370.patch
queue-4.14/rdma-ucma-check-that-device-is-connected-prior-to-access-it.patch
queue-4.14/media-usbtv-prevent-double-free-in-error-case.patch
queue-4.14/crypto-inside-secure-fix-clock-management.patch
queue-4.14/arm-dts-dra76-evm-set-powerhold-property-for-tps65917.patch
queue-4.14/ipc-shm.c-add-split-function-to-shm_vm_ops.patch
queue-4.14/revert-arm-dts-am335x-pepper-fix-the-audio-codec-s-reset-pin.patch
queue-4.14/staging-comedi-ni_mio_common-ack-ai-fifo-error-interrupts.patch
queue-4.14/alsa-usb-audio-add-native-dsd-support-for-teac-ud-301.patch
queue-4.14/alsa-pcm-potential-uninitialized-return-values.patch
queue-4.14/rdma-ucma-fix-use-after-free-access-in-ucma_close.patch
queue-4.14/revert-cpufreq-fix-governor-module-removal-race.patch
queue-4.14/btrfs-fix-unexpected-cow-in-run_delalloc_nocow.patch
queue-4.14/arm-8746-1-vfp-go-back-to-clearing-vfp_current_hw_state.patch
queue-4.14/xfrm-refuse-to-insert-32-bit-userspace-socket-policies-on-64-bit-systems.patch
queue-4.14/rdma-rdma_cm-fix-use-after-free-race-with-process_one_req.patch
queue-4.14/x86-platform-uv-bau-add-apic-idt-entry.patch
queue-4.14/ceph-only-dirty-iter_iovec-pages-for-direct-read.patch
queue-4.14/netfilter-bridge-ebt_among-add-more-missing-match-size-checks.patch
queue-4.14/crypto-lrw-free-rctx-ext-with-kzfree.patch
queue-4.14/crypto-testmgr-fix-incorrect-values-in-pkcs-1-test-vector.patch
queue-4.14/l2tp-fix-races-with-ipv4-mapped-ipv6-addresses.patch
queue-4.14/rdma-ucma-ensure-that-cm_id-exists-prior-to-access-it.patch
queue-4.14/mtd-nand-atmel-fix-get_sectorsize-function.patch
queue-4.14/arm-dts-sun6i-a31s-bpi-m2-improve-pmic-properties.patch
queue-4.14/powerpc-64s-fix-i-side-slb-miss-bad-address-handler-saving-nonvolatile-gprs.patch
queue-4.14/rdma-ucma-introduce-safer-rdma_addr_size-variants.patch
queue-4.14/mei-remove-dev_err-message-on-an-unsupported-ioctl.patch
queue-4.14/arm-dts-sun6i-a31s-bpi-m2-add-missing-regulators.patch
queue-4.14/net-hns-fix-ethtool-private-flags.patch
queue-4.14/rdma-ucma-check-that-device-exists-prior-to-accessing-it.patch
queue-4.14/netfilter-drop-template-ct-when-conntrack-is-skipped.patch
queue-4.14/net-xfrm-use-preempt-safe-this_cpu_read-in-ipcomp_alloc_tfms.patch
queue-4.14/input-i8042-enable-mux-on-sony-vaio-vgn-cs-series-to-fix-touchpad.patch
queue-4.14/alsa-pcm-use-dma_bytes-as-size-parameter-in-dma_mmap_coherent.patch
queue-4.14/revert-ip6_vti-adjust-vti-mtu-according-to-mtu-of-lower-device.patch
queue-4.14/parport_pc-add-support-for-wch-ch382l-pci-e-single-parallel-port-card.patch
queue-4.14/serial-8250-add-nuvoton-npcm-uart.patch
queue-4.14/usb-serial-ftdi_sio-add-rt-systems-vx-8-cable.patch
queue-4.14/usb-serial-cp210x-add-eldat-easywave-rx09-id.patch
queue-4.14/crypto-ahash-fix-early-termination-in-hash-walk.patch
queue-4.14/partitions-msdos-unable-to-mount-ufs-44bsd-partitions.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-06  8:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-06  8:05 Patch "Revert "cpufreq: Fix governor module removal race"" has been added to the 4.14-stable tree gregkh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.