From: Matthias Kruk Date: Sun, 5 Jan 2020 11:28:07 +0000 (+0900) Subject: Add remark about signal handling in user-mode X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=9d3ac4a0cbc281fd43045e2771d61b8e6abf2a57;p=corax Add remark about signal handling in user-mode --- 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 */