]> git.corax.cc Git - corax/commitdiff
Add remark about signal handling in user-mode
authorMatthias Kruk <m@m10k.eu>
Sun, 5 Jan 2020 11:28:07 +0000 (20:28 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 5 Jan 2020 11:28:07 +0000 (20:28 +0900)
kernel/arch/interrupt.c

index 37b753765b3c29433a60f1f378c67db19eb0482a..40240fddbde1002f25eee4e30d6fa0b3aa187ddb 100644 (file)
@@ -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
                 */