]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix corruption when grabbing FWNMI data
authorAnton Blanchard <anton@samba.org>
Tue, 11 Jan 2011 19:50:51 +0000 (19:50 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 21 Jan 2011 03:08:38 +0000 (14:08 +1100)
commit5f4bc80742bc0a94334122de9468162dca6e9310
treebdd892bec071fc042f70c1875642175cbcc782cb
parent20aaf7e9e3882f22a5c1471a227a982bd31c86a9
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>
arch/powerpc/platforms/pseries/ras.c