Merge pull request #181456 from K900/allow-btf-mismatch

linux: enable MODULE_ALLOW_BTF_MISMATCH

authored by K900 and committed by GitHub 4aca31fd d9159496

+4
+4
pkgs/os-specific/linux/kernel/common-config.nix
··· 45 # aarch64 defconfig since 5.13 46 DEBUG_INFO_REDUCED = whenAtLeast "5.13" (option no); 47 DEBUG_INFO_BTF = whenAtLeast "5.2" (option yes); 48 BPF_LSM = whenAtLeast "5.7" (option yes); 49 DEBUG_KERNEL = yes; 50 DEBUG_DEVRES = no;
··· 45 # aarch64 defconfig since 5.13 46 DEBUG_INFO_REDUCED = whenAtLeast "5.13" (option no); 47 DEBUG_INFO_BTF = whenAtLeast "5.2" (option yes); 48 + # Allow loading modules with mismatched BTFs 49 + # FIXME: figure out how to actually make BTFs reproducible instead 50 + # See https://github.com/NixOS/nixpkgs/pull/181456 for details. 51 + MODULE_ALLOW_BTF_MISMATCH = whenAtLeast "5.18" (option yes); 52 BPF_LSM = whenAtLeast "5.7" (option yes); 53 DEBUG_KERNEL = yes; 54 DEBUG_DEVRES = no;