Centos-kernel-stream-9/drivers/cpufreq
Lucas Zampieri c1384e4985 Merge: cpufreq: exit() callback is optional
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4613

JIRA: https://issues.redhat.com/browse/RHEL-43846  
CVE: CVE-2024-38615

commit b8f85833c05730d631576008daaa34096bc7f3ce  
Author: Viresh Kumar viresh.kumar@linaro.org  
Date: Fri Apr 12 11:19:20 2024 +0530

The exit() callback is optional and shouldn't be called without checking a valid pointer first.

Also, we must clear freq_table pointer even if the exit() callback isn't present.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>   
Fixes: 91a12e91dc ("cpufreq: Allow light-weight tear down and bring up of CPUs")  
Fixes: f339f3541701 ("cpufreq: Rearrange locking in cpufreq_remove_dev()")  
Reported-by: Lizhe <sensor1010@163.com>    
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>   
Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>

Approved-by: Lenny Szubowicz <lszubowi@redhat.com>
Approved-by: David Arcari <darcari@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>

Merged-by: Lucas Zampieri <lzampier@redhat.com>
2024-07-12 14:15:02 +00:00
..
Kconfig cpufreq: Make CONFIG_CPUFREQ_DT_PLATDEV depend on OF 2024-05-01 11:47:20 -04:00
Kconfig.arm cpufreq: arm: Kconfig: Add i.MX7 to supported SoC for ARM_IMX_CPUFREQ_DT 2024-05-01 11:47:24 -04:00
Kconfig.powerpc
Kconfig.x86 cpufreq: amd-pstate: Add a kernel config option to set default mode 2023-09-28 16:10:49 -04:00
Makefile cpufreq: remove s3c24xx drivers 2023-07-27 12:57:47 -04:00
acpi-cpufreq.c cpufreq: acpi: Convert to platform remove callback returning void 2024-05-01 11:47:21 -04:00
amd-pstate-trace.c cpufreq: amd-pstate: Add trace for AMD P-State module 2022-03-24 07:13:05 -04:00
amd-pstate-trace.h cpufreq: amd-pstate: Add more tracepoint for AMD P-State module 2022-06-15 13:56:13 -05:00
amd-pstate-ut.c cpufreq: amd-pstate: remove global header file 2024-06-07 09:49:17 -04:00
amd-pstate.c cpufreq: amd-pstate: Fix the inconsistency in max frequency units 2024-06-07 09:49:17 -04:00
amd-pstate.h cpufreq: amd-pstate: remove global header file 2024-06-07 09:49:17 -04:00
amd_freq_sensitivity.c cpufreq: Introducing CPUFREQ_RELATION_E 2022-06-15 13:56:12 -05:00
armada-8k-cpufreq.c
armada-37xx-cpufreq.c cpufreq: Explicitly include correct DT includes 2024-05-01 11:47:20 -04:00
bmips-cpufreq.c cpufreq: bmips-cpufreq: Use module_init and add module_exit 2023-09-28 11:48:28 -04:00
brcmstb-avs-cpufreq.c cpufreq: brcmstb-avs-cpufreq: Fix -Warray-bounds bug 2024-05-01 11:47:22 -04:00
cppc_cpufreq.c cppc_cpufreq: Fix possible null pointer dereference 2024-06-25 11:45:35 -04:00
cpufreq-dt-platdev.c cpufreq: qcom-nvmem: Introduce cpufreq for ipq95xx 2024-05-01 11:47:25 -04:00
cpufreq-dt.c cpufreq: dt: Convert to platform remove callback returning void 2024-05-01 11:47:20 -04:00
cpufreq-dt.h
cpufreq-nforce2.c
cpufreq.c cpufreq: exit() callback is optional 2024-06-26 12:02:59 -04:00
cpufreq_conservative.c cpufreq: conservative: Simplify the condition of storing 'down_threshold' 2024-05-01 11:47:23 -04:00
cpufreq_governor.c cpufreq: governor: Free dbs_data directly when gov->init() fails 2024-05-01 11:47:23 -04:00
cpufreq_governor.h cpufreq: governor: Use kobject release() method to free dbs_data 2023-01-16 13:52:43 -05:00
cpufreq_governor_attr_set.c cpufreq: Move to_gov_attr_set() to cpufreq.h 2022-06-15 13:56:13 -05:00
cpufreq_ondemand.c cpufreq: ondemand: Use cpumask_var_t for on-stack cpu mask 2023-01-16 17:06:09 -05:00
cpufreq_ondemand.h
cpufreq_performance.c
cpufreq_powersave.c
cpufreq_stats.c cpufreq: stats: Fix buffer overflow detection in trans_stats() 2024-05-01 11:47:24 -04:00
cpufreq_userspace.c cpufreq: userspace: Move is_managed indicator into per-policy structure 2024-05-01 11:47:24 -04:00
davinci-cpufreq.c cpufreq: davinci: Convert to platform remove callback returning void 2024-05-01 11:47:21 -04:00
e_powersaver.c
elanfreq.c
freq_table.c cpufreq: Fix per-policy boost behavior on SoCs using cpufreq_boost_set_sw() 2024-05-01 11:47:25 -04:00
gx-suspmod.c
highbank-cpufreq.c cpufreq: Add __init annotation to module init funcs 2023-07-27 12:57:46 -04:00
ia64-acpi-cpufreq.c
imx-cpufreq-dt.c cpufreq: imx-cpufreq-dt: Convert to platform remove callback returning void 2024-05-01 11:47:21 -04:00
imx6q-cpufreq.c cpufreq: imx6q: Don't disable 792 Mhz OPP unnecessarily 2024-05-01 11:47:25 -04:00
intel_pstate.c cpufreq: intel_pstate: Fix unchecked HWP MSR access 2024-06-07 09:26:58 -04:00
kirkwood-cpufreq.c cpufreq: kirkwood: Convert to platform remove callback returning void 2024-05-01 11:47:21 -04:00
longhaul.c cpufreq: longhaul: Replace acpi_bus_get_device() 2022-06-15 13:56:13 -05:00
longhaul.h
longrun.c
loongson1-cpufreq.c
loongson2_cpufreq.c cpufreq: loongson2: Remove unused linux/sched.h headers 2021-06-07 17:43:52 +02:00
maple-cpufreq.c cpufreq: Adjust includes to remove of_device.h 2024-04-29 11:38:48 -04:00
mediatek-cpufreq.c cpufreq: mediatek: add support for mt8365 2021-05-20 09:24:59 +05:30
mvebu-cpufreq.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 2) 2024-03-26 19:04:16 -04:00
omap-cpufreq.c cpufreq: omap: Convert to platform remove callback returning void 2024-05-01 11:47:21 -04:00
p4-clockmod.c
pasemi-cpufreq.c cpufreq: Prepare cleanup of powerpc's asm/prom.h 2023-01-16 13:52:44 -05:00
pcc-cpufreq.c cpufreq: pcc: Fix the potentinal scheduling delays in target_index() 2024-05-01 11:47:23 -04:00
pmac32-cpufreq.c cpufreq: pmac32: Use of_property_read_reg() to parse "reg" 2024-05-01 11:47:23 -04:00
pmac64-cpufreq.c cpufreq: Adjust includes to remove of_device.h 2024-04-29 11:38:48 -04:00
powernow-k6.c
powernow-k7.c
powernow-k7.h
powernow-k8.c cpufreq: powernow-k8: Use related_cpus instead of cpus in driver.exit() 2024-05-01 11:47:22 -04:00
powernow-k8.h
powernv-cpufreq.c cpufreq: powernv: Fix init_chip_info initialization in numa=off 2023-03-03 08:14:59 -05:00
ppc_cbe_cpufreq.c cpufreq: Explicitly include correct DT includes 2024-05-01 11:47:20 -04:00
ppc_cbe_cpufreq.h
ppc_cbe_cpufreq_pervasive.c
ppc_cbe_cpufreq_pmi.c cpufreq: Explicitly include correct DT includes 2024-05-01 11:47:20 -04:00
pxa2xx-cpufreq.c
pxa3xx-cpufreq.c
qcom-cpufreq-hw.c cpufreq: qcom-cpufreq-hw: add support for 4 freq domains 2024-05-01 11:47:22 -04:00
qcom-cpufreq-nvmem.c cpufreq: qcom-nvmem: Preserve PM domain votes in system suspend 2024-05-01 11:47:25 -04:00
qoriq-cpufreq.c cpufreq: qoriq: Convert to platform remove callback returning void 2024-05-01 11:47:21 -04:00
raspberrypi-cpufreq.c cpufreq: raspberrypi: Convert to platform remove callback returning void 2024-05-01 11:47:21 -04:00
s3c64xx-cpufreq.c
s5pv210-cpufreq.c cpufreq: Introducing CPUFREQ_RELATION_E 2022-06-15 13:56:12 -05:00
sa1110-cpufreq.c
sc520_freq.c cpufreq: sc520_freq: add 'fallthrough' to one case 2021-05-21 18:52:13 +02:00
scmi-cpufreq.c cpufreq: scmi: Add support to parse domain-id using #power-domain-cells 2024-02-28 11:58:44 -05:00
scpi-cpufreq.c cpufreq: scpi: Convert to platform remove callback returning void 2024-05-01 11:47:20 -04:00
sh-cpufreq.c cpufreq: sh: Remove unused linux/sched.h headers 2021-06-07 17:38:26 +02:00
sparc-us2e-cpufreq.c
sparc-us3-cpufreq.c
spear-cpufreq.c cpufreq: Adjust includes to remove of_device.h 2024-04-29 11:38:48 -04:00
speedstep-centrino.c
speedstep-ich.c
speedstep-lib.c
speedstep-lib.h
speedstep-smi.c
sti-cpufreq.c cpufreq: Explicitly include correct DT includes 2024-05-01 11:47:20 -04:00
sun50i-cpufreq-nvmem.c Merge: update cpufreq to match Linux v6.4 2024-01-18 10:16:20 -05:00
tegra20-cpufreq.c cpufreq: Adjust includes to remove of_device.h 2024-04-29 11:38:48 -04:00
tegra124-cpufreq.c cpufreq: Adjust includes to remove of_device.h 2024-04-29 11:38:48 -04:00
tegra186-cpufreq.c cpufreq: tegra186: Convert to platform remove callback returning void 2024-05-01 11:47:21 -04:00
tegra194-cpufreq.c cpufreq: tegra194: add online/offline hooks 2024-05-01 11:47:22 -04:00
ti-cpufreq.c cpufreq: ti-cpufreq: Add opp support for am62p5 SoCs 2024-05-01 11:47:24 -04:00
vexpress-spc-cpufreq.c cpufreq: vexpress: Convert to platform remove callback returning void 2024-05-01 11:47:20 -04:00