linux/arch/x86/kernel/cpu/cpufreq
Thomas Renninger 557a701c16 [CPUFREQ] Fix use after free of struct powernow_k8_data
Easy fix for a regression introduced in 2.6.31.

On managed CPUs the cpufreq.c core will call driver->exit(cpu) on the
managed cpus and powernow_k8 will free the core's data.

Later driver->get(cpu) function might get called trying to read out the
current freq of a managed cpu and the NULL pointer check does not work on
the freed object -> better set it to NULL.

->get() is unsigned and must return 0 as invalid frequency.

Reference:
http://bugzilla.kernel.org/show_bug.cgi?id=14391

Signed-off-by: Thomas Renninger <trenn@suse.de>
Tested-by: Michal Schmidt <mschmidt@redhat.com>
CC: stable@kernel.org
Signed-off-by: Dave Jones <davej@redhat.com>
2010-01-13 10:55:15 -05:00
..
acpi-cpufreq.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu 2009-12-14 09:58:24 -08:00
cpufreq-nforce2.c [CPUFREQ] Make cpufreq-nforce2 less obnoxious 2009-02-24 22:47:32 -05:00
e_powersaver.c Merge branch 'core/percpu' into percpu-cpumask-x86-for-linus-2 2009-03-27 17:28:43 +01:00
elanfreq.c [CPUFREQ] checkpatch cleanups for elanfreq 2009-02-24 22:47:28 -05:00
gx-suspmod.c [CPUFREQ] checkpatch cleanups for gx-suspmod 2009-02-24 22:47:29 -05:00
Kconfig CPUFREQ: Mark e_powersaver driver as EXPERIMENTAL and DANGEROUS 2009-06-10 15:22:44 -07:00
longhaul.c ACPICA: Add post-order callback to acpi_walk_namespace 2009-11-24 21:31:10 -05:00
longhaul.h [CPUFREQ] checkpatch cleanups for longhaul 2009-02-24 22:47:29 -05:00
longrun.c [CPUFREQ] checkpatch cleanups for longrun 2009-02-24 22:47:29 -05:00
Makefile [CPUFREQ] Change link order of x86 cpufreq modules 2009-02-24 22:47:32 -05:00
p4-clockmod.c [CPUFREQ] add atom family to p4-clockmod 2009-05-26 12:04:50 -04:00
powernow-k6.c [CPUFREQ] powernow-k6: set transition latency value so ondemand governor can be used 2009-11-24 13:33:33 -05:00
powernow-k7.c [ACPI/CPUFREQ] Introduce bios_limit per cpu cpufreq sysfs interface 2009-11-24 13:33:34 -05:00
powernow-k7.h [CPUFREQ] cpufreq: remove CVS keywords 2008-05-19 18:17:49 -04:00
powernow-k8.c [CPUFREQ] Fix use after free of struct powernow_k8_data 2010-01-13 10:55:15 -05:00
powernow-k8.h [CPUFREQ] Powernow-k8: support family 0xf with 2 low p-states 2009-07-06 21:38:29 -04:00
sc520_freq.c [CPUFREQ] checkpatch cleanups for sc520 2009-02-24 22:47:29 -05:00
speedstep-centrino.c [CPUFREQ] cpumask: avoid cpumask games in arch/x86/kernel/cpu/cpufreq/speedstep-centrino.c 2009-06-15 11:49:43 -04:00
speedstep-ich.c [CPUFREQ] use an enum for speedstep processor identification 2009-11-24 13:33:34 -05:00
speedstep-lib.c [CPUFREQ] use an enum for speedstep processor identification 2009-11-24 13:33:34 -05:00
speedstep-lib.h [CPUFREQ] use an enum for speedstep processor identification 2009-11-24 13:33:34 -05:00
speedstep-smi.c [CPUFREQ] use an enum for speedstep processor identification 2009-11-24 13:33:34 -05:00