Let's say you have a process that forks every time it has the chance.It launches itself in niceness -20, so it forks faster than you can kill it.Also, it remembers its childrens and it parents, so it can wake them up if you SIG_STOP them.You have an ssh terminal open with a bash. But you can't launch new process, since all the pid are taken.You also have no physical access to the computer.How would you kill them and take back the control of your system? Rebooting would be a last-resort option.Bonus question: after you've fixed the problem, how would you prevent that to happen again?
Theoric: How to kill a forever forking process?
process;fork;malware