€•™/Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ3/translations/zh_CN/fault-injection/provoke-crashes”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ3/translations/zh_TW/fault-injection/provoke-crashes”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ3/translations/it_IT/fault-injection/provoke-crashes”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ3/translations/ja_JP/fault-injection/provoke-crashes”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ3/translations/ko_KR/fault-injection/provoke-crashes”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ3/translations/sp_SP/fault-injection/provoke-crashes”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…””}”hh£sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1h¡hhhžhhŸŒM/var/lib/git/docbuild/linux/Documentation/fault-injection/provoke-crashes.rst”h KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ0}] cpoint_name=<> cpoint_type=<> [cpoint_count={>0}]”h]”hŒdinsmod lkdtm.ko [recur_count={>0}] cpoint_name=<> cpoint_type=<> [cpoint_count={>0}]”…””}”hh÷sbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1hõhŸh³h Khh¶hžhubhŒdefinition_list”“”)”}”(hhh]”(hŒdefinition_list_item”“”)”}”(hX recur_count Recursion level for the stack overflow test. By default this is dynamically calculated based on kernel configuration, with the goal of being just large enough to exhaust the kernel stack. The value can be seen at `/sys/module/lkdtm/parameters/recur_count`. ”h]”(hŒterm”“”)”}”(hŒ recur_count”h]”hŒ recur_count”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh³h Khj ubhŒ definition”“”)”}”(hhh]”hÊ)”}”(hXRecursion level for the stack overflow test. By default this is dynamically calculated based on kernel configuration, with the goal of being just large enough to exhaust the kernel stack. The value can be seen at `/sys/module/lkdtm/parameters/recur_count`.”h]”(hŒÕRecursion level for the stack overflow test. By default this is dynamically calculated based on kernel configuration, with the goal of being just large enough to exhaust the kernel stack. The value can be seen at ”…””}”(hj%hžhhŸNh NubhŒtitle_reference”“”)”}”(hŒ*`/sys/module/lkdtm/parameters/recur_count`”h]”hŒ(/sys/module/lkdtm/parameters/recur_count”…””}”(hj/hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j-hj%ubhŒ.”…””}”(hj%hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h Khj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j hŸh³h Khjubj )”}”(hŒ½cpoint_name Where in the kernel to trigger the action. It can be one of INT_HARDWARE_ENTRY, INT_HW_IRQ_EN, INT_TASKLET_ENTRY, FS_SUBMIT_BH, MEM_SWAPOUT, TIMERADD, SCSI_QUEUE_RQ, or DIRECT. ”h]”(j)”}”(hŒ cpoint_name”h]”hŒ cpoint_name”…””}”(hjWhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh³h K hjSubj!)”}”(hhh]”hÊ)”}”(hŒ°Where in the kernel to trigger the action. It can be one of INT_HARDWARE_ENTRY, INT_HW_IRQ_EN, INT_TASKLET_ENTRY, FS_SUBMIT_BH, MEM_SWAPOUT, TIMERADD, SCSI_QUEUE_RQ, or DIRECT.”h]”hŒ°Where in the kernel to trigger the action. It can be one of INT_HARDWARE_ENTRY, INT_HW_IRQ_EN, INT_TASKLET_ENTRY, FS_SUBMIT_BH, MEM_SWAPOUT, TIMERADD, SCSI_QUEUE_RQ, or DIRECT.”…””}”(hjhhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h Khjeubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjSubeh}”(h]”h ]”h"]”h$]”h&]”uh1j hŸh³h K hjhžhubj )”}”(hXcpoint_type Indicates the action to be taken on hitting the crash point. These are numerous, and best queried directly from debugfs. Some of the common ones are PANIC, BUG, EXCEPTION, LOOP, and OVERFLOW. See the contents of `/sys/kernel/debug/provoke-crash/DIRECT` for a complete list. ”h]”(j)”}”(hŒ cpoint_type”h]”hŒ cpoint_type”…””}”(hj†hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh³h K'hj‚ubj!)”}”(hhh]”hÊ)”}”(hXIndicates the action to be taken on hitting the crash point. These are numerous, and best queried directly from debugfs. Some of the common ones are PANIC, BUG, EXCEPTION, LOOP, and OVERFLOW. See the contents of `/sys/kernel/debug/provoke-crash/DIRECT` for a complete list.”h]”(hŒÔIndicates the action to be taken on hitting the crash point. These are numerous, and best queried directly from debugfs. Some of the common ones are PANIC, BUG, EXCEPTION, LOOP, and OVERFLOW. See the contents of ”…””}”(hj—hžhhŸNh Nubj.)”}”(hŒ(`/sys/kernel/debug/provoke-crash/DIRECT`”h]”hŒ&/sys/kernel/debug/provoke-crash/DIRECT”…””}”(hjŸhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j-hj—ubhŒ for a complete list.”…””}”(hj—hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K#hj”ubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj‚ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j hŸh³h K'hjhžhubj )”}”(hŒ­cpoint_count Indicates the number of times the crash point is to be hit before triggering the action. The default is 10 (except for DIRECT, which always fires immediately). ”h]”(j)”}”(hŒ cpoint_count”h]”hŒ cpoint_count”…””}”(hjÇhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh³h K,hjÃubj!)”}”(hhh]”hÊ)”}”(hŒŸIndicates the number of times the crash point is to be hit before triggering the action. The default is 10 (except for DIRECT, which always fires immediately).”h]”hŒŸIndicates the number of times the crash point is to be hit before triggering the action. The default is 10 (except for DIRECT, which always fires immediately).”…””}”(hjØhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K*hjÕubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjÃubeh}”(h]”h ]”h"]”h$]”h&]”uh1j hŸh³h K,hjhžhubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhh¶hžhhŸh³h NubhÊ)”}”(hŒuYou can also induce failures by mounting debugfs and writing the type to /provoke-crash/. E.g.::”h]”hŒtYou can also induce failures by mounting debugfs and writing the type to /provoke-crash/. E.g.:”…””}”(hjøhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K.hh¶hžhubhö)”}”(hŒnmount -t debugfs debugfs /sys/kernel/debug echo EXCEPTION > /sys/kernel/debug/provoke-crash/INT_HARDWARE_ENTRY”h]”hŒnmount -t debugfs debugfs /sys/kernel/debug echo EXCEPTION > /sys/kernel/debug/provoke-crash/INT_HARDWARE_ENTRY”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1hõhŸh³h K1hh¶hžhubhÊ)”}”(hŒ½The special file `DIRECT` will induce the action directly without KPROBE instrumentation. This mode is the only one available when the module is built for a kernel without KPROBEs support::”h]”(hŒThe special file ”…””}”(hjhžhhŸNh Nubj.)”}”(hŒ`DIRECT`”h]”hŒDIRECT”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j-hjubhŒ£ will induce the action directly without KPROBE instrumentation. This mode is the only one available when the module is built for a kernel without KPROBEs support:”…””}”(hjhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K4hh¶hžhubhö)”}”(hŒ{# Instead of having a BUG kill your shell, have it kill "cat": cat <(echo WRITE_RO) >/sys/kernel/debug/provoke-crash/DIRECT”h]”hŒ{# Instead of having a BUG kill your shell, have it kill "cat": cat <(echo WRITE_RO) >/sys/kernel/debug/provoke-crash/DIRECT”…””}”hj4sbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1hõhŸh³h K8hh¶hžhubeh}”(h]”Œ:provoking-crashes-with-linux-kernel-dump-test-module-lkdtm”ah ]”h"]”Œ