From c3e32a04ae90cbc894b594166396704afdc681e1 Mon Sep 17 00:00:00 2001 From: Izorkin Date: Sun, 6 Oct 2024 23:22:18 +0300 Subject: [PATCH] nixos/dhcpcd: allow jemalloc and mimalloc memory allocators --- nixos/modules/services/networking/dhcpcd.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix index da96b0ca0da3..50780a2473b6 100644 --- a/nixos/modules/services/networking/dhcpcd.nix +++ b/nixos/modules/services/networking/dhcpcd.nix @@ -207,14 +207,14 @@ in config = lib.mkIf enableDHCP { assertions = [ { - # dhcpcd doesn't start properly with malloc ∉ [ libc scudo ] + # dhcpcd doesn't start properly with malloc ∉ [ jemalloc libc mimalloc scudo ] # see https://github.com/NixOS/nixpkgs/issues/151696 assertion = dhcpcd.enablePrivSep - -> lib.elem config.environment.memoryAllocator.provider [ "libc" "scudo" ]; + -> lib.elem config.environment.memoryAllocator.provider [ "jemalloc" "libc" "mimalloc" "scudo" ]; message = '' dhcpcd with privilege separation is incompatible with chosen system malloc. - Currently only the `libc` and `scudo` allocators are known to work. + Currently `graphene-hardened` allocator is known to be broken. To disable dhcpcd's privilege separation, overlay Nixpkgs and override dhcpcd to set `enablePrivSep = false`. '';