title: How to display user-mode stack of current kernel-mode context?
body: <p>Suppose I'm broken into Kernel Debugger, during a system call or an IOCTL that started from user mode. I want to see the full stack - starting from user mode and switching to kernel mode.</p>
  
  <p>I know some of the pieces:</p>
  
  <ul>
  <li>I can list all the processes with <code>!process 0 0</code>, and see the threads inside them. Or, drowse using <code>!dml_proc</code>.</li>
  <li>If I know the current usermode thread, I can switch to it and see the whole start: <code>!thread &lt;usermode_thread&gt; 15</code>.</li>
  </ul>
  
  <p>But how do I tie them together? Specifically:</p>
  
  <ol>
  <li>How do I know the current usermode thread?</li>
  <li>Can I retrieve it programatically, so I can have a one-liner <code>!thread &lt;some_magic&gt; 15</code>?</li>
  </ol>