Killing processes that don't want to die
<p><pre><code>  Step 1: Install a kernel driver.  
  Step 2: Do blocking IO in the kernel that will never finish.  
  Step 3: Your process is now literally impossible to kill in any way. 
</code></pre>
This works in windows too (for similar drivers).<p>This happens fairly regularly with devices with crappy drivers. If something gets wedged in kernel IO, there is literally nothing you can do to kill it, bar rebooting. IIRC, the kernel won&#x27;t do anything until the IO finishes.<p>When shitty &lt;hardware driver tool&gt; craps out this way, it&#x27;s <i>extremely</i> annoying. I have semi-fond memories of trying all sorts of interesting tools that attach to a process and inject faults to kill a wedged TV-Tuner application when I was in high school. I never found a option that works.<p>Literally zero of the examples here for preventing unkillable processes would work, too. If you can load kernel drivers, you&#x27;re hoseable.