mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
linux_hardened: enable slab freelist hardening
This commit is contained in:
parent
1e64aa9518
commit
8ecae36963
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user