[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BMFBPXND3DWQNRB6C7D21":3,"skill-same:01M69BMFBPXND3DWQNRB6C7D21":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":22,"linkOnly":23,"markdownContent":24,"markdownBody":25,"frontMatter":26,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M69BMFBPXND3DWQNRB6C7D21","windbg-kernel-lock-deadlock-triage",null,"Use when kernel threads block on driver synchronization or Verifier reports a lock-order violation; build an owner\u002Fwaiter graph. Not for treating every watchdog stop as a deadlock or listing every lock type with !locks.","microsoft\u002Fwin-dev-skills","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BM5T5HHSGVF6KZPTNENXK",510,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwindbg\u002Fskills\u002Fwindbg-kernel-lock-deadlock-triage\u002FSKILL.md",[],[19,20,21],"kernel","triage","windbg kernel lock deadlock triage","2026-11-10 10:12:30",false,"---\nname: windbg-kernel-lock-deadlock-triage\ndescription: 'Use when kernel threads block on driver synchronization or Verifier reports a lock-order violation; build an owner\u002Fwaiter graph. Not for treating every watchdog stop as a deadlock or listing every lock type with !locks.'\n---\n\n# Kernel Lock and Deadlock Triage\n\n**Load `windbg-diagnostic-method` first** if it is not already loaded in this\nconversation, and apply it throughout for evidence ranking, hypothesis testing,\nconfidence calibration, independent review, and report validation. This skill\nadds the bug-family-specific commands and evidence requirements.\n\n## Detection\n\nUse kernel thread stacks, synchronization-object evidence, and Driver Verifier\ndeadlock records. A watchdog bugcheck can indicate CPU\u002FDPC progress failures,\nnot necessarily a lock cycle. Establish the actual waits before choosing this\nworkflow.\n\n## Workflow\n\n### 1. Gather owners and waiters\n\n```text\n!locks\n!thread \u003Cethread-address>\n!process 0 7\n```\n\n`!locks` enumerates ERESOURCE information. It is not an inventory of all\npushlocks, fast mutexes, and spinlocks. For other primitives use documented\nprimitive-specific inspection when available, matching symbols for your\ndriver, its source, and recorded acquisition evidence. State missing owners\nexplicitly.\n\n### 2. Inspect recorded lock-order evidence\n\nIf Driver Verifier deadlock detection was enabled and the dump contains its\nrecords:\n\n```text\n!deadlock 1\n```\n\nInspect the reported resources, acquisition sequence, and threads. Verifier\ncan detect an unsafe ordering before a persistent deadlock actually forms.\nAn empty result without the required verification\u002Fhistory is not proof that\nthe lock order is safe. For Verifier setup\u002Fsafety use `windbg-kernel-verifier-triage`.\n\n### 3. Build and test the graph\n\n```text\nthread A holds resource X -> waits for Y owned by B\nthread B holds resource Y -> waits for X owned by A\n```\n\nShow evidence for every edge. Check recursive acquisition, callbacks under\nlocks, I\u002FO completion dependencies, and destruction\u002Frundown paths.\n\nDistinguish:\n\n- A demonstrated cycle or Verifier-reported order inversion.\n- Contention where a runnable owner can progress.\n- Starvation or an owner blocked on a separate request.\n- Spin\u002FIRQL problems, which are not necessarily blocking-lock deadlocks.\n\nIf blocked on an IRP use `windbg-kernel-irp-lifecycle-triage`; if a chain crosses into a\nuser-mode COM\u002FRPC operation use `windbg-user-wait-chain-analysis`. Carry the proven graph\nedges into the next skill rather than starting the same investigation again.\n\n### 4. Localize the driver path\n\nIdentify which call path held one resource while acquiring\u002Fwaiting for another.\nCheck the required IRQL, permitted waits, lock hierarchy, and object lifetime.\nPrivate Windows implementation layouts are not prerequisites; if public\nsymbols and captured state cannot recover an edge, request appropriate\nauthorized evidence and keep the conclusion provisional.\n\n## Fix patterns\n\nUse a consistent acquisition hierarchy, reduce lock scope, avoid unbounded\nwaits\u002Fcross-component callbacks while holding resources, and move potentially\nblocking destruction outside locks where the ownership design permits.\nDo not replace a lock or add a timeout without preserving invariants and\ncompletion\u002Fcancellation semantics.\n\n## Validation\n\nRecord the graph, supported cycle\u002Finversion, and offending driver path.\nTest concurrency, callbacks, teardown, and the same applicable Verifier checks.\nSeparate a demonstrated fix from an unproven contention hypothesis.\n\n## References\n\n- [ERESOURCE locks extension](https:\u002F\u002Flearn.microsoft.com\u002Fwindows-hardware\u002Fdrivers\u002Fdebuggercmds\u002F-locks)\n- [Deadlock extension](https:\u002F\u002Flearn.microsoft.com\u002Fwindows-hardware\u002Fdrivers\u002Fdebuggercmds\u002F-deadlock)\n- [Driver Verifier deadlock detection](https:\u002F\u002Flearn.microsoft.com\u002Fwindows-hardware\u002Fdrivers\u002Fdevtest\u002Fdeadlock-detection)\n- [Thread inspection](https:\u002F\u002Flearn.microsoft.com\u002Fwindows-hardware\u002Fdrivers\u002Fdebuggercmds\u002F-thread)\n\n## Feedback\n\nFollow `FEEDBACK.md` and report reviewed, sanitized feedback to\n[WinDbg-Feedback](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinDbg-Feedback\u002Fissues).\nInclude `windbg-kernel-lock-deadlock-triage` and the package version from `plugin.json`; no\nautomatic dump, lock-history transcript, or driver-source upload.\n","# Kernel Lock and Deadlock Triage\n\n**Load `windbg-diagnostic-method` first** if it is not already loaded in this\nconversation, and apply it throughout for evidence ranking, hypothesis testing,\nconfidence calibration, independent review, and report validation. This skill\nadds the bug-family-specific commands and evidence requirements.\n\n## Detection\n\nUse kernel thread stacks, synchronization-object evidence, and Driver Verifier\ndeadlock records. A watchdog bugcheck can indicate CPU\u002FDPC progress failures,\nnot necessarily a lock cycle. Establish the actual waits before choosing this\nworkflow.\n\n## Workflow\n\n### 1. Gather owners and waiters\n\n```text\n!locks\n!thread \u003Cethread-address>\n!process 0 7\n```\n\n`!locks` enumerates ERESOURCE information. It is not an inventory of all\npushlocks, fast mutexes, and spinlocks. For other primitives use documented\nprimitive-specific inspection when available, matching symbols for your\ndriver, its source, and recorded acquisition evidence. State missing owners\nexplicitly.\n\n### 2. Inspect recorded lock-order evidence\n\nIf Driver Verifier deadlock detection was enabled and the dump contains its\nrecords:\n\n```text\n!deadlock 1\n```\n\nInspect the reported resources, acquisition sequence, and threads. Verifier\ncan detect an unsafe ordering before a persistent deadlock actually forms.\nAn empty result without the required verification\u002Fhistory is not proof that\nthe lock order is safe. For Verifier setup\u002Fsafety use `windbg-kernel-verifier-triage`.\n\n### 3. Build and test the graph\n\n```text\nthread A holds resource X -> waits for Y owned by B\nthread B holds resource Y -> waits for X owned by A\n```\n\nShow evidence for every edge. Check recursive acquisition, callbacks under\nlocks, I\u002FO completion dependencies, and destruction\u002Frundown paths.\n\nDistinguish:\n\n- A demonstrated cycle or Verifier-reported order inversion.\n- Contention where a runnable owner can progress.\n- Starvation or an owner blocked on a separate request.\n- Spin\u002FIRQL problems, which are not necessarily blocking-lock deadlocks.\n\nIf blocked on an IRP use `windbg-kernel-irp-lifecycle-triage`; if a chain crosses into a\nuser-mode COM\u002FRPC operation use `windbg-user-wait-chain-analysis`. Carry the proven graph\nedges into the next skill rather than starting the same investigation again.\n\n### 4. Localize the driver path\n\nIdentify which call path held one resource while acquiring\u002Fwaiting for another.\nCheck the required IRQL, permitted waits, lock hierarchy, and object lifetime.\nPrivate Windows implementation layouts are not prerequisites; if public\nsymbols and captured state cannot recover an edge, request appropriate\nauthorized evidence and keep the conclusion provisional.\n\n## Fix patterns\n\nUse a consistent acquisition hierarchy, reduce lock scope, avoid unbounded\nwaits\u002Fcross-component callbacks while holding resources, and move potentially\nblocking destruction outside locks where the ownership design permits.\nDo not replace a lock or add a timeout without preserving invariants and\ncompletion\u002Fcancellation semantics.\n\n## Validation\n\nRecord the graph, supported cycle\u002Finversion, and offending driver path.\nTest concurrency, callbacks, teardown, and the same applicable Verifier checks.\nSeparate a demonstrated fix from an unproven contention hypothesis.\n\n## References\n\n- [ERESOURCE locks extension](https:\u002F\u002Flearn.microsoft.com\u002Fwindows-hardware\u002Fdrivers\u002Fdebuggercmds\u002F-locks)\n- [Deadlock extension](https:\u002F\u002Flearn.microsoft.com\u002Fwindows-hardware\u002Fdrivers\u002Fdebuggercmds\u002F-deadlock)\n- [Driver Verifier deadlock detection](https:\u002F\u002Flearn.microsoft.com\u002Fwindows-hardware\u002Fdrivers\u002Fdevtest\u002Fdeadlock-detection)\n- [Thread inspection](https:\u002F\u002Flearn.microsoft.com\u002Fwindows-hardware\u002Fdrivers\u002Fdebuggercmds\u002F-thread)\n\n## Feedback\n\nFollow `FEEDBACK.md` and report reviewed, sanitized feedback to\n[WinDbg-Feedback](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinDbg-Feedback\u002Fissues).\nInclude `windbg-kernel-lock-deadlock-triage` and the package version from `plugin.json`; no\nautomatic dump, lock-history transcript, or driver-source upload.\n",{"name":5,"description":7},"main","5ce74fa89c49ca353c6ab03bd5889aa519aa9e5e","plugins\u002Fwindbg\u002Fskills\u002Fwindbg-kernel-lock-deadlock-triage",41,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-09 06:27:16",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add microsoft\u002Fwin-dev-skills --skill windbg-kernel-lock-deadlock-triage",{"tool":42,"command":43},"bunx","bunx skills add microsoft\u002Fwin-dev-skills --skill windbg-kernel-lock-deadlock-triage",{"tool":45,"command":46},"pnpm","pnpm dlx skills add microsoft\u002Fwin-dev-skills --skill windbg-kernel-lock-deadlock-triage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwindbg\u002Fskills\u002Fwindbg-kernel-lock-deadlock-triage\u002FSKILL.md",true,[],[51,69,77,87,96,106],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":65,"publishedAt":22},"01M69BN1YCR77KBJHPBB1KBXAB","sample-skill","Sample skill used to test the catalog tooling. Use when testing CI. Not for real work.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Flocal-plugin\u002Fplugins\u002Fsample\u002Fskills\u002Fsample-skill\u002FSKILL.md",[57,62],{"categoryNo":58,"categoryName":59,"taxonomyType":60,"taxonomyTypeDesc":61},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":63,"categoryName":64,"taxonomyType":60,"taxonomyTypeDesc":61},"01JBSEEDCAT000000000000023","Skill与智能体开发",[66,67,68],"sample skill","testing","test",{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":22},"01M69BMZFWAWBRE71DKPHT282F","windbg-user-wait-chain-analysis","Use when an app, service, or user-mode driver host is unresponsive on locks, COM\u002FRPC, I\u002FO, or another process; follow the blocker chain. Not for a crash solely from an exception stack.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwindbg\u002Fskills\u002Fwindbg-user-wait-chain-analysis\u002FSKILL.md",[],[76],"windbg user wait chain analysis",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":22},"01M69BMX6T725RH7TZK7RDP8YQ","windbg-user-virtual-memory-exhaustion","Use when a native app, service, or user-mode driver host allocation fails; distinguish VA exhaustion, fragmentation, and commit pressure. Not for managed .NET heap growth, proving a leak from one snapshot, or corruption.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwindbg\u002Fskills\u002Fwindbg-user-virtual-memory-exhaustion\u002FSKILL.md",[],[84,85,86],"memory","windbg user virtual memory exhaustion","commit",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":22},"01M69BMTTSCGTJ6W18YNYDWEVE","windbg-user-ttd-reverse-debugging-triage","Use when an app, service, or user-mode driver host TTD recording is available and earlier calls, writes, or lifetimes matter. Not for kernel replay or history from a normal dump.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwindbg\u002Fskills\u002Fwindbg-user-ttd-reverse-debugging-triage\u002FSKILL.md",[],[20,94,95,19],"debugging","windbg user ttd reverse debugging triage",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":22},"01M69BMRKH2MF07GD357PK5S4Q","windbg-user-mutex-held-across-co-await","Use when app, service, or user-mode driver C++ coroutine code holds a thread-affine lock across suspension and later hangs or fails. Not for all coroutine crashes or choosing lock performance.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwindbg\u002Fskills\u002Fwindbg-user-mutex-held-across-co-await\u002FSKILL.md",[],[103,104,105],"windbg user mutex held across co await","performance","code",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":22},"01M69BMPFX7S3D729F1N89AAP6","windbg-user-heap-corruption-investigation","Use when an app, service, or user-mode driver host heap fails or Application Verifier detects corruption; inspect history and bounds. Not for kernel pool corruption or ordinary OOM.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwindbg\u002Fskills\u002Fwindbg-user-heap-corruption-investigation\u002FSKILL.md",[],[113,19],"windbg user heap corruption investigation"]