From 9d3ac4a0cbc281fd43045e2771d61b8e6abf2a57 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sun, 5 Jan 2020 20:28:07 +0900 Subject: [PATCH] Add remark about signal handling in user-mode --- kernel/arch/interrupt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kernel/arch/interrupt.c b/kernel/arch/interrupt.c index 37b7537..40240fd 100644 --- a/kernel/arch/interrupt.c +++ b/kernel/arch/interrupt.c @@ -209,6 +209,14 @@ void _exc_handle(stack_frame_t ctx) break; } + /* + * FIXME: Put stack into a known state before executing certain handlers + * + * Some of the above exceptions may indicate a corrupted stack, and calling + * the handler in user-mode may cause another exception. This may lead to + * processes that are stuck in an infinite-loop and that can't be killed. + */ + /* * Deliver the signal to the currently executing task */ -- 2.47.3