From: Andi Kleen Date: Sun, 22 Jul 2007 09:12:32 +0000 (+0200) Subject: x86: Stop MCEs and NMIs during code patching X-Git-Tag: v2.6.23-rc1~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f4e956b313dcccbc7be6f10808952345e3b638c;p=pandora-kernel.git x86: Stop MCEs and NMIs during code patching When a machine check or NMI occurs while multiple byte code is patched the CPU could theoretically see an inconsistent instruction and crash. Prevent this by temporarily disabling MCEs and returning early in the NMI handler. Based on discussion with Mathieu Desnoyers. Cc: Mathieu Desnoyers Cc: Jeremy Fitzhardinge Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed