Leanpub Header

Skip to main content

Hands-On Kernel Debugging with GDB, KGDB and WinDbg

Hands-On Kernel Debugging with GDB, KGDB and WinDbg

Build a reproducible QEMU kernel crash lab, drive Linux with GDB and KGDB, analyse vmcore dumps, and debug Windows drivers with WinDbg — using a repeatable method, not guesswork.

Minimum price

$19.00

$29.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
About

About

About the Book

Kernel debugging is a separate discipline, not a variation on application debugging: the target is not the program, symbols are decoupled from the boot image and relocated by KASLR, crashes destroy the evidence, and concurrency is invisible in a single stopped frame. This book teaches the method that follows from those facts — reproduce, observe, localise, explain, fix and verify, prevent — and then applies it tool by tool.

You will build a QEMU/KVM lab with a debug-enabled kernel and a scripted panic trigger, then learn GDB's remote serial protocol, QEMU's gdbstub, and KGDB over serial and network. You will configure kdump, compress dumps with makedumpfile, and open vmcore files with the crash utility and GDB directly, then read them for task lists, slab and page state, corruption signatures, and timer and workqueue history.

Windows gets full treatment: WinDbg over KDNET and local debugging, symbol handling, the extension model, and driver work including IRQL violations, IRP and device stack analysis, KMDF and UMDF, Driver Verifier, and pool tagging, with a complete worked session on a KMDF echo driver.

Later chapters cover ftrace, eBPF with bpftrace, and perf; lockdep, KCSAN, and memory ordering for concurrency and deadlock bugs; lockdown, Secure Boot, module signing, and protecting crash dumps; production observability with sosreport, coredumpctl, and bounded eBPF payloads; and automation through kselftest, KUnit, syzkaller, scripted GDB bisection, and CI pipelines. Four end-to-end walkthroughs show a mislabelled NULL dereference, a lost wakeup, a driver that fails only under load, and a field crash analysed remotely, followed by a reusable runbook.

Every chapter closes with a recap checklist and a diagnostic exercise.

Share this book

Author

About the Author

SouthStone Publications

SouthStone Publications is a publisher dedicated to advancing practical knowledge across web development, IT engineering, programming, artificial intelligence, and cybersecurity. Working closely with a network of subject matter experts and industry practitioners, SouthStone produces books, guides, and training programs designed to translate complex technical concepts into clear, actionable knowledge. Its catalog has supported developers, engineers, analysts, and security professionals around the world in building more resilient, scalable, and well-architected systems.

Proud to be the first publisher in the Cybersecurity category on LeanPub, SouthStone Publications is committed to bridging the gap between deep technical expertise and accessible education, helping practitioners at every stage of their careers stay ahead in a rapidly evolving digital landscape.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub