Patch "Revert "cpufreq: Fix governor module removal race"" has been added to the 4.15-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 "cpufreq: Fix governor module removal race"

to the 4.15-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.15 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 Fri Apr  6 10:01:11 CEST 2018
From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 6 Apr 2018 09:06:53 +0200
Subject: Revert "cpufreq: Fix governor module removal race"

From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

This reverts commit a853301f77b5c4feb5e17aebfd92018269525523 which was
commit a8b149d32b663c1a4105273295184b78f53d33cf upstream.

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

Reported-by: Ben Hutchings <ben.hutchings@xxxxxxxxxxxxxxx>
Cc: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
Cc: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
Cc: Sasha Levin <alexander.levin@xxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/cpufreq/cpufreq.c |    6 ------
 1 file changed, 6 deletions(-)

--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -637,8 +637,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);
 	}
@@ -767,10 +765,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@xxxxxxxxxxxxxxxxxxx are

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



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