Re: new module to check constant memory for corruption

From: Valdis . Kletnieks
Date: Sat Apr 12 2014 - 23:08:23 EST


On Sun, 13 Apr 2014 03:33:10 +0200, Alexander.Kleinsorge@xxxxxx said:

> printk(KERN_EMERG MODNAME "error: const kernel memory is broken (%08lx != 0), please reboot!", g_SumLast);

Make a list of all the things that can dynamically modify kernel text while
it's running, starting with the alternatives code, and adding in the various
tracing and debugging tools, and ask yourself if KERN_EMERG is the right
choice here...

Also, that printk is in the wrong place - it only fires if somebody reads
the /proc file, and it *should* trigger as soon as practical after a
problem has been detected.

Bonus points for computing what percent of single, double, triple, and
other error syndromes your xor detects (hint - what is the behavior of a
dead row or column of bits?).

Attachment: pgpAOU3pzYkN1.pgp
Description: PGP signature