summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/rtasd.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2011-01-11 20:50:51 +0100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-01-21 04:08:38 +0100
commitd368514c3097a48a109b6ba64e12047106c7473d (patch)
treebdd892bec071fc042f70c1875642175cbcc782cb /arch/powerpc/kernel/rtasd.c
parentpowerpc: Rework pseries machine check handler (diff)
downloadlinux-d368514c3097a48a109b6ba64e12047106c7473d.tar.xz
linux-d368514c3097a48a109b6ba64e12047106c7473d.zip
powerpc: Fix corruption when grabbing FWNMI data
The FWNMI code uses a global buffer without any locks to read the RTAS error information. If two CPUs take a machine check at once then we will corrupt this buffer. Since most FWNMI rtas messages are not of the extended type, we can create a 64bit percpu buffer and use it where possible. If we do receive an extended RTAS log then we fall back to the old behaviour of using the global buffer. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/rtasd.c')
0 files changed, 0 insertions, 0 deletions