]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Fix potential interrupts during alternative patching
authorZachary Amsden <zach@vmware.com>
Fri, 20 Oct 2006 06:29:04 +0000 (23:29 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 20 Oct 2006 17:26:43 +0000 (10:26 -0700)
commitff188dd5196463557b4bca713664c973accdd300
treeaadebbc601f7132a830d9dc33fc90f83af7bab6a
parent0c8117fd0caa6c692d43d547df11fb0ba17f3971
[PATCH] Fix potential interrupts during alternative patching

Interrupts must be disabled during alternative instruction patching.  On
systems with high timer IRQ rates, or when running in an emulator, timing
differences can result in random kernel panics because of running partially
patched instructions.  This doesn't yet fix NMIs, which requires extricating
the patch code from the late bug checking and is logically separate (and also
less likely to cause problems).

Signed-off-by: Zachary Amsden <zach@vmware.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/alternative.c