Re: [PATCH] MIPS: Remove noreturn attribute for die()

From: Maciej W. Rozycki
Date: Tue Aug 08 2023 - 12:04:22 EST


On Tue, 1 Aug 2023, Tiezhu Yang wrote:

> If notify_die() returns NOTIFY_STOP, there is no need to call
> make_task_dead(), we can remove noreturn attribute for die(),
> this is similar with arm64, riscv and csky.

So you want to keep a task alive that has caused a kernel oops in the
process context in this case, right? What purpose would it be for and
what condition causes `notify_die' to return NOTIFY_STOP? IOW why is
there no need to call `make_task_dead' in this case?

Maciej