Tiezhu Yang 6933c11fb5 LoongArch: Do not kill the task in die() if notify_die() returns NOTIFY_STOP
If notify_die() returns NOTIFY_STOP, honor the return value from the
handler chain invocation in die() and return without killing the task
as, through a debugger, the fault may have been fixed. It makes sense
even if ignoring the event will make the system unstable: by allowing
access through a debugger it has been compromised already anyway. It
makes our port consistent with x86, arm64, riscv and csky.

Commit 20c0d2d44029 ("[PATCH] i386: pass proper trap numbers to die
chain handlers") may be the earliest of similar changes.

Link: https://lore.kernel.org/r/43DDF02E.76F0.0078.0@novell.com/
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2023-08-25 23:40:26 +08:00
..
2023-08-13 08:56:24 -07:00
2023-07-06 10:06:04 -07:00
2023-08-17 14:38:39 +02:00
2023-07-01 21:12:32 -07:00
2023-06-28 20:35:21 -07:00
2023-08-12 09:18:47 -07:00
2023-07-24 14:50:02 +02:00
2023-06-29 16:34:12 -07:00
2023-08-12 09:18:47 -07:00
2023-06-29 16:34:12 -07:00
2023-07-12 16:28:53 -07:00
2023-08-19 08:32:16 +02:00
2023-08-18 19:26:53 +02:00
2023-08-03 09:06:38 -07:00
2023-08-12 09:18:47 -07:00