Inject x86 MCEs into Linux
This simple tool injects fake MCEs into a running Linux kernel, to debug or test the kernel's EDAC-handling code specific to x86 and x86_64 platforms.
Real MCEs are internal CPU errors. Handling them correctly can be important to system stability and even prevent physical damage. In contrast, simulated MCEs produced by mce-inject
are purely synthetic: injection happens only at the software level, inside the kernel, and is not visible to the platform hardware or firmware.
A convenient feature of mce-inject
is that the input language used to describe MCEs is similar to the format used in Linux panic messages, with a few extensions. In general, you should be able to pipe in any logged MCE panic to simulate that same MCE.
The target kernel must have the CONFIG_X86_MCE_INJECT
option enabled and the mce-inject
module loaded if it exists.
System | Target | Derivation | Build status |
---|---|---|---|
x86_64-linux | /gnu/store/bmp7lzirya700xv4wr8lw4dx9zgp2lqd-mce-inject-0.0.0-0.4cbe463.drv | ||
x86_64-linux | x86_64-w64-mingw32 | /gnu/store/qi34mdh49hp4v66vyikkv1ps6sak92h1-mce-inject-0.0.0-0.4cbe463.drv | |
x86_64-linux | i686-w64-mingw32 | /gnu/store/b37036vp9jxrhmqb3cc6llnky0wgwl59-mce-inject-0.0.0-0.4cbe463.drv | |
i686-linux | /gnu/store/fan8wkamdd3f8gidslq2729cs3mj71fh-mce-inject-0.0.0-0.4cbe463.drv |
Linter | Message | Location |
---|---|---|
No lint warnings ✓ |