summaryrefslogtreecommitdiff
path: root/kernel/smashing.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/smashing.c')
-rw-r--r--kernel/smashing.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/smashing.c b/kernel/smashing.c
index 4757b71..005e784 100644
--- a/kernel/smashing.c
+++ b/kernel/smashing.c
@@ -1,3 +1,4 @@
+#include "kernel/kernel.h"
#include <stdint.h>
// CODE FOR Stack Smashing Protector.
// Do not duplicate with userspace / sys.c
@@ -16,6 +17,6 @@ uintptr_t __stack_chk_guard = STACK_CHK_GUARD;
__attribute__((noreturn))
void __stack_chk_fail(void)
{
- panic(FOOLOS_MODULE_NAME,"Stack smashing detected");
+ kpanic("Stack smashing detected");
}
//