linuxPackages: hardened-config: disable BUG_ON_DATA_CORRUPTION for older kernels

They don't support it.
This commit is contained in:
Jan Malakhovski 2017-09-15 21:07:33 +00:00 committed by Joachim Fasting
parent b37de8b67b
commit 616a7fe237
No known key found for this signature in database
GPG Key ID: 66EAB6B14F6B6E0D

View File

@ -18,6 +18,10 @@ assert (versionAtLeast version "4.9");
# Report BUG() conditions and kill the offending process.
BUG y
${optionalString (versionAtLeast version "4.10") ''
BUG_ON_DATA_CORRUPTION y
''}
${optionalString (stdenv.system == "x86_64-linux") ''
DEFAULT_MMAP_MIN_ADDR 65536 # Prevent allocation of first 64K of memory
@ -66,7 +70,6 @@ DEBUG_NOTIFIERS y
DEBUG_LIST y
DEBUG_SG y
SCHED_STACK_END_CHECK y
BUG_ON_DATA_CORRUPTION y
${optionalString (versionAtLeast version "4.13") ''
REFCOUNT_FULL y