From nobody Mon Mar 28 12:14:55 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 CBF341A495F9; Mon, 28 Mar 2022 12:15:01 +0000 (UTC) (envelope-from marcel@herrbischoff.com) Received: from mailpod.herrbischoff.com (mailpod.herrbischoff.com [IPv6:2a01:4f8:c010:37ae::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mailpod.herrbischoff.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KRs8N4gBXz4YYD; Mon, 28 Mar 2022 12:15:00 +0000 (UTC) (envelope-from marcel@herrbischoff.com) Received: from mailpod.herrbischoff.com (localhost [127.0.0.1]) by mailpod.herrbischoff.com (OpenSMTPD) with ESMTP id 59be5b48; Mon, 28 Mar 2022 14:14:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=herrbischoff.com; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=hrbf; bh= BJu+wgYSlkLDyqwbPC1xi1Renc6KmDHMpZEUpfvj3CE=; b=NP2ATZbZbNd88ALh YwNIdMyfL4C9HguMFp4DtbfZtf/dpUouuG06yYmCTDEDi47tqmGeGdiy58x1Mury cnIqisgPCRBhb29a+SFgu9OxlF8LH+6uxRVx37YTHnW+NDqNX0bIB6tRpujhbdnj p0eVRTB0iZiOMog+Dp+KsCipyuy6YPxuLGnljgz0SPY2HQ1iGBdDBiTjkJjxKxvp lvZxuJ+2NzkPu+NJMwdvK4lp0Ld4EWbKbHf83zIVlAVhiWcp2X4LnhQagaW++zqr 8GCyDE3QMVzdLxEEaHZdGnQSYVl7O5lzYoIv0siBMjRcdUogUoIGw55Op8goZArj 9AnkoA== DomainKey-Signature: a=rsa-sha1; c=nofws; d=herrbischoff.com; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; q=dns; s= hrbf; b=wXO7mM1uqJOGwxaSzFqi3iudIfHfBq70Fu436F/8fhY93tvA7MBX7uQ6 /E4JNydhryBpAunvxovCryHtGm1PTPd191tWfYk+/7TOY52Z8rVO+nCBaXMpi9zc uO4qCQbldTotNaN8Du5c2kbzx9gjQ50XJ9y5kYQD0jc/p5UQ4sUFsc7mr1XORXlh eZqthOJ6bjHOjlZ6vDNWjboaka4Alfj3DefOzm+se7w8hOKXsnI0z+EOaQtu0txz UolI6g2hTJt36Fvrud+WO/OzUBGnjJMGFwiyty5iMAEd+nZrM0XgNbHPu65L3sOz SdHuSw0pAoQgI+Lx3tQJMr6gH4Cl7A== Received: by mailpod.herrbischoff.com (OpenSMTPD) with ESMTPSA id f8b5898e (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) auth=yes user=marcel@herrbischoff.com; Mon, 28 Mar 2022 14:14:57 +0200 (CEST) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: pfctl: Cannot allocate memory. From: Marcel Bischoff In-Reply-To: Date: Mon, 28 Mar 2022 14:14:55 +0200 Cc: stable@freebsd.org, freebsd-pf@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <8BBDA16D-207B-4704-86F5-F75F2A44AD7B@herrbischoff.com> References: <06EB4080-08D2-42DE-BB0D-E0C1CAE0EC2F@herrbischoff.com> To: Kristof Provost X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4KRs8N4gBXz4YYD X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=herrbischoff.com header.s=hrbf header.b=NP2ATZbZ; dmarc=pass (policy=none) header.from=herrbischoff.com; spf=pass (mx1.freebsd.org: domain of marcel@herrbischoff.com designates 2a01:4f8:c010:37ae::1 as permitted sender) smtp.mailfrom=marcel@herrbischoff.com X-Spamd-Result: default: False [-5.49 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[herrbischoff.com:s=hrbf]; FREEFALL_USER(0.00)[marcel]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DWL_DNSWL_MED(-2.00)[herrbischoff.com:dkim]; DKIM_TRACE(0.00)[herrbischoff.com:+]; DMARC_POLICY_ALLOW(-0.50)[herrbischoff.com,none]; NEURAL_HAM_SHORT(-0.99)[-0.985]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[stable,freebsd-pf]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N > On 28. Mar 2022, at 09:44, Kristof Provost wrote: >=20 > On 27 Mar 2022, at 22:11, Marcel Bischoff wrote: >> Hello all, >>=20 >> 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. >>=20 >> $ 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 >>=20 > That sounds a lot like = https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260406 >=20 > 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. 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 = background or capability to debug this myself. Is there anything I could = do to help move this issue along? Marcel=