mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-24 18:51:36 +01:00
This commit is contained in:
19
index.html
19
index.html
@@ -22742,18 +22742,29 @@ fork() return = 13039</pre>
|
||||
<p>DANGER! Only run this on your host if you have saved all data you care about! Better run it inside an emulator! QEMU v4.0.0 <a href="#user-mode-simulation">user mode</a> is not safe enough either because it is very native does not limit guest memory, so it will still blow up the host!</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>So without further ado, let’s rock:</p>
|
||||
<p>So without further ado, let’s rock with either:</p>
|
||||
</div>
|
||||
<div class="literalblock">
|
||||
<div class="content">
|
||||
<pre>./run --eval-after './posix/fork_bomb.out danger'</pre>
|
||||
<pre>./run --eval-after './posix/fork_bomb.out danger'
|
||||
./run --eval-after './fork_bomb.sh danger'</pre>
|
||||
</div>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>Source: <a href="https://github.com/cirosantilli/linux-kernel-module-cheat/blob/master/userland/posix/fork_bomb.c">userland/posix/fork_bomb.c</a></p>
|
||||
<p>Sources:</p>
|
||||
</div>
|
||||
<div class="ulist">
|
||||
<ul>
|
||||
<li>
|
||||
<p><a href="https://github.com/cirosantilli/linux-kernel-module-cheat/blob/master/userland/posix/fork_bomb.c">userland/posix/fork_bomb.c</a></p>
|
||||
</li>
|
||||
<li>
|
||||
<p><a href="https://github.com/cirosantilli/linux-kernel-module-cheat/blob/master/rootfs_overlay/lkmc/fork_bomb.sh">rootfs_overlay/lkmc/fork_bomb.sh</a></p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>Outcome on LKMC 762cd8d601b7db06aa289c0fca7b40696299a868 + 1: after a few seconds of an unresponsive shell, we get a visit form the <a href="#linux-out-of-memory-killer">Linux out-of-memory killer</a>, and the system is restored!</p>
|
||||
<p>Outcome for the C version on LKMC 762cd8d601b7db06aa289c0fca7b40696299a868 + 1: after a few seconds of an unresponsive shell, we get a visit form the <a href="#linux-out-of-memory-killer">Linux out-of-memory killer</a>, and the system is restored!</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user