]> git.baikalelectronics.ru Git - kernel.git/commit
lkdtm: add debugfs access and loosen KPROBE ties
authorSimon Kagstrom <simon.kagstrom@netinsight.net>
Fri, 5 Mar 2010 21:42:49 +0000 (13:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:32 +0000 (11:26 -0800)
commitc1123c4976479f204325705826c0863203e67663
tree6b1f860991e3dae3fc110e02a1a838eb291b94ee
parent0c945feaa8236aa085829854831a397e1597e700
lkdtm: add debugfs access and loosen KPROBE ties

Add adds a debugfs interface and additional failure modes to LKDTM to
provide similar functionality to the provoke-crash driver submitted here:

  http://lwn.net/Articles/371208/

Crashes can now be induced either through module parameters (as before)
or through the debugfs interface as in provoke-crash.

The patch also provides a new "direct" interface, where KPROBES are not
used, i.e., the crash is invoked directly upon write to the debugfs
file. When built without KPROBES configured, only this mode is available.

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Cc: M. Mohan Kumar <mohan@in.ibm.com>
Cc: Americo Wang <xiyou.wangcong@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>,
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/fault-injection/provoke-crashes.txt [new file with mode: 0644]
drivers/misc/lkdtm.c
lib/Kconfig.debug