]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/book3s: Add stack overflow check in machine check handler.
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Wed, 11 Jun 2014 08:48:02 +0000 (14:18 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Jun 2014 09:15:13 +0000 (19:15 +1000)
commit2ce88a5075a5fc683084120b71a2b5a57a8d1135
treea5fe95a4867a0e8047872b6b792cf317477a56d1
parent0dc3a07d5b272cbe9ec99ece60812eaa9c4d6ac3
powerpc/book3s: Add stack overflow check in machine check handler.

Currently machine check handler does not check for stack overflow for
nested machine check. If we hit another MCE while inside the machine check
handler repeatedly from same address then we get into risk of stack
overflow which can cause huge memory corruption. This patch limits the
nested MCE level to 4 and panic when we cross level 4.

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/exceptions-64s.S