linux/drivers/edac
Borislav Petkov 505422517d x86, msr: Add support for non-contiguous cpumasks
The current rd/wrmsr_on_cpus helpers assume that the supplied
cpumasks are contiguous. However, there are machines out there
like some K8 multinode Opterons which have a non-contiguous core
enumeration on each node (e.g. cores 0,2 on node 0 instead of 0,1), see
http://www.gossamer-threads.com/lists/linux/kernel/1160268.

This patch fixes out-of-bounds writes (see URL above) by adding per-CPU
msr structs which are used on the respective cores.

Additionally, two helpers, msrs_{alloc,free}, are provided for use by
the callers of the MSR accessors.

Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Aristeu Rozanski <aris@redhat.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
LKML-Reference: <20091211171440.GD31998@aftab>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-12-11 10:59:21 -08:00
..
amd64_edac_dbg.c x86, mce: pass mce info to EDAC for decoding 2009-09-14 18:59:17 +02:00
amd64_edac_inj.c amd64_edac: beef up DRAM error injection 2009-10-07 16:51:28 +02:00
amd64_edac.c x86, msr: Add support for non-contiguous cpumasks 2009-12-11 10:59:21 -08:00
amd64_edac.h amd64_edac: bump driver version 2009-12-08 13:38:14 +01:00
amd76x_edac.c edac: fix module initialization on several modules 2nd time 2008-04-29 08:06:26 -07:00
amd8111_edac.c edac: add edac_device_alloc_index() 2009-06-18 13:03:56 -07:00
amd8111_edac.h edac: AMD8111 driver header file 2009-04-02 19:05:03 -07:00
amd8131_edac.c edac: AMD8111 & AMD8131 use dev_name() 2009-05-29 08:40:03 -07:00
amd8131_edac.h edac: AMD8131 driver header file 2009-04-02 19:05:03 -07:00
cell_edac.c edac: add missing __devexit_p() 2009-06-18 13:03:57 -07:00
cpc925_edac.c edac: fix resource size calculation 2009-09-24 07:21:04 -07:00
e7xxx_edac.c edac: fix module initialization on several modules 2nd time 2008-04-29 08:06:26 -07:00
e752x_edac.c trivial: fix typos s/paramter/parameter/ and s/excute/execute/ in documentation and source comments. 2009-06-12 18:01:46 +02:00
edac_core.h edac: add memory types strings for debugging 2009-12-07 19:14:31 +01:00
edac_device_sysfs.c
edac_device.c edac: core: remove completion-wait for complete with rcu_barrier 2009-09-24 07:21:05 -07:00
edac_mc_sysfs.c edac: add DDR3 memory type for MPC85xx EDAC 2009-06-30 18:55:59 -07:00
edac_mc.c edac: add memory types strings for debugging 2009-12-07 19:14:31 +01:00
edac_mce_amd.c edac, mce: update AMD F10h revD check 2009-12-07 19:14:30 +01:00
edac_mce_amd.h EDAC, AMD: carve out MCi_STATUS decoding 2009-09-14 19:01:07 +02:00
edac_module.c
edac_module.h edac: remove unneeded functions and add static accessor 2008-04-29 08:06:26 -07:00
edac_pci_sysfs.c edac: struct device: replace bus_id with dev_name(), dev_set_name() 2009-01-06 15:59:30 -08:00
edac_pci.c edac: core: remove completion-wait for complete with rcu_barrier 2009-09-24 07:21:05 -07:00
edac_stub.c
i3000_edac.c edac: fix module initialization on several modules 2nd time 2008-04-29 08:06:26 -07:00
i3200_edac.c edac: i3200 memory controller driver 2009-09-24 07:21:04 -07:00
i5000_edac.c edac: i5100 fix initialization code 2009-10-29 07:39:30 -07:00
i5100_edac.c edac: i5100: cleanup 2008-07-25 10:53:48 -07:00
i5400_edac.c edac: i5400 fix csrow mapping 2009-10-29 07:39:30 -07:00
i82443bxgx_edac.c edac: make i82443bxgx_edac coexist with intel_agp 2008-10-16 11:21:48 -07:00
i82860_edac.c edac: fix module initialization on several modules 2nd time 2008-04-29 08:06:26 -07:00
i82875p_edac.c pci: use pci_ioremap_bar() in drivers/edac 2009-01-06 15:59:30 -08:00
i82975x_edac.c edac: fix module initialization on several modules 2nd time 2008-04-29 08:06:26 -07:00
Kconfig x86: EDAC: carve out AMD MCE decoding logic 2009-10-02 15:42:19 +02:00
Makefile x86: EDAC: carve out AMD MCE decoding logic 2009-10-02 15:42:19 +02:00
mpc85xx_edac.c edac: i5400 fix missing CONFIG_PCI define 2009-10-29 07:39:30 -07:00
mpc85xx_edac.h edac: add DDR3 memory type for MPC85xx EDAC 2009-06-30 18:55:59 -07:00
mv64x60_edac.c edac: fix resource size calculation 2009-09-24 07:21:04 -07:00
mv64x60_edac.h
pasemi_edac.c pasemi_edac needs to include linux/edac.h 2008-04-29 19:06:57 -07:00
ppc4xx_edac.c edac: new ppc4xx driver module 2009-04-02 19:05:03 -07:00
ppc4xx_edac.h edac: new ppc4xx driver module 2009-04-02 19:05:03 -07:00
r82600_edac.c edac: fix module initialization on several modules 2nd time 2008-04-29 08:06:26 -07:00
x38_edac.c edac: x38 fix mchbar high register addr 2009-07-29 19:10:34 -07:00