powerpc: Don't silently handle machine checks from userspace
authorAnton Blanchard <anton@samba.org>
Tue, 11 Jan 2011 19:48:14 +0000 (19:48 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 21 Jan 2011 03:08:37 +0000 (14:08 +1100)
commite49b1fae0ba4d06b29bd753a961abb447566bf4a
tree8b532df858222afa91cdc03360ee47603d69638b
parentdfb5509f8f49ffd52922060c830978ed5a9b9731
powerpc: Don't silently handle machine checks from userspace

If a machine check comes from userspace we send a SIGBUS to the task and
fail to printk anything.

If we are taking machine checks due to bad hardware we want to know about
it right away. Furthermore if we don't complain loudly then it will look
a lot like a bug in the userspace application, potentially causing a lot
of confusion.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/traps.c