From nobody Wed Mar 30 20:05:26 2022 X-Original-To: freebsd-pf@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 45BCB1A5E4E7; Wed, 30 Mar 2022 20:05:37 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KTHVS1hYTz3px3; Wed, 30 Mar 2022 20:05:36 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qt1-x832.google.com with SMTP id c4so19167509qtx.1; Wed, 30 Mar 2022 13:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=+TjSafVoPen3XprD319iQnwrJbIZLuBnXpBclnIGbNI=; b=X3hg6PJDddgLdEayew6ETNJyr4JgD8DKBmC7cWSAxDsuXNrVVOP6rq1IH8nxvFRdjx 6eGCkC4NAOl+EI+3JhFWUQFyRxNjy2C5H9K/0CY+3/tFnGO2NT8bcm7r/kzNLGOwGdxG W52ydUaXOGzuC3Fzl4P/B9yZbVKGW1z0fHBSPW9zI6JK8Me6MWBrGh/1vL3aXPjBcA+y /z3KaBIAgpF9l5+a18Icn64ZmszEsKvRf6SZcaPYZUd1N/RP0NSmf6l/rOOzhTcnTnQi fBAlZykXhAKoW1/B6E2USv8i3Pxj0rGamIeY68MK26o9utP7PMcP9wkU/CMwEMnplzkg 44sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=+TjSafVoPen3XprD319iQnwrJbIZLuBnXpBclnIGbNI=; b=P7oo+zBD0CZtQtBvjT2BGG1BmbWGhikiua5ABTicMjjKwF+6/Syw2ehixuXMWUg9V1 O2uRSwgAYA6yp8OMR7beYClgY7izIRjrzQCU1+60CiRId7NsO5/NHBoHKZQyIQaN2Ag1 kRi7SP0XYwM1qJmbXENP+mO7NVW1Kbw5dnTMJk72WSem7Dl8QmMOmWt8ja7NsFMtMtV9 bB1fIxVb8OcX8rMKlliDwqyP3R6g9UDmbK1siFOy99PXBzUeoImTlFyosJO1nNFxy0iO wVd69VHatAikAHeQdzYUoE1WnJb64lh81EhHU8vfR1MvWGvPYd9tUDEp5qhFHkRtdfqp Jpfg== X-Gm-Message-State: AOAM531EbPAjI0XKoxD8CLjP82t6EDQFqRbVdPOZ2hvM8T9fyb41+x8H xXCnG5X3O8I9O0G98FLHN8UHdC6vMxp+hg== X-Google-Smtp-Source: ABdhPJzYfrFZTy6Ns8ri5wH7XGczAcdF25eP3BIpCK72aM/g3z4MqNb9VH27HHqvlFrb0nEdnWAf1Q== X-Received: by 2002:a05:622a:50b:b0:2e1:deae:22dc with SMTP id l11-20020a05622a050b00b002e1deae22dcmr1201140qtx.359.1648670729381; Wed, 30 Mar 2022 13:05:29 -0700 (PDT) Received: from nuc (198-84-189-58.cpe.teksavvy.com. [198.84.189.58]) by smtp.gmail.com with ESMTPSA id e7-20020ac85987000000b002e1b7fa2201sm17745025qte.56.2022.03.30.13.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 13:05:28 -0700 (PDT) Date: Wed, 30 Mar 2022 16:05:26 -0400 From: Mark Johnston To: Kristof Provost Cc: Marcel Bischoff , stable@freebsd.org, freebsd-pf@freebsd.org Subject: Re: pfctl: Cannot allocate memory. Message-ID: References: <06EB4080-08D2-42DE-BB0D-E0C1CAE0EC2F@herrbischoff.com> List-Id: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pf@freebsd.org X-BeenThere: freebsd-pf@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4KTHVS1hYTz3px3 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=X3hg6PJD; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::832 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-1.02 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_NA(0.00)[freebsd.org]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_MEDIUM(0.66)[0.663]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; NEURAL_HAM_SHORT(-0.98)[-0.982]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::832:from]; MLMMJ_DEST(0.00)[stable,freebsd-pf]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N On Mon, Mar 28, 2022 at 09:44:14AM +0200, Kristof Provost wrote: > On 27 Mar 2022, at 22:11, Marcel Bischoff wrote: > > Hello all, > > > > when updating a table of ~370k entries, PF sometimes refuses to do so and from then on continues to refuse until I reboot the machine. > > > > $ doas pfctl -f /etc/pf.conf > > /etc/pf.conf:27: cannot define table pfbadhost: Cannot allocate memory > > pfctl: Syntax error in config file: pf rules not loaded > > > That sounds a lot like https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260406 Just a heads-up that this is believed to be fixed now in the main branch. The fix should appear in stable/13 and hopefully releng/13.1 shortly. > > My current theory is that this is a bug in the memory allocator somewhere. I do not have the background or time to debug that.