provoke-crashes.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. The lkdtm module provides an interface to crash or injure the kernel at
  2. predefined crashpoints to evaluate the reliability of crash dumps obtained
  3. using different dumping solutions. The module uses KPROBEs to instrument
  4. crashing points, but can also crash the kernel directly without KRPOBE
  5. support.
  6. You can provide the way either through module arguments when inserting
  7. the module, or through a debugfs interface.
  8. Usage: insmod lkdtm.ko [recur_count={>0}] cpoint_name=<> cpoint_type=<>
  9. [cpoint_count={>0}]
  10. recur_count : Recursion level for the stack overflow test. Default is 10.
  11. cpoint_name : Crash point where the kernel is to be crashed. It can be
  12. one of INT_HARDWARE_ENTRY, INT_HW_IRQ_EN, INT_TASKLET_ENTRY,
  13. FS_DEVRW, MEM_SWAPOUT, TIMERADD, SCSI_DISPATCH_CMD,
  14. IDE_CORE_CP, DIRECT
  15. cpoint_type : Indicates the action to be taken on hitting the crash point.
  16. It can be one of PANIC, BUG, EXCEPTION, LOOP, OVERFLOW,
  17. CORRUPT_STACK, UNALIGNED_LOAD_STORE_WRITE, OVERWRITE_ALLOCATION,
  18. WRITE_AFTER_FREE,
  19. cpoint_count : Indicates the number of times the crash point is to be hit
  20. to trigger an action. The default is 10.
  21. You can also induce failures by mounting debugfs and writing the type to
  22. <mountpoint>/provoke-crash/<crashpoint>. E.g.,
  23. mount -t debugfs debugfs /mnt
  24. echo EXCEPTION > /mnt/provoke-crash/INT_HARDWARE_ENTRY
  25. A special file is `DIRECT' which will induce the crash directly without
  26. KPROBE instrumentation. This mode is the only one available when the module
  27. is built on a kernel without KPROBEs support.