linux/drivers/hwmon
Kirill A. Shutemov b704871124 hwmon: (coretemp) fix oops on cpu unplug
coretemp tries to access core_data array beyond bounds on cpu unplug if
core id of the cpu if more than NUM_REAL_CORES-1.

BUG: unable to handle kernel NULL pointer dereference at 000000000000013c
IP: [<ffffffffa00159af>] coretemp_cpu_callback+0x93/0x1ba [coretemp]
PGD 673e5a067 PUD 66e9b3067 PMD 0
Oops: 0000 [#1] SMP
CPU 79
Modules linked in: sunrpc cpufreq_ondemand acpi_cpufreq freq_table mperf bnep bluetooth rfkill ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter nf_conntrack_ipv4 nf_defrag_ipv4 ip6_tables xt_state nf_conntrack coretemp crc32c_intel asix tpm_tis pcspkr usbnet iTCO_wdt i2c_i801 microcode mii joydev tpm i2c_core iTCO_vendor_support tpm_bios i7core_edac igb ioatdma edac_core dca megaraid_sas [last unloaded: oprofile]

Pid: 3315, comm: set-cpus Tainted: G        W    3.4.0-rc5+ #2 QCI QSSC-S4R/QSSC-S4R
RIP: 0010:[<ffffffffa00159af>]  [<ffffffffa00159af>] coretemp_cpu_callback+0x93/0x1ba [coretemp]
RSP: 0018:ffff880472fb3d48  EFLAGS: 00010246
RAX: 0000000000000124 RBX: 0000000000000034 RCX: 00000000ffffffff
RDX: 0000000000000000 RSI: 0000000000000046 RDI: 0000000000000246
RBP: ffff880472fb3d88 R08: ffff88077fcd36c0 R09: 0000000000000001
R10: ffffffff8184bc48 R11: 0000000000000000 R12: ffff880273095800
R13: 0000000000000013 R14: ffff8802730a1810 R15: 0000000000000000
FS:  00007f694a20f720(0000) GS:ffff88077fcc0000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 000000000000013c CR3: 000000067209b000 CR4: 00000000000007e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process set-cpus (pid: 3315, threadinfo ffff880472fb2000, task ffff880471fa0000)
Stack:
 ffff880277b4c308 0000000000000003 ffff880472fb3d88 0000000000000005
 0000000000000034 00000000ffffffd1 ffffffff81cadc70 ffff880472fb3e14
 ffff880472fb3dc8 ffffffff8161f48d ffff880471fa0000 0000000000000034
Call Trace:
 [<ffffffff8161f48d>] notifier_call_chain+0x4d/0x70
 [<ffffffff8107f1be>] __raw_notifier_call_chain+0xe/0x10
 [<ffffffff81059d30>] __cpu_notify+0x20/0x40
 [<ffffffff815fa251>] _cpu_down+0x81/0x270
 [<ffffffff815fa477>] cpu_down+0x37/0x50
 [<ffffffff815fd6a3>] store_online+0x63/0xc0
 [<ffffffff813c7078>] dev_attr_store+0x18/0x30
 [<ffffffff811f02cf>] sysfs_write_file+0xef/0x170
 [<ffffffff81180443>] vfs_write+0xb3/0x180
 [<ffffffff8118076a>] sys_write+0x4a/0x90
 [<ffffffff816236a9>] system_call_fastpath+0x16/0x1b
Code: 48 c7 c7 94 60 01 a0 44 0f b7 ac 10 ac 00 00 00 31 c0 e8 41 b7 5f e1 41 83 c5 02 49 63 c5 49 8b 44 c4 10 48 85 c0 74 56 45 31 ff <39> 58 18 75 4e eb 1f 49 63 d7 4c 89 f7 48 89 45 c8 48 6b d2 28
RIP  [<ffffffffa00159af>] coretemp_cpu_callback+0x93/0x1ba [coretemp]
 RSP <ffff880472fb3d48>
CR2: 000000000000013c

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: stable@vger.kernel.org # 3.0+
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
2012-05-01 08:18:05 -07:00
..
pmbus hwmon: (pmbus_core) Fix compiler warning 2012-04-09 12:17:38 -07:00
abituguru3.c hwmon: (abituguru3) Fix multi-line comments 2012-03-18 18:27:12 -07:00
abituguru.c hwmon: (abituguru) Fix checkpatch issues 2012-03-18 18:27:18 -07:00
acpi_power_meter.c hwmon: (acpi_power_meter) Fix compiler warning seen in some configurations 2012-04-09 12:17:37 -07:00
ad7314.c hwmon: (ad7314) Fix build warning 2012-04-22 18:22:53 -07:00
ad7414.c hwmon: (ad7414) Fix multi-line comments 2012-03-18 18:26:58 -07:00
ad7418.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
adcxx.c hwmon: convert drivers/hwmon/* to use module_spi_driver() 2012-03-18 18:26:51 -07:00
adm1021.c hwmon: (adm1021) Fix checkpatch issues 2012-03-18 18:27:19 -07:00
adm1025.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
adm1026.c hwmon: (adm1026) Fix checkpatch issues 2012-03-18 18:27:19 -07:00
adm1029.c hwmon: (adm1029) Fix multi-line comments 2012-03-18 18:27:32 -07:00
adm1031.c hwmon: (adm1031) Fix compiler warning 2012-04-01 10:24:35 -07:00
adm9240.c hwmon: (adm9240) Fix checkpatch issues 2012-03-18 18:27:20 -07:00
ads1015.c hwmon: (ads1015) Fix build warning 2012-04-18 11:15:50 -07:00
ads7828.c hwmon: (ads7828) Fix multi-line comments 2012-03-18 18:27:12 -07:00
ads7871.c hwmon: (ads7871) Fix multi-line comments 2012-03-18 18:27:13 -07:00
adt7411.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
adt7462.c hwmon: (adt7462) Fix checkpatch issues 2012-03-18 18:27:02 -07:00
adt7470.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
adt7475.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
amc6821.c hwmon: (amc6821) Fix multi-line comments 2012-03-18 18:27:14 -07:00
applesmc.c hwmon: (applesmc) Silence uninitialized warnings 2012-03-18 18:27:41 -07:00
asb100.c hwmon: (asb100): Fix checkpatch issues 2012-03-18 18:27:21 -07:00
asc7621.c hwmon: (asc7621) Fix multi-line comments 2012-03-18 18:26:54 -07:00
asus_atk0110.c hwmon: (asus_atk0110) Fix multi-line comments 2012-03-18 18:26:59 -07:00
atxp1.c hwmon: (atxp1) Fix checkpatch issues 2012-03-18 18:27:03 -07:00
coretemp.c hwmon: (coretemp) fix oops on cpu unplug 2012-05-01 08:18:05 -07:00
dme1737.c hwmon: (dme1737) Fix checkpatch issues 2012-03-18 18:27:21 -07:00
ds620.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
ds1621.c hwmon: (ds1621) Fix checkpatch issues 2012-03-18 18:26:51 -07:00
emc6w201.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
emc1403.c hwmon: (emc1403) Fix multi-line comments 2012-03-18 18:27:14 -07:00
emc2103.c hwmon: (emc2103) Fix multi-line comments 2012-03-18 18:27:33 -07:00
exynos4_tmu.c hwmon: convert drivers/hwmon/* to use module_platform_driver() 2011-11-26 09:48:20 -08:00
f71805f.c hwmon: (f71805f) Fix checkpatch issues 2012-03-18 18:26:48 -07:00
f71882fg.c hwmon: (f71882fg) Fix multi-line comments 2012-03-18 18:27:15 -07:00
f75375s.c hwmon: (f75375s) Fix warning message seen in some configurations 2012-04-01 10:24:34 -07:00
fam15h_power.c hwmon: (fam15h_power) Fix pci_device_id array 2012-04-26 08:40:08 -07:00
fschmd.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
g760a.c hwmon: (g760a) Fix multi-line comments 2012-03-18 18:27:16 -07:00
gl518sm.c hwmon: (gl518sm) Fix checkpatch issues 2012-03-18 18:27:22 -07:00
gl520sm.c hwmon: (gl520sm) Fix: do not use assignment in if condition 2012-03-18 18:27:23 -07:00
gpio-fan.c hwmon: replaced strict_str* with kstr* 2012-01-05 08:19:34 -08:00
hwmon-vid.c hwmon: (hwmon-vid) Fix checkpatch issues 2012-03-18 18:27:44 -07:00
hwmon.c hwmon: (hwmon) Fix multi-line comments 2012-03-18 18:26:52 -07:00
i5k_amb.c hwmon: (i5k_amb) fix checkpatch issues 2012-03-18 18:26:30 -07:00
ibmaem.c hwmon: (ibmaem) fix checkpatch issues 2012-03-18 18:26:35 -07:00
ibmpex.c hwmon: (ibmpex) Initialize sysfs attributes 2011-06-17 23:22:27 -07:00
it87.c hwmon: (it87) Constify fixed string arrays 2012-03-18 18:26:58 -07:00
jc42.c hwmon: (jc42) Remove unnecessary device IDs 2012-03-18 18:27:53 -07:00
jz4740-hwmon.c hwmon: (jz4740) Staticise jz4740_hwmon_driver 2011-12-12 08:31:21 -08:00
k8temp.c hwmon: (k8temp) fix checkpatch issues 2012-03-18 18:26:42 -07:00
k10temp.c hwmon: (k10temp) Add support for AMD Trinity CPUs 2012-04-01 10:25:56 -07:00
Kconfig hwmon: (k10temp) Add support for AMD Trinity CPUs 2012-04-01 10:25:56 -07:00
lineage-pem.c hwmon: (lineage-pem) Convert to use devm_kzalloc 2012-03-18 18:27:44 -07:00
lm63.c hwmon: (lm63) Let the user adjust the lookup table 2012-03-23 10:02:19 +01:00
lm70.c hwmon: (lm70) Fix: do not use assignment in if condition 2012-03-18 18:27:40 -07:00
lm73.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
lm75.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
lm75.h hwmon: (lm75) fix checkpatch warnings 2012-01-05 08:19:35 -08:00
lm77.c hwmon: (lm77) Fix checkpatch issues 2012-03-18 18:27:24 -07:00
lm78.c hwmon: (lm78) Fix checkpatch issues 2012-03-18 18:27:24 -07:00
lm80.c hwmon: (lm80) Add detection of NatSemi/TI LM96080 2012-03-18 18:27:43 -07:00
lm83.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
lm85.c hwmon: (lm85) Fix checkpatch issues 2012-03-18 18:27:25 -07:00
lm87.c hwmon: (lm87) Get rid of macro-generated functions 2012-03-18 18:27:42 -07:00
lm90.c hwmon: (lm90) Restore original configuration if probe function fails 2012-03-23 10:02:18 +01:00
lm92.c hwmon: (lm92) Fix checkpatch issues 2012-03-18 18:27:05 -07:00
lm93.c hwmon: (lm93) Fix checkpatch issues 2012-03-18 18:27:06 -07:00
lm95241.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
lm95245.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
ltc4151.c hwmon: (ltc4151) Fix multi-line comments 2012-03-18 18:27:16 -07:00
ltc4215.c hwmon: (ltc4215) Fix multi-line comments 2012-03-18 18:27:02 -07:00
ltc4245.c hwmon: (ltc4245) Fix multi-line comments 2012-03-18 18:27:01 -07:00
ltc4261.c hwmon: (ltc4261) Convert to use devm_kzalloc 2012-03-18 18:27:46 -07:00
Makefile hwmon: Add MCP3021 ADC driver 2012-03-23 10:02:20 +01:00
max1111.c hwmon: (max1111) Fix multi-line comments 2012-03-18 18:27:17 -07:00
max1619.c hwmon: (max1619): Fix checkpatch issues 2012-03-18 18:27:26 -07:00
max1668.c hwmon: (max1668) Fix multi-line comments 2012-03-18 18:27:35 -07:00
max6639.c hwmon: (max6639) Convert to dev_pm_ops 2012-04-01 10:24:08 -07:00
max6642.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
max6650.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
max16065.c hwmon: (max16065) Convert to use devm_kzalloc 2012-03-18 18:27:48 -07:00
mc13783-adc.c MFD changes for 3.4 2012-03-28 13:56:35 -07:00
mcp3021.c hwmon: Add MCP3021 ADC driver 2012-03-23 10:02:20 +01:00
ntc_thermistor.c hwmon: convert drivers/hwmon/* to use module_platform_driver() 2011-11-26 09:48:20 -08:00
pc87360.c hwmon: (pc87360) Fix: do not use assignment in if condition 2012-03-18 18:27:27 -07:00
pc87427.c hwmon: (pc87427) Fix multi-line comments 2012-03-18 18:27:35 -07:00
pcf8591.c hwmon: (pcf8591) Fix checkpatch issues 2012-03-18 18:27:07 -07:00
s3c-hwmon.c hwmon: convert drivers/hwmon/* to use module_platform_driver() 2011-11-26 09:48:20 -08:00
sch56xx-common.c hwmon: (sch56xx) Add support for the integrated watchdog (v2) 2012-03-20 06:42:05 -07:00
sch56xx-common.h hwmon: (sch56xx) Add support for the integrated watchdog (v2) 2012-03-20 06:42:05 -07:00
sch5627.c hwmon: (sch56xx) Add support for the integrated watchdog (v2) 2012-03-20 06:42:05 -07:00
sch5636.c hwmon: (sch56xx) Add support for the integrated watchdog (v2) 2012-03-20 06:42:05 -07:00
sht15.c hwmon: (sht15) fix checkpatch issues 2012-03-18 18:26:36 -07:00
sht21.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
sis5595.c hwmon: (sis5595) Fix checkpatch issues 2012-03-18 18:27:07 -07:00
smm665.c hwmon: (smm665) Convert to use devm_kzalloc 2012-03-18 18:27:47 -07:00
smsc47b397.c hwmon: (smsc47b397) Fix compiler warning 2012-04-09 12:17:36 -07:00
smsc47m1.c hwmon: (smsc47m1) Fix compiler warning 2012-04-09 12:17:38 -07:00
smsc47m192.c hwmon: (smsc47m192) Fix checkpatch issues 2012-03-18 18:27:08 -07:00
thmc50.c hwmon: (thmc50) Fix checkpatch issues 2012-03-18 18:27:10 -07:00
tmp102.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
tmp401.c hwmon changes for v3.4 2012-03-21 10:37:25 -07:00
tmp421.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
twl4030-madc-hwmon.c hwmon: convert drivers/hwmon/* to use module_platform_driver() 2011-11-26 09:48:20 -08:00
ultra45_env.c hwmon: (ultra45_env) Fix checkpatch issues 2012-03-18 18:27:10 -07:00
via686a.c hwmon: (via686a) Fix checkpatch issues 2012-03-18 18:27:28 -07:00
via-cputemp.c HWMON: Convert via-cputemp to x86 cpuid autoprobing 2012-01-26 16:48:12 -08:00
vt1211.c hwmon: (vt1211) Fix: do not use assignment in if condition 2012-03-18 18:27:29 -07:00
vt8231.c hwmon: (vt8231) Fix multi-line comments 2012-03-18 18:26:49 -07:00
w83l785ts.c hwmon: (w83l785ts) Fix multi-line comments 2012-03-18 18:27:38 -07:00
w83l786ng.c hwmon: (w83l786ng) Fix multi-line comments 2012-03-18 18:27:39 -07:00
w83627ehf.c hwmon: (w83627ehf) mark const init data with __initconst instead of __initdata 2012-04-01 10:24:36 -07:00
w83627hf.c hwmon: (w83627hf) Fix checkpatch issues 2012-03-18 18:27:32 -07:00
w83781d.c hwmon: (w83781d) Fix: do not use assignment in if condition 2012-03-18 18:27:37 -07:00
w83791d.c hwmon: (w83791d) Fix checkpatch issues 2012-03-18 18:27:11 -07:00
w83792d.c hwmon: (w83792d) Fix checkpatch issues 2012-03-18 18:27:30 -07:00
w83793.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
w83795.c hwmon: (w83795) Fix multi-line comments 2012-03-23 10:02:18 +01:00
wm831x-hwmon.c hwmon: (wm831x-hwmon) Fix multi-line comments 2012-03-18 18:26:55 -07:00
wm8350-hwmon.c hwmon: (wm8350-hwmon) Constify fixed string array 2012-03-18 18:27:00 -07:00