From e75ad93afcd34a7ed472d64fb2944560ad9cad4e Mon Sep 17 00:00:00 2001 From: Mahesh Salgaonkar Date: Wed, 11 Jun 2014 14:18:02 +0530 Subject: [PATCH] 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 Signed-off-by: Benjamin Herrenschmidt --- Reading git-format-patch failed