STAMINA - Linux Kernel Stack Monitoring tool https://github.com/milabs/stamina by Ilya Matveychikov
On reasonably modern x86-64 (>=4.9) and arm64 (>=4.14) kernels with a normal kernel config (VMAP_STACK=y), task stacks are mapped with guard pages around them, so overflows are not a concern.
-
-
Nowadays at least on x86-64 the percpu exception stacks (used for double faults and NMIs and such) are allocated with guard holes, too; see percpu_setup_exception_stacks() (but that's newer, only in >=5.2)
-
if you want to monitor kernel stack usage is on your system, you can turn on CONFIG_DEBUG_STACK_USAGE; that prints into dmesg which task has used the maximum amount of stack space and how much is left, and you can dump the maximum stack usage of each task via sysrq
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.