From 971f4b2b275de1708e67dc3068a4bf996db2ab29 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 6 Nov 2022 05:04:57 +0200 Subject: [PATCH] SetKernelStack should have no_stack_protector attribute --- Architecture/amd64/cpu/GlobalDescriptorTable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Architecture/amd64/cpu/GlobalDescriptorTable.cpp b/Architecture/amd64/cpu/GlobalDescriptorTable.cpp index e19e6ea..1dbb2f9 100644 --- a/Architecture/amd64/cpu/GlobalDescriptorTable.cpp +++ b/Architecture/amd64/cpu/GlobalDescriptorTable.cpp @@ -148,7 +148,7 @@ namespace GlobalDescriptorTable trace("Global Descriptor Table initialized"); } - void SetKernelStack(void *Stack) + __attribute__((no_stack_protector)) void SetKernelStack(void *Stack) { tss[GetCurrentCPU()->ID].StackPointer[0] = (uint64_t)Stack; }