]> git.baikalelectronics.ru Git - kernel.git/commit
exit: Stop poorly open coding do_task_dead in make_task_dead
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 22 Nov 2021 15:51:03 +0000 (09:51 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 13 Dec 2021 18:04:45 +0000 (12:04 -0600)
commit5bf7bae1a5dea87973d962bdec3c7b89a260906c
tree8fd67c59d10bc2e69fb34ce9d36ba91e715e9e57
parenta66ec8fb806ffe73a78a0afa7556f9a87ddd0e9e
exit: Stop poorly open coding do_task_dead in make_task_dead

When the kernel detects it is oops or otherwise force killing a task
while it exits the code poorly attempts to permanently stop the task
from scheduling.

I say poorly because it is possible for a task in TASK_UINTERRUPTIBLE
to be woken up.

As it makes no sense for the task to continue call do_task_dead
instead which actually does the work and permanently removes the task
from the scheduler.  Guaranteeing the task will never be woken
up again.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/exit.c