From edd0d2f2e9faac642096caf3250b2b21364135bd Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Sat, 16 Sep 2017 00:20:41 +0200 Subject: [PATCH] hardened-config: additional refcount checking --- pkgs/os-specific/linux/kernel/hardened-config.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/os-specific/linux/kernel/hardened-config.nix b/pkgs/os-specific/linux/kernel/hardened-config.nix index 5711779eb869..cf2b223a8863 100644 --- a/pkgs/os-specific/linux/kernel/hardened-config.nix +++ b/pkgs/os-specific/linux/kernel/hardened-config.nix @@ -68,6 +68,10 @@ DEBUG_SG y SCHED_STACK_END_CHECK y BUG_ON_DATA_CORRUPTION y +${optionalString (versionAtLeast version "4.13") '' + REFCOUNT_FULL y +''} + # Perform usercopy bounds checking. HARDENED_USERCOPY y