Hacker News new | ask | show | jobs
by p_l 14 days ago
One day I forgot about SIGSTOP in a FAANG interview when asked how to stop a forkbomb that already exhausted all PIDs but you have a shell already running.

My very dirty trick at last was to abuse the part where forkbomb's code segments should be shared mapping, find out where it is in memory, then do corewars style overwrite with piece of code that would cause the process to exit (corewars classic would be divide by zero).

Nevertheless, I should have used SIGSTOP xD

1 comments

Nice trick, yeah we have had to do a fair bit of that corewars classic method in the safety-critical field .. and yeah, also a fair amount of pkill too ..