diff options
author | Clemens Fruhwirth <clemens@endorphin.org> | 2018-06-23 14:39:13 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2018-06-25 16:55:42 +0200 |
commit | 43a737b81cd3f41f1df0f4f0bef25e048ac9155a (patch) | |
tree | 9061fc069fe7f12f56bad9b1d2df333374dc4c14 /pkgs/os-specific/linux/spl | |
parent | 01847b7c5f961d869e6823e54bbfe19eab077034 (diff) |
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.
Diffstat (limited to 'pkgs/os-specific/linux/spl')
-rw-r--r-- | pkgs/os-specific/linux/spl/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/spl/default.nix b/pkgs/os-specific/linux/spl/default.nix index 778f00d2a95d7..af3df245fe67c 100644 --- a/pkgs/os-specific/linux/spl/default.nix +++ b/pkgs/os-specific/linux/spl/default.nix @@ -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 |