Add kernel patches
This commit is contained in:
parent
26ca217147
commit
24bcebba8d
1 changed files with 21 additions and 0 deletions
21
nixos/kernel-patches
Normal file
21
nixos/kernel-patches
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
|
||||||
|
kernelPatches = [ {
|
||||||
|
name = "native";
|
||||||
|
patch = null;
|
||||||
|
extraConfig = ''
|
||||||
|
SLAB_FREELIST_RANDOM y
|
||||||
|
SLAB_FREELIST_HARDENED y
|
||||||
|
CC_STACKPROTECTOR_REGULAR n
|
||||||
|
CC_STACKPROTECTOR_STRONG y
|
||||||
|
REFCOUNT_FULL y
|
||||||
|
MODVERSIONS y
|
||||||
|
GENERIC_CPU n
|
||||||
|
MCORE2 y
|
||||||
|
INTEL_RDT y
|
||||||
|
X86_INTEL_USERCOPY y
|
||||||
|
X86_USE_PPRO_CHECKSUM y
|
||||||
|
X86_P6_NOP y
|
||||||
|
X86_INTEL_MPX y
|
||||||
|
KEXEC n
|
||||||
|
'';
|
||||||
|
} ];
|
Loading…
Reference in a new issue