linux_hardened: enable slab freelist hardening

This commit is contained in:
Joachim Fasting 2017-11-15 21:39:13 +01:00
parent 1e64aa9518
commit 8ecae36963
No known key found for this signature in database
GPG Key ID: 5C204DF675C90294

View File

@ -82,6 +82,10 @@ HARDENED_USERCOPY y
# Randomize allocator freelists.
SLAB_FREELIST_RANDOM y
${optionalString (versionAtLeast version "4.14") ''
SLAB_FREELIST_HARDENED y
''}
# Wipe higher-level memory allocations on free() with page_poison=1
PAGE_POISONING y
PAGE_POISONING_NO_SANITY y