1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-30 06:49:43 +01:00

disable BPF subsystem

This commit is contained in:
zimward 2024-08-13 15:43:53 +02:00
parent 96687127e0
commit daa8c09f85
No known key found for this signature in database
GPG key ID: 4CAC61D6A482FCD9
2 changed files with 10 additions and 10 deletions

View file

@ -108,14 +108,14 @@ with (lib.kernel.whenHelpers version);
DRM_NOUVEAU = no;
DRM_AMDGPU = no;
#fix btf info missing from vmlinux
CONFIG_BPF = yes;
BPF_SYSCALL = yes;
BPF_JIT = yes;
# BPF_JIT_ALWAYS_ON = yes;
BPF_JIT_DEFAULT_ON = yes;
PAHOLE_HAS_BTF_TAG = yes;
DEBUG_INFO_BTF = yes;
DEBUG_INFO_BTF_MODULES = yes;
#pahole causes OOM(6GiB> including zram) on build, disableing it as a mitigation
CONFIG_BPF = lib.mkForce no;
BPF_SYSCALL = lib.mkForce no;
BPF_JIT = lib.mkForce no;
BPF_JIT_ALWAYS_ON = lib.mkForce no;
BPF_JIT_DEFAULT_ON = lib.mkForce no;
PAHOLE_HAS_BTF_TAG = lib.mkForce no;
DEBUG_INFO_BTF = lib.mkForce no;
DEBUG_INFO_BTF_MODULES = lib.mkForce no;
}

View file

@ -50,7 +50,7 @@ buildLinux (
inherit lib;
version = pver;
};
autoModules = false;
# autoModules = false;
kernelPatches = kernelPatches ++ map apply_patch patches;
extraMeta = {