Disable fortify and stackprotector hardening for spl/zfs.

Linux 4.16 introduces a stackprotector detection script that returns
different results for the kernel compilation run and the spl/zfs
compilation run, as the setting for hardening are different. This
results in a broken ABI between spl/zfs and the compiled kernel,
breaking ZFS. Also disabling the fortify and stackprotector hardening,
as we do for the kernel, fixes that.
This commit is contained in:
Clemens Fruhwirth
2018-06-25 16:55:42 +02:00
committed by Robin Gloster
parent 01847b7c5f
commit 43a737b81c
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ let
nativeBuildInputs = [ autoreconfHook ] ++ kernel.moduleBuildDependencies;
hardeningDisable = [ "pic" ];
hardeningDisable = [ "fortify" "stackprotector" "pic" ];
preConfigure = ''
substituteInPlace ./module/spl/spl-generic.c --replace /usr/bin/hostid hostid