News for hackers. Stuff that matters.
Re:RotaJakiro: A long live secret backdoor with 0 VT detection by philsnow on Thursday April 29, 2021 @04:06PM (#26986040)
> The proper fix is to keep some PID values allocated. Do not free a PID value until all the children of it have died.

Any fork bomb at all will exhaust the pid graveyard, wouldn't it? You could change pid_t to 64 bits but then the pid graveyard would take a lot of memory in the kernel.

Re:RotaJakiro: A long live secret backdoor with 0 VT detection by souprock on Thursday April 29, 2021 @04:41PM (#26986426)
For an actual fork bomb, nothing ends up in the PID graveyard. No process ever dies. The fork bomb by itself is a problem, even without a PID graveyard. Process limits are required to stop a fork bomb.

For other situations, just keep the direct parents. Worst case, that doubles the PID usage.