Add adds a debugfs interface and additional failure modes to LKDTM to
provide similar functionality to the provoke-crash driver submitted here:
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 <email@example.com>
Cc: M. Mohan Kumar <firstname.lastname@example.org>
Cc: Americo Wang <email@example.com>
Cc: David Woodhouse <firstname.lastname@example.org>
Cc: Ingo Molnar <email@example.com>
Cc: "Eric W. Biederman" <firstname.lastname@example.org>,
Signed-off-by: Andrew Morton <email@example.com>
Signed-off-by: Linus Torvalds <firstname.lastname@example.org>