Stack Smashing Protection

This commit is contained in:
2026-03-26 20:14:56 +01:00
parent 0fbaf6d26e
commit 89259ec9b2
4 changed files with 29 additions and 2 deletions
+9
View File
@@ -85,6 +85,15 @@ void thing_main(void* arg)
extern uintptr_t kheap_start;
/* Stack Smashing Protection */
uint64_t __stack_chk_guard = STACK_CHK_GUARD;
void __stack_chk_fail(void)
{
panic(NULL, "SSP: Stask Smashing Detected!!! (very spicy)");
}
/*
* kmain - Kernel entry point
*