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
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
amd8111_edac.c
amd8111_edac.h
amd8131_edac.c
amd8131_edac.h
cell_edac.c
cpc925_edac.c edac: fix resource size calculation 2009-09-24 07:21:04 -07:00
e7xxx_edac.c
e752x_edac.c
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_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_module.c
edac_module.h
edac_pci_sysfs.c
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
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
i5400_edac.c edac: i5400 fix csrow mapping 2009-10-29 07:39:30 -07:00
i82443bxgx_edac.c
i82860_edac.c
i82875p_edac.c
i82975x_edac.c
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
mv64x60_edac.c edac: fix resource size calculation 2009-09-24 07:21:04 -07:00
mv64x60_edac.h
pasemi_edac.c
ppc4xx_edac.c
ppc4xx_edac.h
r82600_edac.c
x38_edac.c