Extra Credit

Linux Kernel Debugging Tools

Official docs outline

11 sections
  1. Dev tools index

    Index of kernel testing and debugging tools.

  2. KASAN

    Kernel Address Sanitizer for memory errors.

  3. KCSAN

    Kernel Concurrency Sanitizer detecting data races with watchpoints and compile-time instrumentation.

  4. KMSAN

    Kernel Memory Sanitizer detecting uses of uninitialized memory with shadow and origin tracking.

  5. UBSAN

    Undefined behavior sanitizer in the kernel.

  6. KUnit

    In-kernel unit testing framework.

  7. kselftest

    In-tree kernel selftests run with make kselftest, including TAP output and test targets.

  8. kmemleak

    Kernel memory leak detector that scans for unreferenced objects via debugfs.

  9. KCOV

    Coverage collection for fuzzing.

  10. KGDB

    Kernel debugging with GDB over serial using kgdboc and kgdbwait.

  11. Kdump

    Crash dump capture using kexec, crashkernel reservation and vmcore analysis.

Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.

All 29