Skip to content

Commit

Permalink
linuxPackages: hardened-config: disable BUG_ON_DATA_CORRUPTION for …
Browse files Browse the repository at this point in the history
…older kernels

They don't support it.
  • Loading branch information
oxij authored and joachifm committed Sep 16, 2017
1 parent b37de8b commit 616a7fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/os-specific/linux/kernel/hardened-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 616a7fe

Please sign in to comment.