diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-25 21:07:58 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-25 21:07:58 +0100 |
commit | 32a76006683f7b28ae3cc491da37716e002f198e (patch) | |
tree | ab4bf487f675ab1a19b3ad0eac78a0e48f5144e9 /crypto | |
parent | b47711bfbcd4eb77ca61ef0162487b20e023ae55 (diff) |
printk: make printk more robust by not allowing recursion
make printk more robust by allowing recursion only if there's a crash
going on. Also add recursion detection.
I've tested it with an artificially injected printk recursion - instead
of a lockup or spontaneous reboot or other crash, the output was a well
controlled:
[ 41.057335] SysRq : <2>BUG: recent printk recursion!
[ 41.057335] loglevel0-8 reBoot Crashdump show-all-locks(D) tErm Full kIll saK showMem Nice powerOff showPc show-all-timers(Q) unRaw Sync showTasks Unmount shoW-blocked-tasks
also do all this printk-debug logic with irqs disabled.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Reviewed-by: Nick Piggin <npiggin@suse.de>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions