1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 14:15:08 +00:00
serenity/Kernel/Arch/x86/common
Idan Horowitz 1950e79d48 Kernel: Eliminate possible KASLR leak by disabling CR4.FSGSBASE
The RDGSBASE userspace instruction allows programs to read the contents
of the gs segment register which contains a kernel pointer to the base
of the current Processor struct.

Since we don't use this instruction in Serenity at the moment, we can
simply disable it for now to ensure we don't break KASLR. Support can
later be restored once proper swapping of the contents of gs is done on
userspace/kernel boundaries.
2022-06-22 07:52:35 +03:00
..
ASM_wrapper.cpp Kernel: Add per platform Processor.h headers 2021-10-14 01:23:08 +01:00
CPU.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
CPUID.cpp Kernel: Rename OSPKU CPUID feature flag to OSPKE 2022-04-08 18:53:42 +01:00
CrashHandler.cpp Kernel: Make handle_crash available to aarch64 2022-04-02 19:34:20 -07:00
InterruptManagement.cpp Kernel: Move IRQController and InterruptManagement to Arch directory 2022-06-02 13:14:12 +01:00
Interrupts.cpp Kernel: Rename idt_init() to initialize_interrupts() 2022-06-02 13:14:12 +01:00
PageDirectory.cpp Kernel: Make MemoryManager compile on aarch64 2022-04-02 19:34:20 -07:00
Processor.cpp Kernel: Eliminate possible KASLR leak by disabling CR4.FSGSBASE 2022-06-22 07:52:35 +03:00
ProcessorInfo.cpp Kernel: Expose cache size for Intel CPUs 2022-05-30 13:41:23 +01:00
SafeMem.cpp Kernel: Move Kernel/Arch/x86/SafeMem.h to Kernel/Arch/SafeMem.h 2022-05-03 21:53:36 +02:00
ScopedCritical.cpp Kernel: Move ScopedCritical + SmapDisabler CPP files into x86 common 2021-10-16 15:43:41 -07:00
SmapDisabler.cpp Kernel: Move ScopedCritical + SmapDisabler CPP files into x86 common 2021-10-16 15:43:41 -07:00
Spinlock.cpp Kernel: Move Arch/x86/Spinlock.h and add stubs for aarch64 2022-05-03 21:53:36 +02:00
TrapFrame.cpp Kernel: Implement InterruptDisabler using generic Processor functions 2022-06-02 13:14:12 +01:00