~/talk

Introduction to Windows Kernel Mode Debugging

Talkat BSidesSF 2018 · on Sunday, 2018-04-15· [security]
links:none on file
slides:none on file

Practical, hands‑on primer that shows how to reproduce bugs, collect artifacts and find root causes: uses WinDbg connected via a VMware pipe to capture kernel memory dumps and live snapshots, recreates a looping thread that masks as low CPU, a two‑thread deadlock and a BSOD with bugcheck IRQL_NOT_LESS_OR_EQUAL. Uses commands like !analyze -v and !locks to get call stacks and lock owners, demonstrates offending code (infinite loop, nested locks, paged‑pool access at DISPATCH_LEVEL) and confirms fixes (add yields or break conditions, enforce lock ordering, use try/except and non‑paged memory).

AI-written summary · about

  1. 0:00Introduction
  2. 2:25Agenda
  3. 5:00Symbols
  4. 6:05Symbol Server
  5. 6:41First Bluescreen
  6. 7:18Windbg
  7. 7:47Source code
  8. 8:37How to collect BSOD dumps
  9. 9:10How to configure Life Kernel Debugging with VMware
  10. 10:38General approach to software problems
  11. 11:51CPU problem
  12. 16:50Snapshot
  13. 17:23Example
  14. 17:41Looping
  15. 18:00Code Location
  16. 18:43Fixing is not Universal
  17. 19:21deadlock
  18. 20:05costax
  19. 20:31sample code
  20. 21:14get lock information
  21. 22:05match source code location
  22. 22:21fix for developer
  23. 24:10blue screen
  24. 24:55bug check
  25. 25:45kernel
  26. 27:48hack
  27. 28:03conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.