Files
ladybird/Kernel
Andreas Kling 859e5741ff Kernel: Fix Process use-after-free in Thread finalization
We leak a ref() onto every user process when constructing them,
either via Process::create_user_process(), or via Process::sys$fork().

This ref() is balanced by a corresponding unref() in
Thread::WaitBlockCondition::finalize().

Since kernel processes don't have a leaked ref() on them, this led to
an extra Process::unref() on kernel processes during finalization.
This happened during every boot, with the `init_stage2` process.

Found by turning off kfree() scrubbing. :^)
2021-07-14 22:36:29 +02:00
..
2021-07-14 11:26:34 +04:30
2021-07-11 14:14:51 +02:00
2021-06-24 00:38:23 +02:00
2021-06-28 15:55:00 +02:00
2021-06-24 10:29:09 +02:00
2021-06-24 10:29:09 +02:00
2021-06-24 00:38:23 +02:00
2021-06-24 00:38:23 +02:00
2021-06-24 00:38:23 +02:00
2021-06-24 00:38:23 +02:00
2021-06-04 10:39:41 +02:00