From nobody Mon Mar 28 14:13:30 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 63B9A1A46BD6; Mon, 28 Mar 2022 14:13:33 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KRvn92NlWz4tZY; Mon, 28 Mar 2022 14:13:33 +0000 (UTC) (envelope-from kp@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648476813; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=icg9Re1CBBJBXwAqzcOtq5cB/xSjPQEyMfysHWzGDzI=; b=yFDZFvfMyzW51YHcgNiBjvj6eX+3KQhmSfu19KGnOPkmcnzuAmgMvlJfquYvahsiSb5OEV 4GipJpQ/dkObkBuWX+VqLMvgTiaGd2VGTEZdW51Zbg0U6HwNjgA6cJpSkgaUhhaUc4kzuL hkN3EaVhlsesdABfH1oiUyZ4L9D49CrWJNPYhX4hhCyO1YeVAkWs+4rHKuWxZoMTUnTYvO NVhOt3tWIFMYk6mS4Td0zfEhU2F1P/F7kTYHzyQsSq5fsvdEfTckSBmYqezZFAx6lpr4gw 2OefrgK6O8jTZLokKi5d59oxYa78bQJuGrVFJdX0Ed+T/SIKrNEf5R8cH13g1A== Received: from venus.codepro.be (venus.codepro.be [5.9.86.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.codepro.be", Issuer "R3" (verified OK)) (Authenticated sender: kp) by smtp.freebsd.org (Postfix) with ESMTPSA id 19B1C251AD; Mon, 28 Mar 2022 14:13:33 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: by venus.codepro.be (Postfix, authenticated sender kp) id 5FD304AEEF; Mon, 28 Mar 2022 16:13:31 +0200 (CEST) From: Kristof Provost To: Marcel Bischoff Cc: stable@freebsd.org, freebsd-pf@freebsd.org Subject: Re: pfctl: Cannot allocate memory. Date: Mon, 28 Mar 2022 16:13:30 +0200 X-Mailer: MailMate (1.14r5852) Message-ID: <9184152E-52BF-460A-97C1-CA10E2FDCE03@FreeBSD.org> In-Reply-To: <8BBDA16D-207B-4704-86F5-F75F2A44AD7B@herrbischoff.com> References: <06EB4080-08D2-42DE-BB0D-E0C1CAE0EC2F@herrbischoff.com> <8BBDA16D-207B-4704-86F5-F75F2A44AD7B@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 Content-Transfer-Encoding: quoted-printable ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648476813; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=icg9Re1CBBJBXwAqzcOtq5cB/xSjPQEyMfysHWzGDzI=; b=EVKeQQM9qCqoUu+LlU0YKKYrA6pB2m65pfe9A0qgWMy0+j/8sormZ+4Uv50m1enS4EIyxg yWdP5XkXgjWfiwpwEGr3F4OD0J0wwCxCGfm+orN5U6wCurG4ncvn0K3od8Ts5+ilNfv6ZQ mBKyazDapE/zrPYYCue20ABFMUfwXM9ixg2M2eU5GR2ggC20yIdH5A0L7NGNA4wHDs57Jy aTVUeSXbVTCTGsKgttxWQT8aXfyq6viQ1aHbONTrera7JVT6GNaU3tfJUEEvXiW7N4NLbq 29AgcMqNsq/5mpIW70NXZSiAIVJmm84kDuptxZuVtlaMWBVRhgb8HzlPTXsC+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648476813; a=rsa-sha256; cv=none; b=lOcwUcIHeDjj6fWGTlc2fk5dgUH69AQzsDAwYA1pBQ7gZR04zb1+cmgMwTXJMrOrKqHqCl JUjCKFr4WOhbGdKaZaQ7ofIZ8LljZSBcK5h+didKVpxbeQbPYP1Lros1ocvMOS7f+WHC7M IRABMJOIU9ngTv+L0kmj4uTP8ZjS3kErDwUZnA/gWb4H2wqK575qwvRylh5/JOOHGbFaYv eZLk9hHs1zb9YS9dmZCyR0MXFVmtBpFErCxjR5cpOdPUJMEJfXwuoLOJT2OPmMTntdoIdE QsCWE4iVUVGSwqX4lCeGoCUe7+dQbMK8Or50Nni4sAsgYlFsbvlfSO4BDmH4TQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 28 Mar 2022, at 14:14, Marcel Bischoff wrote: >> On 28. Mar 2022, at 09:44, 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 memor= y >>> pfctl: Syntax error in config file: pf rules not loaded >>> >> That sounds a lot like https://bugs.freebsd.org/bugzilla/show_bug.cgi?= id=3D260406 >> >> My current theory is that this is a bug in the memory allocator somewh= ere. I do not have the background or time to debug that. > > Thanks for your reply Kristof. I concur, it indeed looks a lot like the= bug ticket you linked. I could spare the time but I don't have the backg= round or capability to debug this myself. Is there anything I could do to= help move this issue along? > Short of studying the memory allocation code and finding the bug, no. Kristof