DISABLE WRITE PROTECTION
https://jm33.me/we-can-no-longer-easily-disable-cr0-wp-write-protection.html
https://wiki.osdev.org/CPU_Registers_x86-64
https://github.com/milabs/khook/blob/master/khook/x86/hook.c
// SRC: https://github.com/m0nad/Diamorphine/blob/master/diamorphine.c
#if LINUX_VERSION_CODE > KERNEL_VERSION(4, 16, 0)
static inline void
write_cr0_forced(unsigned long val)
{
unsigned long __force_order;
asm volatile(
"mov %0, %%cr0"
: "+r"(val), "+m"(__force_order));
}
#endif