linux-hardened: enable page alloc randomization

New in 5.2
This commit is contained in:
Joachim Fasting 2019-07-18 14:00:06 +02:00
parent 8bf23fbe44
commit 44d541078f
No known key found for this signature in database
GPG Key ID: 5C204DF675C90294

View File

@ -83,6 +83,9 @@ optionalAttrs (stdenv.hostPlatform.platform.kernelArch == "x86_64") {
SLAB_FREELIST_HARDENED = whenAtLeast "4.14" yes;
# Randomize page allocator when page_alloc.shuffle=1
SHUFFLE_PAGE_ALLOCATOR = whenAtLeast "5.2" yes;
# Allow enabling slub/slab free poisoning with slub_debug=P
SLUB_DEBUG = yes;